rental objects
This commit is contained in:
148
openapi.yaml
148
openapi.yaml
@ -102,6 +102,120 @@ paths:
|
||||
$ref: '#/components/schemas/Tenant'
|
||||
security:
|
||||
- jwt: ['secret']
|
||||
/v1/commercialPremises:
|
||||
get:
|
||||
tags: [ "CommercialPremise" ]
|
||||
summary: Return all normalized commercial premises
|
||||
operationId: rentalObjects.getCommercialPremises
|
||||
responses:
|
||||
'200':
|
||||
description: commercial premise response
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/CommercialPremise'
|
||||
security:
|
||||
- jwt: ['secret']
|
||||
/v1/commercialPremises/{commercialPremiseId}:
|
||||
get:
|
||||
tags: [ "CommercialPremise" ]
|
||||
summary: Return the normalized commercial premise with given id
|
||||
operationId: rentalObjects.getCommercialPremise
|
||||
parameters:
|
||||
- name: commercialPremiseId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
'200':
|
||||
description: commercial premise response
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/CommercialPremise'
|
||||
security:
|
||||
- jwt: ['secret']
|
||||
/v1/parkings:
|
||||
get:
|
||||
tags: [ "Parking" ]
|
||||
summary: Return all normalized parkings
|
||||
operationId: rentalObjects.getParkings
|
||||
responses:
|
||||
'200':
|
||||
description: parkings response
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Parking'
|
||||
security:
|
||||
- jwt: ['secret']
|
||||
/v1/parkings/{parkingId}:
|
||||
get:
|
||||
tags: [ "Parking" ]
|
||||
summary: Return the normalized parking with given id
|
||||
operationId: rentalObjects.getParking
|
||||
parameters:
|
||||
- name: parkingId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
'200':
|
||||
description: parking response
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Parking'
|
||||
security:
|
||||
- jwt: ['secret']
|
||||
/v1/flats:
|
||||
get:
|
||||
tags: [ "Flat" ]
|
||||
summary: Return all normalized flats
|
||||
operationId: rentalObjects.getFlats
|
||||
responses:
|
||||
'200':
|
||||
description: flat response
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Flat'
|
||||
security:
|
||||
- jwt: ['secret']
|
||||
/v1/flats/{flatId}:
|
||||
get:
|
||||
tags: [ "Flat" ]
|
||||
summary: Return the normalized flat with given id
|
||||
operationId: rentalObjects.getFlat
|
||||
parameters:
|
||||
- name: flatId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
responses:
|
||||
'200':
|
||||
description: flat response
|
||||
content:
|
||||
'application/json':
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Flat'
|
||||
security:
|
||||
- jwt: ['secret']
|
||||
|
||||
components:
|
||||
securitySchemes:
|
||||
@ -157,3 +271,37 @@ components:
|
||||
type: string
|
||||
account:
|
||||
type: integer
|
||||
CommercialPremise:
|
||||
description: CommercialPremise
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
description:
|
||||
type: string
|
||||
premise:
|
||||
type: integer
|
||||
Parking:
|
||||
description: Parking
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
description:
|
||||
type: string
|
||||
premise:
|
||||
type: integer
|
||||
Flat:
|
||||
description: Flat
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
description:
|
||||
type: string
|
||||
premise:
|
||||
type: integer
|
||||
area:
|
||||
type: number
|
||||
flat_no:
|
||||
type: integer
|
||||
|
Reference in New Issue
Block a user