Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: "2.0"
- info:
- version: 0.0.0
- title: Skibus
- paths:
- /status:
- get:
- responses:
- 200:
- description: Skiba NOK
- 505:
- description: Adrian unavaiable
- schema:
- properties:
- status:
- type: string
- kiedy:
- type: string
- format: date-time
- required:
- - status
- /student:
- get:
- summary: as
- description: as
- responses:
- 200:
- description: OK
- put:
- summary: as
- description: as
- responses:
- 200:
- description: OK
- laboratoria 3
- swagger: '2.0'
- info:
- version: pierwsza
- title: usluga
- paths:
- /status:
- get:
- responses:
- '200':
- description: ok
- '505':
- description: service unavailable
- schema:
- properties:
- status:
- type: string
- kiedy:
- type: string
- format: date-time
- required:
- - status
- '/user/{id}':
- get:
- parameters:
- - name: id
- type: integer
- in: path
- required: true
- responses:
- '200':
- description: ok
- schema:
- properties:
- id:
- type: integer
- example: 1
- nick:
- type: string
- example: John
- age:
- type: integer
- example: 20
- '404':
- description: not found
- schema:
- properties:
- status:
- type: string
- '/car/{vin}':
- parameters:
- - name: vin
- type: string
- in: path
- required: true
- get:
- responses:
- '200':
- description: vehicle data
- schema:
- properties:
- vin:
- type: string
- example: 1
- make:
- type: string
- example: a1
- model:
- type: string
- example: a2
- registration:
- type: string
- example: a3
- owner:
- type: string
- example: a4
- required:
- - registration
- - owner
- '404':
- description: vehicle not found
- put:
- parameters:
- - name: data
- in: body
- required: true
- schema:
- properties:
- registration:
- type: string
- owner:
- type: string
- - name : ban
- in: query
- type: boolean
- default: false
- allowEmptyValue: true
- - name: previous_owners
- in: query
- type: array
- items:
- type: string
- collectionFormat: csv
- responses:
- 200:
- description: Vehicle updated
- 404:
- description: Vehicle not found
- post:
- description: dodawanie nowego pojazdu, rejestracja nowego auta
- parameters:
- - name: owner
- type: string
- in: query
- required: true
- - name: make
- type: string
- in: query
- required: true
- - name: model
- type: string
- in: query
- required: true
- responses:
- 200:
- description: vehicle registered
- schema:
- description: Vehicle registration number
- type: string
- 409:
- description: Vehicle already registered
- delete:
- responses:
- 200:
- description: vehicle deleted
- 409:
- description: Vehicle already deleted
- 404:
- description: Vehicle deleted not found
- /cars:
- get:
- description: zapytanko
- parameters:
- - name: owner
- in: query
- description: wszystkie auta wlasciciela
- required: false
- type: string
- - name: make
- in: query
- required: false
- type: string
- responses:
- 200:
- description: Successful response
- schema:
- title: ArrayOfPersons
- type: array
- items:
- title: tablica vinow
- type: string
- 404:
- description: Negative response
- /users:
- get:
- parameters:
- -
- name: size
- in: query
- description: Size of array
- required: true
- type: number
- format: double
- responses:
- 200:
- description: Successful response
- schema:
- title: ArrayOfUsers
- type: array
- items:
- title: User
- type: object
- properties:
- name:
- type: string
- single:
- type: boolean
- 404:
- description: Negative response
- Jakieś tam laborki może się przydać
- swagger: '2.0'
- info:
- version: "0.0.0"
- title: <enter your title>
- paths:
- /persons:
- get:
- description: |
- Gets `Person` objects.
- Optional query param of **size** determines
- size of returned array
- parameters:
- -
- name: size
- in: query
- description: Size of array
- required: true
- type: number
- format: double
- responses:
- 200:
- description: Successful response
- schema:
- title: ArrayOfPersons
- type: array
- items:
- title: Person
- type: object
- properties:
- name:
- type: string
- single:
- type: boolean
- http://openapi-map.apihandyman.io/
- http://editor.swagger.io/#!/
- open mpi tutorial
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement