-
Notifications
You must be signed in to change notification settings - Fork 6
Decorations
Tyler Lartonoix edited this page Mar 13, 2018
·
2 revisions
Endpoint | Description |
---|---|
/decorations | Returns a collection of all decorations. |
/decorations/{idOrSlug} | Returns a decoration matching the specified ID or slug. |
Field | Type | Description |
---|---|---|
id | Integer | The decoration's ID |
slug | String | A human readable unique identifier |
name | String | The name of the decoration |
rarity | Integer | The decoration's rarity level |
slot | Integer | The decoration slot that the decoration fits into |
skill | Integer | The ID of the skill that the decoration provides |
curl -G https://mhw-db.com/decorations
Output:
[
{
"name": "Antidote Jewel 1",
"rarity": 5,
"slot": 1,
"skill": 1,
"id": 1,
"slug": "antidote-jewel-1"
},
...
]
curl -G https://mhw-db.com/decorations/1
curl -G https://mhw-db.com/decorations/antidote-jewel-1
Output:
{
"name": "Antidote Jewel 1",
"rarity": 5,
"slot": 1,
"skill": 1,
"id": 1,
"slug": "antidote-jewel-1"
}
curl -G https://mhw-db.com/decorations --data-urlencode 'q={"slot": 3}'
Output:
[
{
"name": "Brace Jewel 3",
"rarity": 6,
"slot": 3,
"skill": 91,
"id": 46,
"slug": "brace-jewel-3"
},
...
]
curl -G https://mhw-db.com/decorations --data-urlencode 'q={"skill.ranks.modifiers.attack": {"$exists": true}}'
Output:
[
{
"name": "Attack Jewel 1",
"rarity": 7,
"slot": 1,
"skill": 15,
"id": 82,
"slug": "attack-jewel-1"
},
...
]
These documents are currently a work in progress. If you notice any mistakes, typos, or if you find any issues in the API itself, please open an issue, or contact me at [email protected].