Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sharif-minhaz/todos-api
A todos api created with express and mongoose
https://github.com/sharif-minhaz/todos-api
api express mongoose todo
Last synced: 5 days ago
JSON representation
A todos api created with express and mongoose
- Host: GitHub
- URL: https://github.com/sharif-minhaz/todos-api
- Owner: Sharif-Minhaz
- Created: 2022-09-11T05:40:58.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T09:29:36.000Z (9 months ago)
- Last Synced: 2024-03-01T19:47:31.551Z (9 months ago)
- Topics: api, express, mongoose, todo
- Language: JavaScript
- Homepage: https://todo-service-v-1-api.onrender.com/api/todos
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todos-API
A todos api created with express and mongooseBase URL: https://todo-service-v-1-api.onrender.com
```
interface ITodo {
_id: string;
title: string;
isComplete: boolean;
createdAt: string;
_v: number;
}
``````
# Get all todos: GET:/api/todos
```
```
# Add todo: POST:/api/todos
body: {
"title": "test"
}
```
```
# Find a single todo: GET:/api/todos/find/63276fb2daf87ed53a142bf3
```
```
# Search todos: GET:/api/todos/search?title=Client's App project
```
```
# Update todo: PATCH:/api/todos/65e07ffe2b79b56125a0926c
body: {
"title": "test-2",
"isComplete": true
}
```
```
# Delete a todo: DELETE:/api/todos/65e07ffe2b79b56125a0926c
```