Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmytrodemianchuk/crud-music
simple crud app
https://github.com/dmytrodemianchuk/crud-music
crud docker docker-compose golang sql
Last synced: 1 day ago
JSON representation
simple crud app
- Host: GitHub
- URL: https://github.com/dmytrodemianchuk/crud-music
- Owner: DmytroDemianchuk
- Created: 2022-11-28T20:50:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T21:04:14.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T03:41:03.678Z (5 months ago)
- Topics: crud, docker, docker-compose, golang, sql
- Language: Go
- Homepage:
- Size: 12.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# REST API FOR crud-music
Use command: `git clone https://github.com/dmytrodemianchuk/crud-music`
## Commands of application
Use this command in the directory
- `make run` - to run an application
- `make stop` - to stop an application## CRUD operations:
POST - "/music" - create musicGET - "/music/:id" - get music by id
GET "/musics" - get all musics
PUT "/music/:id" - update music by id
DELETE "/music/:id" - delete music by id
## Example of creating an music:
In Postman you choose "Body" menu, POST `localhost:8080/music` and type for example:```
{
"name": "Spiral",
"performer": "21 Savage",
"realise_year": 2021,
"genre": "Hip-Hop"
}