-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App: Task Manager #3
Comments
TaskManager ComponentSummaryThe Files Generated
OpenAPI Specificationopenapi: 3.0.0
info:
title: TaskManager API
version: 1.0.0
paths:
/tasks:
get:
summary: Get all tasks
responses:
'200':
description: A list of tasks
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Task'
post:
summary: Add a new task
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Task'
responses:
'201':
description: Task created
/tasks/{id}:
put:
summary: Update a task
parameters:
- in: path
name: id
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Task'
responses:
'200':
description: Task updated
delete:
summary: Delete a task
parameters:
- in: path
name: id
required: true
schema:
type: string
responses:
'204':
description: Task deleted
components:
schemas:
Task:
type: object
properties:
id:
type: string
name:
type: string
description:
type: string
done:
type: boolean This specification describes the necessary API endpoints for the TaskManager component, including methods to get all tasks, add a new task, update a task, and delete a task. |
The text was updated successfully, but these errors were encountered: