Skip to content

jamiephan/HeroesOfTheStorm_Gamedata_HTTP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeroesOfTheStorm_Gamedata_HTTP

A Cloudflare worker app to get data from https://github.com/jamiephan/HeroesOfTheStorm_Gamedata and transform to various formats with Badge endpoint support!

API Specification:

Base Url: https://heroes-data.jamiephan.workers.dev

A cache has been setup for up to an hour for repeated request for the same file & version.

GET /mods/:path?version=xx&format=xx

Get the file under mods folder in https://github.com/jamiephan/HeroesOfTheStorm_Gamedata.

GET /badge/mods/:path?path=xx

Generate a shields.io badge endpoint with supplied JSONPath Query.

Note: Badge Endpoint currently only supports .txt / .xml / .storm* files.

Badge Endpoint Demo

Description Badge
Get the latest build number Endpoint Badge
Get the Abathur Ultimate Evolution cooldown on version v2.55.7.93054 Endpoint Badge
Get Maiev's Fan of Knives (Q) Damage Endpoint Badge
Get the Bolt of the Storm (tp) Range Endpoint Badge

Development

Local Setup

yarn install
yarn run dev

Deploy

npm run deploy