https://github.com/evandersondev/api_rest_darto
https://github.com/evandersondev/api_rest_darto
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/evandersondev/api_rest_darto
- Owner: evandersondev
- Created: 2025-03-14T01:12:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T18:25:45.000Z (over 1 year ago)
- Last Synced: 2025-03-14T19:30:23.961Z (over 1 year ago)
- Language: Dart
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Todo API REST with Darto framework
A RESTful API built with Darto framework for managing todos, using a SQLite database for persistence in memory.
## Features
- CRUD operations for todos
- SQLite database integration
- RESTful endpoints
## API Endpoints
### GET /todos
Retrieves all todos from the database
### GET /todos/:id
Retrieves a specific todo by ID
### POST /todos
Creates a new todo
```json
{
"title": "Todo title",
"description": "Todo description",
"isDone": false
}
```
### PUT /todos/:id
Updates an existing todo
```json
{
"title": "Updated title",
"description": "Updated description",
"isDone": true
}
```
### DELETE /todos/:id
Deletes a todo by ID
## Todo Model Structure
- id: Integer
- title: String
- description: String
- isDone: Boolean
## Technologies
- Dart
- Darto Framework
- SQLite Database
## Getting Started
1. Clone the repository
2. Install dependencies
3. Run the server
## Response Status Codes
- 200: Success
- 404: Todo not found