A simple RESTful API for managing movies written in Go, utilizing JSON for data storage and Gorilla Mux for routing.
This API allows you to perform CRUD (Create, Read, Update, Delete) operations on movie resources.
-
Clone the repository:
git clone https://github.com/Rizz-33/go-json-crud-api.git
-
Navigate to the project directory:
cd go-json-crud-api
-
Build and run the application:
go build ./go-json-crud-api
GET /movies
GET /movies/{id}
POST /movies
Sample request body:
{
"isbn": "978-3-16-148410-0",
"title": "Movie Title",
"director": {
"firstname": "Director's First Name",
"lastname": "Director's Last Name"
}
}
PUT /movies/{id}
Sample request body:
{
"isbn": "978-3-16-148410-0",
"title": "Updated Movie Title",
"director": {
"firstname": "Updated Director's First Name",
"lastname": "Updated Director's Last Name"
}
}
DELETE /movies/{id}
- Risini Amarathunga (@Rizz-33)