mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 12:02:13 +00:00
fix(swagger): rollback unwanted changes
This commit is contained in:
parent
e72a6668fc
commit
0efb74eaed
1 changed files with 4 additions and 4 deletions
|
|
@ -162,7 +162,7 @@ module.exports = (swagger, v2) ->
|
||||||
description: "Sell inventory items back to Alexander"
|
description: "Sell inventory items back to Alexander"
|
||||||
parameters: [
|
parameters: [
|
||||||
#TODO verify these are the correct types
|
#TODO verify these are the correct types
|
||||||
path('type',"The type of object you're selling back.",'string',['gear','eggs','hatchingPotions','food'])
|
path('type',"The type of object you're selling back.",'string',['eggs','hatchingPotions','food'])
|
||||||
path('key',"The object key you're selling back (call /content route for available keys)",'string')
|
path('key',"The object key you're selling back (call /content route for available keys)",'string')
|
||||||
]
|
]
|
||||||
action: user.sell
|
action: user.sell
|
||||||
|
|
@ -172,7 +172,7 @@ module.exports = (swagger, v2) ->
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
description: "Purchase a gem-purchaseable item from Alexander"
|
description: "Purchase a gem-purchaseable item from Alexander"
|
||||||
parameters:[
|
parameters:[
|
||||||
path('type',"The type of object you're purchasing.",'string',['gear','eggs','hatchingPotions','food'])
|
path('type',"The type of object you're purchasing.",'string',['eggs','hatchingPotions','food','quests','special'])
|
||||||
path('key',"The object key you're purchasing (call /content route for available keys)",'string')
|
path('key',"The object key you're purchasing (call /content route for available keys)",'string')
|
||||||
]
|
]
|
||||||
action: user.purchase
|
action: user.purchase
|
||||||
|
|
@ -191,7 +191,7 @@ module.exports = (swagger, v2) ->
|
||||||
"/user/inventory/equip/{type}/{key}":
|
"/user/inventory/equip/{type}/{key}":
|
||||||
spec:
|
spec:
|
||||||
method: 'POST'
|
method: 'POST'
|
||||||
description: "Equip an item (either pets, mounts, or gear)"
|
description: "Equip an item (either pet, mount, equipped or costume)"
|
||||||
parameters: [
|
parameters: [
|
||||||
path 'type',"Type to equip",'string',['pet','mount','equipped', 'costume']
|
path 'type',"Type to equip",'string',['pet','mount','equipped', 'costume']
|
||||||
path 'key',"The object key you're equipping (call /content route for available keys)",'string'
|
path 'key',"The object key you're equipping (call /content route for available keys)",'string'
|
||||||
|
|
@ -372,7 +372,7 @@ module.exports = (swagger, v2) ->
|
||||||
"/groups/{gid}:GET":
|
"/groups/{gid}:GET":
|
||||||
spec:
|
spec:
|
||||||
path: '/groups/{gid}'
|
path: '/groups/{gid}'
|
||||||
description: "Get a group"
|
description: "Get a group. The party the user currently is in can be accessed with the gid 'party'."
|
||||||
parameters: [path('gid','Group ID','string')]
|
parameters: [path('gid','Group ID','string')]
|
||||||
middleware: [auth.auth, i18n.getUserLanguage]
|
middleware: [auth.auth, i18n.getUserLanguage]
|
||||||
action: groups.get
|
action: groups.get
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue