🎬 Movies CRUD API Using Go (Golang)
August, 2022
🧠 Overview
This project implements a CRUD (Create, Read, Update, Delete) API for managing movie records using Golang. Users can perform operations like adding new movies, retrieving all or specific movies, updating movie details, and deleting movies.
The API uses gorilla/mux for routing and handles requests in a RESTful manner.
💡 Motivation
I built this project to practice RESTful API development in Go and explore Go’s efficiency in handling server-side requests for CRUD operations.
⚙️ Tech Stack
- Golang
- gorilla/mux for routing
- Standard library for JSON handling
- Postman or cURL for testing APIs
📡 API Endpoints
- GET /movies – Retrieve all movies
- GET /movies/{id} – Retrieve a single movie by ID
- POST /movies – Add a new movie
- PUT /movies/{id} – Update an existing movie
- DELETE /movies/{id} – Delete a movie by ID
📊 Sample Movie JSON
{
"id": "1",
"isbn": "438227",
"title": "Inception",
"director": {
"firstname": "Christopher",
"lastname": "Nolan"
}
}
🧩 Summary
- Project: RESTful CRUD API for movies
- Language: Golang
- Routing: gorilla/mux
- Goal: Practice building scalable API backends in Go
- Testing: Use Postman or cURL to test endpoints