-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo-api.yaml
51 lines (51 loc) · 1.06 KB
/
todo-api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
openapi: 3.0.1
info:
title: TodoAPI
version: "1.1"
paths:
/todos:
get:
parameters:
- name: limit
in: query
schema:
type: number
required: false
- name: test
in: header
schema:
type: string
required: false
responses:
'200':
description: okay
content:
application/json:
schema:
type: object
properties:
todos:
type: array
items:
$ref: "#/components/schemas/TodoRead"
required:
- todos
components:
schemas:
TodoRead:
type: object
properties:
name:
type: string
status:
type: string
created_at:
type: string
example:
type: string
format: date-time
example: "2020-01-01T00:00:00.000Z"
required:
- name
- status
- created_at