This Go application serves as a basic RESTful API for managing movie data. It allows you to perform CRUD (Create, Read, Update, Delete) operations on movie records using HTTP requests.
- List all movies
- Get a specific movie by ID
- Create a new movie record
- Update an existing movie record
- Delete a movie record
To run this server, you need to have Go installed on your system.
-
Clone this repository to your local machine:
git clone https://github.com/Micah-Shallom/Go-Movie-APP.git
-
Navigate to the project directory:
cd Go-Movie-APP
-
Run the server:
go run main.go
The server will start on port 8000 by default.
-
Access the server on Browser:
http:localhost:8000
- Use an API client (e.g., Postman) or make HTTP requests to interact with the server's endpoints.
- You can perform various operations such as listing all movies, retrieving a specific movie by ID, creating a new movie record, updating an existing movie record, and deleting a movie record.
- GET
/movies/{id}
- PUT
/movies/{id}
- DELETE
/movies/{id}
The server accepts and returns JSON data in the following format:
{
"id": "1",
"isbn": "343434",
"title": "Movie One",
"director": {
"firstname": "John",
"lastname": "Doewy"
}
}
Feel free to contribute to this project by creating issues or submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.