Skip to content

Commit

Permalink
Merge branch 'main' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Herve authored Sep 8, 2023
2 parents 0fbdf0a + 6c3a3dd commit 2dcfe1b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
6 changes: 6 additions & 0 deletions todo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ paths:
schema:
type: string
required: true
- name: test
in: header
schema:
type: string
required: false

responses:
'200':
description: okay
Expand Down
51 changes: 51 additions & 0 deletions todo-api3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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: number
required: false
responses:
'200':
description: ok
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

0 comments on commit 2dcfe1b

Please sign in to comment.