Comments (7)
An update to these docs would be welcome in tandem with an update to the actual structure of the data, I think.
It would be nice to separate the APIReference from the objects, as below, and update the docs accordingly.
"ability_bonuses": [
{
"ability_score": {
"name": "WIS",
"index": "wis",
"url": "/api/ability-scores/wis"
},
"bonus": 1
}
],
from 5e-srd-api.
I think that makes the most sense. I know we've been wanting to move away from APIReference containing additional data besides just a glorified link.
from 5e-srd-api.
Oh very interesting, I'll take a look at this. Should be a fun first code (not docs) change :)
from 5e-srd-api.
dropping this here in case it's useful in the future, one liner to hit local api and pretty print a single field:
curl http://localhost:3000/api/races/dragonborn | python -c 'import sys, json, pprint; pprint.pprint(json.load(sys.stdin)["ability_bonuses"])'
from 5e-srd-api.
That's lovely! I really need to get GraphQL up and running properly though. I think in GraphQL, it's just:
query {
race(query: {name:"Dragonborn"}) {
ability_bonuses {
bonus
index
name
url
}
}
}
from 5e-srd-api.
That looks right to me, I deal with a log of gql/json data at work and wrote this mostly functional json to csv converter a couple months ago https://github.com/ecshreve/jcgo
from 5e-srd-api.
Closing as this has been merged in!
from 5e-srd-api.
Related Issues (20)
- A little confusion with the return value for Monster/Action HOT 2
- Inconsistency in url
- Mountain dwarf is missing HOT 1
- API down HOT 1
- Harvesting Information for Monsters HOT 1
- Adjust `/api/` to server up the new DB table that has all that info HOT 1
- [documentation] - enumerate `api/spells/{index}` -> `damage` field
- /api/levels endpoint returned by /api is not found HOT 2
- Filter Monsters by XP and XP Range HOT 1
- Fail to build open-api spec, because of a $ref circle HOT 2
- GraphQl Search Functionality HOT 1
- Magic Item with rarity Common breaks the GraphQL query HOT 4
- Invalid refs in OpenAPI spec HOT 4
- path in quotes in bundled yaml when path contain curly braces HOT 1
- GraphQL: Cannot query field "alignments" on type "Monster" HOT 5
- Add number of spells cast field HOT 1
- [Feature Request] Add Search API HOT 3
- TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/tools/copyAssets.ts HOT 6
- subclass endpoint returning only one result HOT 2
- Magic missile spell: Damage at slot level are incorrects HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 5e-srd-api.