Giter VIP home page Giter VIP logo

rest-api-training-example's Introduction

REST API Training Example

The purpose of this project is to provide API endpoints that will handle these scenario:

  1. An endpoint to search products based on
    1. Product name
    2. Product category
    3. Seller name
  2. An endpoint to get the details of a product.
  3. An endpoint to create a product
  4. An endpoint to update the name of the product
  5. An endpoint to delete a product
  6. An endpoint to bulk delete categories
  7. An endpoint to allow admin to blacklist a seller
  8. An endpoint to search sellers based on
    1. Seller name
    2. Product name
# URL HTTP Methods Payload Samples Description
1 /products GET Example query: /?q=Samsung&category=Phone&seller=Samsung An endpoint to search products based on product name, product category, seller name.
2 /products/1 GET An endpoint to get the details of a product.
3 /products/1 UPDATE Example data: { name: "Samsung S10" } An endpoint to update the name of the product
4 /products POST Example data: { name: "Samsung S10", categories: ["Phones", "Mobile Devices"], seller: "Samsung" } An endpoint to create a product
5 /products DELETE Example data: { productId: 1 } An endpoint to delete a product
6 /categories POST Example data: { categoryIds: [1, 2, 3, 4, 5] } An endpoint to bulk delete categories
7 /seller UPDATE Example data: { sellerId: 2, blacklisted: true } An endpoint to allow admin to blacklist a seller
8 /sellers POST Example data: { seller: "Samsung" } An endpoint to search sellers based on seller name and product name

Notes

This repository provide bad example of REST API implementation which is part of training assessment by Software Seni training. Do not use this as example for a project development

rest-api-training-example's People

Contributors

diruuu avatar softwareseniqa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.