kiota/tests/Kiota.Builder.IntegrationTests/ToDoApi.yaml

78 строки
1.6 KiB
YAML
Исходник Постоянная ссылка Обычный вид История

2021-02-16 00:39:09 +03:00
openapi: 3.0.0
info:
title: "Todo API"
version: "1.0.0"
servers:
- url: https://mytodos.doesnotexist/
description: Core
2021-02-16 00:39:09 +03:00
paths:
/todos:
2021-02-16 00:39:09 +03:00
get:
description: Return a list of Todo entities
operationId: todos_ListTodos
2021-02-16 00:39:09 +03:00
parameters:
- name: active
in: query
schema:
type: boolean
- name: keyword
in: query
schema:
type: string
2021-02-16 00:39:09 +03:00
responses:
"200":
2021-02-16 00:39:09 +03:00
description: OK
2021-02-28 19:08:29 +03:00
content:
application/json:
schema:
title: collectionTodos
type: object
properties:
value:
type: array
items:
2021-02-28 19:08:29 +03:00
$ref: "#/components/schemas/todo"
2021-02-16 00:39:09 +03:00
post:
requestBody:
description: New Todo
content:
application/json:
schema:
$ref: "#/components/schemas/NewTodo"
required: true
2021-02-16 00:39:09 +03:00
responses:
"201":
2021-02-16 00:39:09 +03:00
description: OK
/todos/{todoId}:
get:
description: Return a single Todo object
2021-02-16 00:39:09 +03:00
responses:
"200":
2021-02-16 00:39:09 +03:00
description: OK
delete:
description: Delete a single Todo object
2021-02-16 00:39:09 +03:00
responses:
"200":
2021-02-16 00:39:09 +03:00
description: OK
components:
schemas:
todo:
2021-05-31 22:26:02 +03:00
title: Todo
2021-02-16 00:39:09 +03:00
type: object
properties:
id:
type: string
subject:
type: string
Notes:
type: string
NewTodo:
title: NewTodo
type: object
properties:
subject:
type: string
Notes:
type: string