Skip to content

Commit ba5d65f

Browse files
author
Christopher Giroir
committed
Cleaner item example
1 parent 7a88048 commit ba5d65f

File tree

1 file changed

+8
-55
lines changed

1 file changed

+8
-55
lines changed

README.md

Lines changed: 8 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,11 +2332,7 @@ that it does not respond to locale or json parameters because it is not part of
23322332
the api service. Requests to the actual data file also do not count towards any
23332333
request limits.
23342334

2335-
### Item Resources
2336-
2337-
Item APIs currently provide item information.
2338-
2339-
#### Item API
2335+
## Item API
23402336

23412337
The item API provides detailed item information. This includes item
23422338
set information if this item is part of a set.
@@ -2345,56 +2341,13 @@ set information if this item is part of a set.
23452341
URL = Host + "/api/wow/item/" + ItemId
23462342
```
23472343

2348-
*An example Item API request and response*
2349-
```plain
2350-
GET /api/wow/item/38268 HTTP/1.1
2351-
Host: us.battle.net
2352-
```
2353-
```json
2354-
{
2355-
"id":38268,
2356-
"disenchantingSkillRank":-1,
2357-
"description":"Give to a Friend",
2358-
"name":"Spare Hand",
2359-
"stackable":1,
2360-
"itemBind": 0,
2361-
"bonusStats":[],
2362-
"itemSpells":[],
2363-
"buyPrice":12,
2364-
"itemClass": 2,
2365-
"itemSubClass": 14,
2366-
"containerSlots":0,
2367-
"weaponInfo":{
2368-
"damage":[
2369-
{
2370-
"minDamage":1,
2371-
"maxDamage":2
2372-
}
2373-
],
2374-
"weaponSpeed":2.5,
2375-
"dps":0.6
2376-
},
2377-
"inventoryType":13,
2378-
"equippable":true,
2379-
"itemLevel":1,
2380-
"maxCount":0,
2381-
"maxDurability":16,
2382-
"minFactionId":0,
2383-
"minReputation":0,
2384-
"quality":0,
2385-
"sellPrice":2,
2386-
"requiredLevel":70,
2387-
"requiredSkill":0,
2388-
"requiredSkillRank":0,
2389-
"itemSource":{
2390-
"sourceId":0,
2391-
"sourceType":"NONE"
2392-
},
2393-
"baseArmor":0,
2394-
"hasSockets":false,
2395-
"isAuctionable":true
2396-
}
2397-
```
2344+
<dl>
2345+
<dt>Example URL</dt>
2346+
<dd>[/api/wow/item/18803](http://us.battle.net/api/wow/item/18803)</dd>
2347+
<dt>Example Data</dt>
2348+
<dd>[item.json](https://gist.github.com/3772776#file_item.json)</dd>
2349+
</dl>
2350+
<script src="https://gist.github.com/3772776.js?file=item.json"></script>
23982351

23992352
#### Item Set API
24002353

0 commit comments

Comments
 (0)