DHIL-2644 - Init.
This commit is contained in:
parent
e8f76f6d13
commit
75d956c64a
68
src/openapi/fiko/fiko-crud.yaml
Normal file
68
src/openapi/fiko/fiko-crud.yaml
Normal file
@ -0,0 +1,68 @@
|
||||
openapi: "3.0.3"
|
||||
info:
|
||||
title: ABT Contracts CRUD APIs
|
||||
version: "1.0"
|
||||
description: CRUD APIs for ABT Contract database. These are NOT the functional APIs from Service Engine.
|
||||
servers:
|
||||
- url: https://api.integratielaag.nl/v1
|
||||
paths:
|
||||
/transactionitems:
|
||||
post:
|
||||
summary: Add a finanicial transaction item.
|
||||
description: Add a finanicial transaction item.
|
||||
tags:
|
||||
- TransactionItem
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/unavailable"
|
||||
example:
|
||||
"TBD"
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/unavailable"
|
||||
example:
|
||||
{
|
||||
"transactionItemId": "afce35b2-1dff-4ace-98d0-4b9ac405c87d"
|
||||
}
|
||||
components:
|
||||
securitySchemes:
|
||||
bearerToken:
|
||||
type: http
|
||||
scheme: bearer
|
||||
bearerFormat: JWT
|
||||
schemas:
|
||||
unavailable:
|
||||
type: object
|
||||
rfc9457:
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
format: url
|
||||
example: "https://example.com/probs/out-of-credit"
|
||||
title:
|
||||
type: string
|
||||
example: "You do not have enough credit."
|
||||
detail:
|
||||
type: string
|
||||
example: "Your current balance is 30, but that costs 50."
|
||||
instance:
|
||||
type: string
|
||||
example: "/account/12345/msgs/abc"
|
||||
balance:
|
||||
type: string
|
||||
example: "30"
|
||||
accounts:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
example:
|
||||
- "/account/12345"
|
||||
- "/account/67890"
|
||||
Loading…
Reference in New Issue
Block a user