pattisoj / my-hero-academia-api

A simple API for My Hero Academia. Unofficial/fan-made.

Home Page:https://myheroacademia-api.onrender.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My Hero Academia API

Forks Stars Issues MIT License

Tiếng Việt 🇻🇳

Table of contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

This fan-made API was created as a passion project. I really enjoy anime and one of my recent favorites has been My Hero Academia, I decided I wanted to create something for it and for it's fan base so I decided to create this API.

Built with

JavaScript

Node.js

Express.JS

Heroku

Jest

Prettier

(Back to top)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

To use this project you will need a node package manager installed. Visit the npm documentation for a more detailed guide.

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/pattisoj/my-hero-academia-api.git
  2. Install NPM packages
    npm install
  3. Run the api locally
    npm start
    NOTE - When running locally this API will use http://localhost:3000/. If you need to change this for any reason the port can be found in .bin/www.js. Do not commit any port changes on a pull request.

(Back to top)

Usage

This space will be updated alongside the development of the API.

Requests can be made with curl or other helper libraries by following regular REST calls. For example, here is how to GET the all of the character data:

curl https://myheroacademia-api.onrender.com/characters

Calling this resource will respond with an object with the following structure:

{"students" : [
  {
  "id": "1",
  "name": "Izuku Midoriya",
  "name_japanese": "緑谷 出久",
  "other_names": ["Deku"],
  "quirk": "One for All",
  "quirk_japanese": "ワン・フォー・オール",
  "quirk_description": "A transferable Quirk that stockpiles power and grants immense strength, speed, stamina, and durability.",
  "hero_school": "U.A. High School",
  "class": "Class 1-A"
  },
  ...],
"villains" : [
  {
  "id" : "46",
  "name" : "Tenko Shimura",
  "name_japanese" : "志村 転弧",
  "other_names" : ["Tomura Shigaraki"],
  "quirk" : "Decay",
  "quirk_japanese" : "崩壊",
  "quirk_description" : "Enables him to disintegrate whatever he touches with his fingers and anything connected to it.",
  "affiliation" : "League of Villains"
  },
  ...],
"heroes" : [
  {
  "id" : "92",
  "name" : "Enji Todoroki",
  "name_japanese" : "轟 炎司",
  "hero_name" : "Endeavor",
  "hero_name_japanese" : "エンデヴァー",
  "quirk" : "Hellflame",
  "quirk_japanese" : "ヘルフレイム",
  "quirk_description" : "Gives him powerful pyrokinetic abilities. He is immune to other flames, and can easily control the shape and temperature of the blaze as well.",
  "affiliation" : "Top Hero"
  },
  ...],
  "other" : [
  {
  "id" : "147",
  "name" : "Inko Midoriya",
  "name_japanese" : "緑谷 引子",
  "civilian_description" : "Izuku's mother. She has an unnamed quirk that allows her to draw small objects to her with telekinesis-like power.",
  "type" : "Civilian"
  },
  ...]
}

For data on a single character you can search by id:

curl https://myheroacademia-api.onrender.com/characters/{characterID}

Currently there is data for 57 students, 46 villains, 42 heroes and 15 civilians.

Endpoints

  • /characters
    • /students
    • /villains
    • /heroes
    • /other
    • /{characterID}

(Back to top)

Roadmap

  • Deployment
  • CI/CD Pipelines
    • Auto-deployment
    • Linting workflow
    • Testing workflow
    • Contribution guides
  • Data for all characters
    • Students
    • Villains
    • Pro Heroes
    • Other
      • Civilians
  • Episode Information
    • Main
    • Movies
    • Specials (OVAs)

See the open issues for a full list of proposed features (and known issues).

(Back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Ensure you give a description of your changes. Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(Back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(Back to top)

Contact

Twitter

Linkedin

Portfolio

ProjectLink

(Back to top)

Acknowledgments

(Back to top)

About

A simple API for My Hero Academia. Unofficial/fan-made.

https://myheroacademia-api.onrender.com

License:MIT License


Languages

Language:JavaScript 96.5%Language:Pug 2.7%Language:CSS 0.8%