{"openapi":"3.0.0","info":{"title":"API de r\u00e9cup\u00e9ration des QCMs","description":"","version":"1.0.0"},"servers":[{"url":"\/","description":""}],"paths":{"\/api\/categories":{"get":{"operationId":"api_categories_get_collection","tags":["Category"],"responses":{"200":{"description":"Category collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Category-mcq.api"}}},"application\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Category-mcq.api"}}},"text\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Category-mcq.api"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Category-mcq.api"}}},"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Category.jsonld-mcq.api"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of Category resources.","description":"Retrieves the collection of Category resources.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/idonly\/mcqs":{"get":{"operationId":"api_idonlymcqs_get_collection","tags":["Mcq"],"responses":{"200":{"description":"Mcq collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.id_only"}}},"application\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.id_only"}}},"text\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.id_only"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.id_only"}}},"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq.jsonld-mcq.id_only"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of Mcq resources.","description":"Retrieves the collection of Mcq resources.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/last_updates":{"get":{"operationId":"api_last_updates_get_collection","tags":["LastUpdates"],"responses":{"200":{"description":"LastUpdates collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LastUpdates-mcq.api"}}},"application\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LastUpdates-mcq.api"}}},"text\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LastUpdates-mcq.api"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/LastUpdates-mcq.api"}}},"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/LastUpdates.jsonld-mcq.api"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of LastUpdates resources.","description":"Retrieves the collection of LastUpdates resources.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/mcqs":{"get":{"operationId":"api_mcqs_get_collection","tags":["Mcq"],"responses":{"200":{"description":"Mcq collection","content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.api"}}},"application\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.api"}}},"text\/xml":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.api"}}},"text\/html":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq-mcq.api"}}},"application\/ld+json":{"schema":{"type":"object","properties":{"hydra:member":{"type":"array","items":{"$ref":"#\/components\/schemas\/Mcq.jsonld-mcq.api"}},"hydra:totalItems":{"type":"integer","minimum":0},"hydra:view":{"type":"object","properties":{"@id":{"type":"string","format":"iri-reference"},"@type":{"type":"string"},"hydra:first":{"type":"string","format":"iri-reference"},"hydra:last":{"type":"string","format":"iri-reference"},"hydra:previous":{"type":"string","format":"iri-reference"},"hydra:next":{"type":"string","format":"iri-reference"}},"example":{"@id":"string","type":"string","hydra:first":"string","hydra:last":"string","hydra:previous":"string","hydra:next":"string"}},"hydra:search":{"type":"object","properties":{"@type":{"type":"string"},"hydra:template":{"type":"string"},"hydra:variableRepresentation":{"type":"string"},"hydra:mapping":{"type":"array","items":{"type":"object","properties":{"@type":{"type":"string"},"variable":{"type":"string"},"property":{"type":"string","nullable":true},"required":{"type":"boolean"}}}}}}},"required":["hydra:member"]}}}}},"summary":"Retrieves the collection of Mcq resources.","description":"Retrieves the collection of Mcq resources.","parameters":[],"deprecated":false},"parameters":[]},"\/api\/mcqs\/{id}":{"get":{"operationId":"api_mcqs_id_get","tags":["Mcq"],"responses":{"200":{"description":"Mcq resource","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Mcq-mcq.api_mcq.id_only"}},"application\/xml":{"schema":{"$ref":"#\/components\/schemas\/Mcq-mcq.api_mcq.id_only"}},"text\/xml":{"schema":{"$ref":"#\/components\/schemas\/Mcq-mcq.api_mcq.id_only"}},"text\/html":{"schema":{"$ref":"#\/components\/schemas\/Mcq-mcq.api_mcq.id_only"}},"application\/ld+json":{"schema":{"$ref":"#\/components\/schemas\/Mcq.jsonld-mcq.api_mcq.id_only"}}}},"404":{"description":"Resource not found"}},"summary":"Retrieves a Mcq resource.","description":"Retrieves a Mcq resource.","parameters":[{"name":"id","in":"path","description":"Mcq identifier","required":true,"deprecated":false,"allowEmptyValue":false,"schema":{"type":"string"},"style":"simple","explode":false,"allowReserved":false}],"deprecated":false},"parameters":[]}},"components":{"schemas":{"Answer-mcq.api":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"valid":{"type":"boolean","nullable":true}}},"Answer-mcq.api_mcq.id_only":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"valid":{"type":"boolean","nullable":true}}},"Answer.jsonld-mcq.api":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"valid":{"type":"boolean","nullable":true}}},"Answer.jsonld-mcq.api_mcq.id_only":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"valid":{"type":"boolean","nullable":true}}},"Category-mcq.api":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des cat\u00e9gories.","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"}}},"Category-mcq.api_mcq.id_only":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des cat\u00e9gories.","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"}}},"Category.jsonld-mcq.api":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des cat\u00e9gories.","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"}}},"Category.jsonld-mcq.api_mcq.id_only":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des cat\u00e9gories.","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"}}},"LastUpdates-mcq.api":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"date":{"type":"string","format":"date-time","nullable":true}}},"LastUpdates.jsonld-mcq.api":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"date":{"type":"string","format":"date-time","nullable":true}}},"Mcq-mcq.api":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"},"category":{"$ref":"#\/components\/schemas\/Category-mcq.api"},"questions":{"type":"array","items":{"$ref":"#\/components\/schemas\/Question-mcq.api"}}}},"Mcq-mcq.api_mcq.id_only":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"},"category":{"$ref":"#\/components\/schemas\/Category-mcq.api_mcq.id_only"},"questions":{"type":"array","items":{"$ref":"#\/components\/schemas\/Question-mcq.api_mcq.id_only"}}}},"Mcq-mcq.id_only":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"}}},"Mcq.jsonld-mcq.api":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"},"category":{"$ref":"#\/components\/schemas\/Category.jsonld-mcq.api"},"questions":{"type":"array","items":{"$ref":"#\/components\/schemas\/Question.jsonld-mcq.api"}}}},"Mcq.jsonld-mcq.api_mcq.id_only":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"title":{"type":"string"},"category":{"$ref":"#\/components\/schemas\/Category.jsonld-mcq.api_mcq.id_only"},"questions":{"type":"array","items":{"$ref":"#\/components\/schemas\/Question.jsonld-mcq.api_mcq.id_only"}}}},"Mcq.jsonld-mcq.id_only":{"type":"object","description":"API permettant la r\u00e9cup\u00e9ration des QCMs.","deprecated":false,"properties":{"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"}}},"Question-mcq.api":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"answers":{"type":"array","items":{"$ref":"#\/components\/schemas\/Answer-mcq.api"}}}},"Question-mcq.api_mcq.id_only":{"type":"object","description":"","deprecated":false,"properties":{"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"answers":{"type":"array","items":{"$ref":"#\/components\/schemas\/Answer-mcq.api_mcq.id_only"}}}},"Question.jsonld-mcq.api":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"answers":{"type":"array","items":{"$ref":"#\/components\/schemas\/Answer.jsonld-mcq.api"}}}},"Question.jsonld-mcq.api_mcq.id_only":{"type":"object","description":"","deprecated":false,"properties":{"@context":{"readOnly":true,"oneOf":[{"type":"string"},{"type":"object","properties":{"@vocab":{"type":"string"},"hydra":{"type":"string","enum":["http:\/\/www.w3.org\/ns\/hydra\/core#"]}},"required":["@vocab","hydra"],"additionalProperties":true}]},"@id":{"readOnly":true,"type":"string"},"@type":{"readOnly":true,"type":"string"},"id":{"readOnly":true,"type":"integer"},"label":{"type":"string"},"answers":{"type":"array","items":{"$ref":"#\/components\/schemas\/Answer.jsonld-mcq.api_mcq.id_only"}}}}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{}},"security":[],"tags":[]}