Skip to content

πŸ±β€πŸ‘€ API to display data for almost all characters in Naruto.

Notifications You must be signed in to change notification settings

muhammadpauzi/naruto-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Naruto API

πŸ±β€πŸ‘€ API to display data for almost all characters in Naruto.

Built with :

  • ExpressJS
  • Mongoose
  • MongoDB

Installation

  1. Clone the Repository

    git clone https://github.com/othneildrew/Best-README-Template.git
  2. Install packages

    yarn install
    # or
    npm install
  3. Setting .env file

    PORT = 5000
    MONGODB_URI = local | cloud
  4. Seed data to MongoDB
    This process is relatively long depending on your internet connection.

    yarn seed:json
    yarn seed:db
  5. And run the API

    yarn start
    # or
    npm start

Enpoints

Get all characters

  • Request

    • Method : GET
    • Endpoint : /api/characters
    • URL Params / Query :
      • q=[string] : For full-text search (optional)
      • skip=[number] : For skip/offset data (optional)
      • limit=[number] : For limiting data (optional)
      • sort=['ASC', 'DESC'] : For sorting data by the name (optional)
  • Response

    • Success
      {
          "total": "number",
          "previous":{
              "skip": "number"
          },
          "next":{
              "skip": "number"
          },
          "data": [
              {
                  "_id": "string",
                  "name": "string",
                  "picture": "string"
              }
          ]
      }

Thanks...πŸ™

About

πŸ±β€πŸ‘€ API to display data for almost all characters in Naruto.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published