Credence Analytics – REST- API – Assignment

Logo

Project Overview

REST API Server

● You’ll need to create an API server with CRUD based routes using NodeJS/Python

● Using your API, users can Create, Read, Update or Delete data from the database.

● Use MongoDB to store the following data to get you started.

Features

  1. List all Movies in the Database

  2. Get Movies by ID

  3. Update Movies by ID

  4. Delete Movies by ID

Github: https://github.com/aryashah2k/CredenceAnalytic-RESTAPI-Assignment

Technologies Used

Getting Started

● Clone repository into local machine

● From the current directory run npm run start to start the server

● Use Postman or any other API testing software to test the CRUD operations

Prerequisites

Ensure you have the following installed on your local machine:

HTTP Response Codes

Each response will be returned with one of the following HTTP status codes:

  • 201 `OK The resource was created successfully
  • 200 `Ok The request was successfull
  • 400 Bad Request There was a problem with the request (security, malformed)
  • 500 Server Error An error on the server occurred

Documentation

  1. GET

GET

GET2

  1. GET by ID

GETbyID

  1. POST

POST

  1. UPDATE by ID

Update

  1. GET After DELETE

GETafterDelete

  1. SEARCH after DELETE
    Search

License

This project is open-sourced software licensed under the MIT license.

GitHub

View Github