|
|
version: v1
|
|
|
kind: HttpApi
|
|
|
metadata:
|
|
|
service: creditAccount
|
|
|
path: /credit-accounts
|
|
|
endpoints:
|
|
|
- method: createCreditAccount
|
|
|
route:
|
|
|
post: /
|
|
|
- method: updateCreditAccount
|
|
|
route:
|
|
|
put: /{creditAccountId}
|
|
|
- method: getCreditAccount
|
|
|
route:
|
|
|
get: /{creditAccountId}
|
|
|
- method: removeCreditAccount
|
|
|
route:
|
|
|
delete: /{creditAccountId}
|
|
|
- method: searchCreditAccount
|
|
|
route:
|
|
|
post: /search
|
|
|
- method: payCreditAccount
|
|
|
route:
|
|
|
post: /pay
|
|
|
- method: listCreditAccount
|
|
|
route:
|
|
|
get: /
|
|
|
params:
|
|
|
- name: offset
|
|
|
- name: limit |
...
|
...
|
|