Skip to content

Rchanger/imdb_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

imdb_example

Run Project

go run main.go

Project uses Mongodb as database

  1. Make sure to create database with name IMDB
  2. Create 2 collections 1 is user with admin user and other collection name is movies
 {"username":"admin","password":"admin", "role":"admin"}
  1. Import the imdb.json file to movies collection.

endpoint description.

  1. Get - http://localhost:3032/movies - Available to all
  2. Post - http://localhost:3032/movies - requires authorization(bearer) token
  3. Delete - http://localhost:3032/movies/{id} - requires authorization(bearer) token
  4. Patch - http://localhost:3032/movies/{id} - requires authorization(bearer) token and allows only score and popularity field changes.
  5. Post - http://localhost:3032/auth/login

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages