Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elc0mpa/go_api
https://github.com/elc0mpa/go_api
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/elc0mpa/go_api
- Owner: elC0mpa
- Created: 2024-03-07T18:26:36.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-08T00:16:34.000Z (8 months ago)
- Last Synced: 2024-03-09T00:37:10.072Z (8 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go API
This is an API developed in Go 1.22.1
## Env variables
- PORT: Port in which the API will be listening
- DATABASE_URL: Connection URL to Postgres database## Endpoints
- POST /user. Create user
- Payload: name string, surname string
- GET /user/{id}. Get user by id
- POST /project. Create post
- Payload: name string, description string
- POST /bug. Create bug
- Payload: user int, project int, description string
- GET /bug/{id}. Get bug by id
- GET /bug. List bugs filtered by user_id, project_id, start_date and end_date query params