Повторение материала и проверка знаний работников по направлениям деятельности
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.

51 lines
1.3 KiB

2 weeks ago
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:
2 weeks ago
$ref: "./components.yaml#/components/schemas/position"
2 weeks ago
description: Get all positions
post:
2 weeks ago
summary: repo.create() Возвращает полный список должностей в базе
2 weeks ago
description: Создание новой должности
requestBody:
content:
application/json:
schema:
type: object
required:
- name
2 weeks ago
- organization
2 weeks ago
properties:
name:
type: string
2 weeks ago
organization:
type: object
properties:
id:
type: integer
2 weeks ago
responses:
'200':
description: OK
content:
application/json:
schema:
2 weeks ago
$ref: "./components.yaml#/components/schemas/position"