From 5a3aa1f11338f052961edd6f081bb975e3f904a2 Mon Sep 17 00:00:00 2001 From: Rchanger Date: Sat, 6 Feb 2021 19:16:08 +0000 Subject: [PATCH] ui refactor --- README.md | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 28102ce..d6fff65 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,2 @@ -# 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"} - ~~~ -3. 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 \ No newline at end of file +tetttt +ttet