You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
openapi: '3.0.3' |
|
info: |
|
title: exam-api |
|
description: API for exam |
|
termsOfService: 'http://localhost:100/hello' |
|
version: '1.0' |
|
servers: |
|
- url: http://localhost:100 |
|
paths: |
|
/hello: |
|
get: |
|
responses: |
|
'200': |
|
description: OK |
|
/api/v1/positions: |
|
get: |
|
responses: |
|
'200': |
|
description: OK |
|
content: |
|
application/json: |
|
schema: |
|
$ref: "#/components/schemas/position" |
|
description: Get all positions |
|
post: |
|
description: Создание новой должности |
|
requestBody: |
|
content: |
|
application/json: |
|
schema: |
|
type: object |
|
required: |
|
- name |
|
properties: |
|
name: |
|
type: string |
|
responses: |
|
'200': |
|
description: OK |
|
content: |
|
application/json: |
|
schema: |
|
$ref: "#/components/schemas/position" |
|
components: |
|
schemas: |
|
position: |
|
type: object |
|
required: |
|
- id |
|
- name |
|
properties: |
|
id: |
|
type: integer |
|
name: |
|
type: string
|
|
|