Code Monkey home page Code Monkey logo

magicshop-api's Introduction

MAGIC SHOP: BTS QUOTES API πŸ’œ

Magic Shop can be a place of refuge for the heartbroken, a place of healing for the disturbed, and a place of love for those who are lonely. β€œMagic Shop” tries comforts ARMYs who are in pain.

Method URL Description Example
GET GET/quotes returns all quotes from data https://magicshop-api.vercel.app/quotes
GET GET/quote/id/:id returns the quote by the searched id https://magicshop-api.vercel.app/quote/id/7
GET GET/quote/member/:member returns the quote by the searched member (RM, Jin, SUGA, J-hope, Jimin, V & Jungkook) https://magicshop-api.vercel.app/quote/member/Jungkook
GET GET/quote/random returns a random quote https://magicshop-api.vercel.app/quote/random

When the user makes a GET request to GET/quotes

  • If there's an error in return the quotes from the data:
    • respond with HTTP status code 404.
    • return the following JSON object:
    { Error: "Quote not found" } 
    

When the user makes a GET request to GET/quote/id/:id

  • If there's an error in return the quotes from the data:
    • respond with HTTP status code 404.
    • return the following JSON object:
    { Error: "Member not found" } 
    

Run the project

# clone the repository
git clone https://github.com/dev-aclara/MagicShop-API

# enter project folder
cd magicshop

# install the dependencies
$ npm install 

# start the server
$ npm start

# browser access mode
accesss http://localhost:21262

Developed by

Ana Clara Mansano Pereira, computer science student UNIFAI - Adamantina, SΓ£o Paulo

Inspiration: BTS QUOTES API

Python Python

magicshop-api's People

Contributors

dev-aclara 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.