forked from Osiris3987/becoder_hackathon_2024
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-docs.json
More file actions
1 lines (1 loc) · 1.3 KB
/
api-docs.json
File metadata and controls
1 lines (1 loc) · 1.3 KB
1
{"openapi":"3.0.1","info":{"title":"Becoder hackathon project","description":"Api for fintech","version":"1.0"},"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"paths":{"/api/v1/transactions":{"post":{"tags":["transaction-controller"],"operationId":"create","parameters":[{"name":"clientId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"legalEntityId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ExceptionBody"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TransactionDto"}}}}}}}},"components":{"schemas":{"ExceptionBody":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"string"}}}},"TransactionDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"type":{"type":"string","enum":["REFILL","DEBIT"]},"amount":{"type":"number"},"clientId":{"type":"string","format":"uuid","readOnly":true},"legalEntityId":{"type":"string","format":"uuid","readOnly":true}}}}}}