https://github.com/kaseyhinton/heroes-of-the-storm-api
A simple graphql & express api
https://github.com/kaseyhinton/heroes-of-the-storm-api
express graphql nodejs
Last synced: 2 months ago
JSON representation
A simple graphql & express api
- Host: GitHub
- URL: https://github.com/kaseyhinton/heroes-of-the-storm-api
- Owner: kaseyhinton
- Created: 2018-01-26T04:50:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-03T05:45:43.000Z (over 7 years ago)
- Last Synced: 2025-03-23T23:41:06.692Z (2 months ago)
- Topics: express, graphql, nodejs
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# heroes-of-the-storm-api
Using Express, Nodejs, GraphQL
### Demo
Hosted here to demo but for reliability you should host it yourself.
http://207.246.117.229/heroes-of-the-storm
http://207.246.117.229/heroes-of-the-storm/graphql
### Example Queries
Query
```javascript
query getHero($PrimaryName: String!) {
hero(PrimaryName: $PrimaryName) {
PrimaryName
ImageURL
Group
SubGroup
}
}query getHeroesByGroup($Group: String!) {
heroesByGroup(Group: $Group) {
PrimaryName
ImageURL
Group
SubGroup
}
}query getAllHeroes {
heroes {
PrimaryName
ImageURL
Group
SubGroup
}
}```
Query Variables
```json
{
"Group": "Support",
"PrimaryName": "Tracer"
}
```### Hero
```json
{
"PrimaryName": "Abathur",
"ImageURL": "https://blzmedia-a.akamaihd.net/heroes/abathur/bust.jpg",
"Group": "Specialist",
"SubGroup": "Utility"
}
```### TODO
heroesBySubGroup