A simple API to get results of Game of Thrones battles
- In console run command:
npm run dev
- In console run command:
npm run build
- In console run command:
npm run start
- /list - returns list(array) of all the places where battle has taken place.
- /count - returns total number of battles occurred.
- /stats - returns most important statistics
- /search?query - can search with custom parameters:
- "/search?king=Robb Stark", return list of battles were 'attacker_king' or 'defender_king' was 'Robb Stark
- "/search?king=Robb Stark&location=Riverrun&type=siege", can also use multiple queries
- available queries:
- king
- location
- type
- year
- battle_number
- attacker
- defender
- attacker_outcome
- major_death
- region