Actualiser interface-contracts.json

This commit is contained in:
Maxime Pierront 2025-03-13 17:28:17 +01:00
parent 79bc018b0e
commit dab8a636d0

@ -1,73 +1,73 @@
{ {
"usecases": { "usecases": {
"EnregistrerNouveauLivre": { "EnregistrerNouveauLivre": {
"input": { "input": {
"isbn": "string(13)", "isbn": "string(13)",
"titre": "string(required)", "titre": "string(required)",
"auteur": "string(required)", "auteur": "string(required)",
"editeur": "string(required)", "editeur": "string(required)",
"datePublication": "date", "datePublication": "date",
"prix": "decimal(positive)", "prix": "decimal(positive)",
"stockInitial": "integer(min:0)", "stockInitial": "integer(min:0)",
"categories": "array<string>", "categories": "array<string>",
"description": "string", "description": "string",
"langue": "string" "langue": "string"
}, },
"output": { "output": {
"livreId": "uuid" "isbn": "string(13)"
} }
}, },
"PasserCommande": { "PasserCommande": {
"input": { "input": {
"clientId": "uuid", "clientId": "uuid",
"lignesCommande": [{ "lignesCommande": [{
"livreId": "uuid", "livreId": "uuid",
"quantite": "integer(positive)" "quantite": "integer(positive)"
}], }],
"adresseLivraison": { "adresseLivraison": {
"rue": "string", "rue": "string",
"ville": "string", "ville": "string",
"codePostal": "string", "codePostal": "string",
"pays": "string" "pays": "string"
}, },
"modePaiement": "string(enum: CB, PAYPAL, POINTS_FIDELITE)" "modePaiement": "string(enum: CB, PAYPAL, POINTS_FIDELITE)"
}, },
"output": { "output": {
"commandeId": "uuid", "commandeId": "uuid",
"montantTotal": "decimal", "montantTotal": "decimal",
"pointsFideliteGagnes": "integer" "pointsFideliteGagnes": "integer"
} }
}, },
"GererAvis": { "GererAvis": {
"input": { "input": {
"clientId": "uuid", "clientId": "uuid",
"livreId": "uuid", "livreId": "uuid",
"note": "integer(min:1,max:5)", "note": "integer(min:1,max:5)",
"commentaire": "string", "commentaire": "string",
"dateAchat": "date" "dateAchat": "date"
}, },
"output": { "output": {
"avisId": "uuid" "avisId": "uuid"
} }
}, },
"CreerAbonnement": { "CreerAbonnement": {
"input": { "input": {
"clientId": "uuid", "clientId": "uuid",
"duree": "integer(enum: 3,6,12)", "duree": "integer(enum: 3,6,12)",
"modePaiement": { "modePaiement": {
"type": "string(enum: CB, PAYPAL)", "type": "string(enum: CB, PAYPAL)",
"details": "object" "details": "object"
}, },
"dateDebutSouhaitee": "date" "dateDebutSouhaitee": "date"
}, },
"output": { "output": {
"abonnementId": "uuid", "abonnementId": "uuid",
"dateDebut": "date", "dateDebut": "date",
"dateFin": "date", "dateFin": "date",
"montantMensuel": "decimal" "montantMensuel": "decimal"
} }
} }
} }
} }