-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
38 lines (35 loc) · 1.28 KB
/
openapi.yaml
File metadata and controls
38 lines (35 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
openapi: 3.0.3
info:
title: Accounts & Payments Service API
version: 1.0.0
description: Backend REST API for managing customer accounts, immutable transactions, and atomic transfers.
servers:
- url: http://localhost:8000
description: Local Development
paths:
/api/accounts:
$ref: 'swagger_schemas/accounts.yaml#/paths/accounts'
/api/accounts/{id}:
$ref: 'swagger_schemas/accounts.yaml#/paths/accounts.id'
/api/accounts/{id}/transactions:
$ref: 'swagger_schemas/accounts.yaml#/paths/accounts.id.transactions'
/api/accounts/{id}/transactions/{transaction_id}:
$ref: 'swagger_schemas/accounts.yaml#/paths/accounts.id.transactions.transaction_id'
/api/transfers:
$ref: 'swagger_schemas/transfers.yaml#/paths/transfers'
components:
schemas:
Account:
$ref: 'swagger_schemas/schemas.yaml#/Account'
AccountCreate:
$ref: 'swagger_schemas/schemas.yaml#/AccountCreate'
AccountUpdate:
$ref: 'swagger_schemas/schemas.yaml#/AccountUpdate'
Transaction:
$ref: 'swagger_schemas/schemas.yaml#/Transaction'
TransactionCreate:
$ref: 'swagger_schemas/schemas.yaml#/TransactionCreate'
Transfer:
$ref: 'swagger_schemas/schemas.yaml#/Transfer'
TransferResponse:
$ref: 'swagger_schemas/schemas.yaml#/TransferResponse'