Skip to content

This repository implements a basic CRUD (Create, Read, Update, Delete) API for managing movie entries.

Notifications You must be signed in to change notification settings

01oamyay/Simple-CRUD-Movie-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple CRUD Movie API

This repository implements a basic CRUD (Create Read Update Delete) API for managing movie entries. It serves as a learning project for building RESTful APIs in Go using the net/http package.

🧐 Features

  • Create: Adds new movie entries to a mock in-memory data store.
  • Read: Retrieves all movie entries or a specific entry by ID.
  • Update: Modifies existing movie entries by ID.
  • Delete: Removes movie entries by ID.

🛠️ Installation Steps:

1. Clone the repository:

git clone https://github.com/RyuuOsamu/Simple-CRUD-Movie-API.git

2. Navigate to the project directory:

cd Simple-CRUD-Movie-API

3. Run the server:

go run main.go

4. Test in POSTMAN

Methods:

EndPoint Method Description
/movies GET Retrieves all movies.
/movies/id GET Retrieves a specific movie by ID.
/movies POST Creates a new movie. Body: JSON object with movie details (title, year, director, etc.).
/movies/id PUT Updates an existing movie by ID. Body: JSON object with updated movie details.
/movies/id DELETE Deletes a movie by ID.

About

This repository implements a basic CRUD (Create, Read, Update, Delete) API for managing movie entries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages