-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1371 from betagouv/nouveau-swagger-cvec-et-modifs
Nouveau swagger CVEC et modifs
- Loading branch information
Showing
6 changed files
with
198 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ themes: | |
- Particulier | ||
- Education | ||
contact_link: [email protected] | ||
doc_tech_link: /swaggers/api-cvec.json | ||
doc_tech_link: /swaggers/api-cvec-new.json | ||
visits_2019: 3000 | ||
last_update: 15/04/2022 | ||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ contact_link: [email protected] | |
partners: # Vous pouvez ajouter ici la liste des co-producteurs de l'API si cela vous paraît cohérent. | ||
# - insee | ||
is_open: -1 | ||
datapass_link: https://datapass.api.gouv.fr/TODO | ||
is_france_connected: -1 | ||
access_page: | ||
- who: | ||
|
@@ -22,14 +21,12 @@ access_page: | |
is_eligible: 0 | ||
description: | | ||
En tant qu'éditeur de logiciel, vous êtes éligible à intégrer cette API si vous le faîtes pour le compte d'une entité publique (administrations, collectivités, etc.) dont vous êtes le prestataire. | ||
Vous pouvez déposer une demande d'habilitation : | ||
<Button href="https://datapass.api.gouv.fr/TODO">Demander un accès</Button> | ||
Vous pouvez demander l'accès à l'API en écrivant à cette adresse : [email protected] | ||
- who: | ||
- Une administration | ||
is_eligible: 1 | ||
description: | | ||
En tant que collectivité territoriale ou administration, vous êtes éligible à utiliser cette API selon votre cadre juridique. Vous pouvez déposer une demande d'habilitation : | ||
<Button href="https://datapass.api.gouv.fr/TODO">Demander un accès</Button> | ||
En tant que collectivité territoriale ou administration, vous êtes éligible à utiliser cette API selon votre cadre juridique. Vous pouvez demander l'accès à l'API en écrivant à cette adresse : [email protected] | ||
rate_limiting_resume: Volumétrie inconnue | ||
rate_limiting_description: | | ||
Le fournisseur de la donnée n'a pas cette information. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "CVEC", | ||
"description": "API controle des attestations", | ||
"version": "4.1.24" | ||
}, | ||
"paths": { | ||
"/api/attestation/{code}": { | ||
"get": { | ||
"parameters": [ | ||
{ | ||
"name": "code", | ||
"in": "path", | ||
"description": "n°attestation", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "etudiant", | ||
"in": "query", | ||
"description": "5 premières lettres du nom de l'étudiant" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Contient l'attestation.", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/CertificateDto" | ||
} | ||
} | ||
} | ||
}, | ||
"400": { | ||
"description": "L'attestation n'a pas été trouvée.", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/CertificateErrorDto" | ||
} | ||
} | ||
} | ||
}, | ||
"404": { | ||
"description": "Le paramètre code est manquant.", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/CertificateErrorDto" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://cvec-ctrl.etudiant.gouv.fr" | ||
}, | ||
{ | ||
"url": "https://cve-controle-prod.nuonet.fr" | ||
}, | ||
{ | ||
"url": "https://cve-2020-controle-prod.nuonet.fr" | ||
}, | ||
{ | ||
"url": "https://cve-2021-controle-prod.nuonet.fr" | ||
}, | ||
{ | ||
"url": "https://cve-2022-controle-prod.nuonet.fr" | ||
}, | ||
{ | ||
"url": "https://cve-2023-controle-prod.nuonet.fr" | ||
} | ||
] | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"CertificateErrorDto": { | ||
"properties": { | ||
"code": { | ||
"type": "string" | ||
}, | ||
"message": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"GrantNotificationErrorDto": { | ||
"properties": { | ||
"code": { | ||
"type": "string" | ||
}, | ||
"libelle": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"CertificateIneDto": { | ||
"properties": { | ||
"nom": { | ||
"type": "string" | ||
}, | ||
"nomUsage": { | ||
"type": "string" | ||
}, | ||
"prenom": { | ||
"type": "string" | ||
}, | ||
"sexe": { | ||
"type": "string" | ||
}, | ||
"date_naissance": { | ||
"type": "string" | ||
}, | ||
"code": { | ||
"type": "string" | ||
}, | ||
"crous": { | ||
"type": "string" | ||
}, | ||
"etat": { | ||
"$ref": "#/components/schemas/StateDto" | ||
}, | ||
"exoneration": { | ||
"$ref": "#/components/schemas/ExonerationDto" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"CertificateDto": { | ||
"properties": { | ||
"nom": { | ||
"type": "string" | ||
}, | ||
"nomUsage": { | ||
"type": "string" | ||
}, | ||
"prenom": { | ||
"type": "string" | ||
}, | ||
"sexe": { | ||
"type": "string" | ||
}, | ||
"date_naissance": { | ||
"type": "string" | ||
}, | ||
"ine": { | ||
"type": "string" | ||
}, | ||
"crous": { | ||
"type": "string" | ||
}, | ||
"etat": { | ||
"$ref": "#/components/schemas/StateDto" | ||
}, | ||
"exoneration": { | ||
"$ref": "#/components/schemas/ExonerationDto" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"StateDto": { | ||
"properties": { | ||
"code": { | ||
"type": "string" | ||
}, | ||
"libelle": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"ExonerationDto": { | ||
"properties": { | ||
"active": { | ||
"type": "boolean" | ||
}, | ||
"motif": { | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.