Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
leermao committed May 27, 2024
1 parent 2dccb67 commit fa88307
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 45 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## 0.1.1 (2024-5-27)
## 0.1.2 (2024-5-27)

- chore: init todo list
41 changes: 0 additions & 41 deletions api/src/routes/todo-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,47 +96,6 @@ router.get('/', (req: Request, res: Response) => {
}
});

/**
* @openapi
* /api/todos/{id}:
* get:
* summary: Get a todo by ID
* parameters:
* - in: path
* name: id
* required: true
* description: ID of the todo to retrieve
* schema:
* type: string
* responses:
* '200':
* description: Successful operation. Returns the requested todo item.
* content:
* application/json:
* schema:
* type: object
* properties:
* todo:
* type: object
* properties:
* id:
* type: string
* description: The unique identifier of the todo item.
* title:
* type: string
* description: The title of the todo item.
* completed:
* type: boolean
* description: Indicates whether the todo item is completed or not.
* updatedAt:
* type: string
* format: date-time
* description: The timestamp when the todo item was last updated.
* '404':
* description: Not found. Todo with the specified ID does not exist.
* '400':
* description: Bad request. An error occurred while processing the request.
*/
router.get('/:id', (req: Request, res: Response) => {
try {
const { id } = req.params;
Expand Down
2 changes: 1 addition & 1 deletion blocklet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository:
type: git
url: git+https://github.com/blocklet/create-blocklet.git
specVersion: 1.2.8
version: 0.1.1
version: 0.1.2
logo: logo.png
files:
- component.yml
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "todo-list",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {
"dev": "blocklet dev",
"lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2

0 comments on commit fa88307

Please sign in to comment.