GithubHelp home page GithubHelp logo

amsem / go-song-server Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 8 KB

This is a simple CRUD REST API for music written in Go, allowing basic operations such as creating, reading, updating, and deleting music entries. This API is intended as a starting point for more complex music-related projects, and can be easily extended to include additional features

Go 100.00%
api music rest-api

go-song-server's Introduction

Music CRUD REST API

This is a simple CRUD REST API for music written in Go. It allows for basic operations such as creating, reading, updating, and deleting music entries. This API is intended as a starting point for more complex music-related projects, and can be easily extended to include additional features.

Getting Started

To get started with this API, you will need to have Go ,Git and Postman installed on your machine. Once you have these tools installed, you can clone the repository and run the API.

git clone https://github.com/amsem/Go-Song-Server.git
cd Go-Song-Server
go run main.go

The API now will run at port 8000

Endpoints

The following endpoints are available for interacting with the API :

  1. GET / : This endpoint returns a simple message to confirm that the API is running.
  2. GET /musics : This endpoint returns a list of all music entries in the API.
  3. GET /musics/{id} : This endpoint returns a specific music entry, based on the ID passed in the URL.
  4. POST /musics : This endpoint allows you to create a new music entry. The entry must be in JSON format, and include a "title" and "artist" field.
  5. PUT /musics/{id} : This endpoint allows you to update an existing music entry, based on the ID passed in the URL. The updated entry must be in JSON format.
  6. DELETE /musics/{id} : This endpoint allows you to delete an existing music entry, based on the ID passed in the URL.

Note

This is just a first version and it does not have a database integration. This can be added in further versions to persist the data.

Contribuation

If you'd like to contribute to this project, please feel free to submit a pull request. We welcome contributions of all kinds, including bug reports, feature requests, and code improvements.

go-song-server's People

Contributors

amsem avatar

Stargazers

Roman avatar Sayan Maity avatar  avatar

Watchers

 avatar

go-song-server's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.