add post method to api

This commit is contained in:
2021-08-31 17:24:54 +02:00
parent e238b1fb9f
commit 6bb1eec181
5 changed files with 749 additions and 4 deletions

View File

@ -35,6 +35,27 @@ paths:
$ref: '#/components/schemas/account'
security:
- jwt: ['secret']
post:
tags: [ "account" ]
summary: Insert a account
operationId: methods.insert_account
requestBody:
description: account
content:
application/json:
schema:
$ref: '#/components/schemas/account'
responses:
'200':
description: account successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/account'
security:
- jwt: ['secret']
/v1/accounts/{accountId}:
get:
tags: [ "account" ]
@ -73,6 +94,27 @@ paths:
$ref: '#/components/schemas/tenant'
security:
- jwt: ['secret']
post:
tags: [ "tenant" ]
summary: Insert a tenant
operationId: methods.insert_tenant
requestBody:
description: tenant
content:
application/json:
schema:
$ref: '#/components/schemas/tenant'
responses:
'200':
description: tenant successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/tenant'
security:
- jwt: ['secret']
/v1/tenants/{tenantId}:
get:
tags: [ "tenant" ]
@ -111,6 +153,27 @@ paths:
$ref: '#/components/schemas/premise'
security:
- jwt: ['secret']
post:
tags: [ "premise" ]
summary: Insert a premise
operationId: methods.insert_premise
requestBody:
description: premise
content:
application/json:
schema:
$ref: '#/components/schemas/premise'
responses:
'200':
description: premise successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/premise'
security:
- jwt: ['secret']
/v1/premises/{premiseId}:
get:
tags: [ "premise" ]
@ -149,6 +212,27 @@ paths:
$ref: '#/components/schemas/flat'
security:
- jwt: ['secret']
post:
tags: [ "flat" ]
summary: Insert a flat
operationId: methods.insert_flat
requestBody:
description: flat
content:
application/json:
schema:
$ref: '#/components/schemas/flat'
responses:
'200':
description: flat successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/flat'
security:
- jwt: ['secret']
/v1/flats/{flatId}:
get:
tags: [ "flat" ]
@ -187,6 +271,27 @@ paths:
$ref: '#/components/schemas/overhead_advance'
security:
- jwt: ['secret']
post:
tags: [ "overhead_advance" ]
summary: Insert a overhead_advance
operationId: methods.insert_overhead_advance
requestBody:
description: overhead_advance
content:
application/json:
schema:
$ref: '#/components/schemas/overhead_advance'
responses:
'200':
description: overhead_advance successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/overhead_advance'
security:
- jwt: ['secret']
/v1/overhead_advances/{overhead_advanceId}:
get:
tags: [ "overhead_advance" ]
@ -225,6 +330,27 @@ paths:
$ref: '#/components/schemas/overhead_advance_flat_mapping'
security:
- jwt: ['secret']
post:
tags: [ "overhead_advance_flat_mapping" ]
summary: Insert a overhead_advance_flat_mapping
operationId: methods.insert_overhead_advance_flat_mapping
requestBody:
description: overhead_advance_flat_mapping
content:
application/json:
schema:
$ref: '#/components/schemas/overhead_advance_flat_mapping'
responses:
'200':
description: overhead_advance_flat_mapping successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/overhead_advance_flat_mapping'
security:
- jwt: ['secret']
/v1/overhead_advance_flat_mappings/{overhead_advance_flat_mappingId}:
get:
tags: [ "overhead_advance_flat_mapping" ]
@ -263,6 +389,27 @@ paths:
$ref: '#/components/schemas/parking'
security:
- jwt: ['secret']
post:
tags: [ "parking" ]
summary: Insert a parking
operationId: methods.insert_parking
requestBody:
description: parking
content:
application/json:
schema:
$ref: '#/components/schemas/parking'
responses:
'200':
description: parking successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/parking'
security:
- jwt: ['secret']
/v1/parkings/{parkingId}:
get:
tags: [ "parking" ]
@ -301,6 +448,27 @@ paths:
$ref: '#/components/schemas/commercial_premise'
security:
- jwt: ['secret']
post:
tags: [ "commercial_premise" ]
summary: Insert a commercial_premise
operationId: methods.insert_commercial_premise
requestBody:
description: commercial_premise
content:
application/json:
schema:
$ref: '#/components/schemas/commercial_premise'
responses:
'200':
description: commercial_premise successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/commercial_premise'
security:
- jwt: ['secret']
/v1/commercial_premises/{commercial_premiseId}:
get:
tags: [ "commercial_premise" ]
@ -339,6 +507,27 @@ paths:
$ref: '#/components/schemas/tenancy'
security:
- jwt: ['secret']
post:
tags: [ "tenancy" ]
summary: Insert a tenancy
operationId: methods.insert_tenancy
requestBody:
description: tenancy
content:
application/json:
schema:
$ref: '#/components/schemas/tenancy'
responses:
'200':
description: tenancy successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/tenancy'
security:
- jwt: ['secret']
/v1/tenancys/{tenancyId}:
get:
tags: [ "tenancy" ]
@ -377,6 +566,27 @@ paths:
$ref: '#/components/schemas/fee'
security:
- jwt: ['secret']
post:
tags: [ "fee" ]
summary: Insert a fee
operationId: methods.insert_fee
requestBody:
description: fee
content:
application/json:
schema:
$ref: '#/components/schemas/fee'
responses:
'200':
description: fee successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/fee'
security:
- jwt: ['secret']
/v1/fees/{feeId}:
get:
tags: [ "fee" ]
@ -415,6 +625,27 @@ paths:
$ref: '#/components/schemas/tenancy_fee_mapping'
security:
- jwt: ['secret']
post:
tags: [ "tenancy_fee_mapping" ]
summary: Insert a tenancy_fee_mapping
operationId: methods.insert_tenancy_fee_mapping
requestBody:
description: tenancy_fee_mapping
content:
application/json:
schema:
$ref: '#/components/schemas/tenancy_fee_mapping'
responses:
'200':
description: tenancy_fee_mapping successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/tenancy_fee_mapping'
security:
- jwt: ['secret']
/v1/tenancy_fee_mappings/{tenancy_fee_mappingId}:
get:
tags: [ "tenancy_fee_mapping" ]
@ -453,6 +684,27 @@ paths:
$ref: '#/components/schemas/account_entry'
security:
- jwt: ['secret']
post:
tags: [ "account_entry" ]
summary: Insert a account_entry
operationId: methods.insert_account_entry
requestBody:
description: account_entry
content:
application/json:
schema:
$ref: '#/components/schemas/account_entry'
responses:
'200':
description: account_entry successfully inserted
content:
'application/json':
schema:
type: array
items:
$ref: '#/components/schemas/account_entry'
security:
- jwt: ['secret']
/v1/account_entrys/{account_entryId}:
get:
tags: [ "account_entry" ]