Skip to content

A fan-made Rest API that gets character info from the game Honkai Star Rail by miHoYo/HoYoverse

Notifications You must be signed in to change notification settings

ajcastan0103/HSR-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSR-API

A fan-made Rest API that gets character info from the game Honkai Star Rail by miHoYo/HoYoverse.
Honkai Star Rail API

Technologies Used

  • Node.js
  • Express.js
  • PostgreSQL
  • Vercel (for deployment)

API Endpoints

  • GET https://hsr-api.vercel.app/api/v1/characters: Get all characters.
  • GET https://hsr-api.vercel.app/api/v1/characters/date: Get all characters sorted by date.
  • GET https://hsr-api.vercel.app/api/v1/characters/:id: Get a character by ID.
  • GET https://hsr-api.vercel.app/api/v1/characters/:name: Get a character by name.
  • GET https://hsr-api.vercel.app/api/v1/characters/element/:element: Get characters by element.
  • GET https://hsr-api.vercel.app/api/v1/characters/path/:path: Get characters by path name.
  • GET https://hsr-api.vercel.app/api/v1/characters/rarity/:rarity: Get characters by rarity(4 or 5).

Local Development

  1. Clone the repository:

    git clone https://github.com/ajcastan0103/HSR-API.git
    
  2. Install dependencies:

    npm install express pl node nodemon
    
  3. Set up your local PostgreSQL database and update the connection details in the configuration files.

  4. Run the development server:

    npm run dev
    
  5. Access the API at http://localhost:3000.

References

About

A fan-made Rest API that gets character info from the game Honkai Star Rail by miHoYo/HoYoverse

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published