https://github.com/tabintel/todo-api
a Todo REST API built with Go
https://github.com/tabintel/todo-api
api golang rest-api
Last synced: 5 months ago
JSON representation
a Todo REST API built with Go
- Host: GitHub
- URL: https://github.com/tabintel/todo-api
- Owner: Tabintel
- Created: 2024-01-06T12:17:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T17:23:15.000Z (over 2 years ago)
- Last Synced: 2024-06-21T16:43:45.689Z (about 2 years ago)
- Topics: api, golang, rest-api
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Todo API
A simple RESTful Todo list API.
##### Endpoints
- `POST /todos`: Create a new todo.
- `GET /todos`: Retrieve all todos.
- `GET /todos/:id`: Retrieve a todo by ID.
- `PUT /todos/:id`: Update a todo by ID.
- `DELETE /todos/:id`: Delete a todo by ID.
##### Setup and Run
1. Clone the Repository
```bash
git clone https://github.com/tabintel/todo-api.git
cd todo-api
```
2. Run this command to install all the dependencies
```bash
go mod tidy
```
3. Run the application with this command
```bash
go run main.go
```
Here is the [Postman API Documentation,](https://documenter.getpostman.com/view/31909794/2s9YsJAXoT) for testing the API endpoints.