A simple RESTful API for managing a list of movies using Go and the Gorilla Mux router.
- List all movies (
GET /movies) - Retrieve a specific movie by ID (
GET /movies/{id}) - Add a new movie (
POST /movies) - Update an existing movie (
PUT /movies/{id}) - Delete a movie (
DELETE /movies/{id})
This project uses an in-memory slice to store movies (no database).
- Go 1.23.4 or higher
-
Clone the repository:
git clone https://github.com/debianbaker/CrudGo.git cd CrudGo -
Download dependencies:
go mod tidy
Run the server:
go run main.go