mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 16:02:14 +00:00
add Cancel option to API for quests that have not been started (invitation stage)
This commit is contained in:
parent
f520b8ae66
commit
801753b37a
2 changed files with 10 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ angular.module('groupServices', ['ngResource']).
|
|||
removeMember: {method: "POST", url: API_URL + '/api/v2/groups/:gid/removeMember'},
|
||||
questAccept: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questAccept'},
|
||||
questReject: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questReject'},
|
||||
questCancel: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questCancel'},
|
||||
questAbort: {method: "POST", url: API_URL + '/api/v2/groups/:gid/questAbort'}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -465,10 +465,18 @@ module.exports = (swagger, v2) ->
|
|||
middleware: [auth.auth, i18n.getUserLanguage, groups.attachGroup]
|
||||
action: groups.questReject
|
||||
|
||||
"/groups/{gid}/questCancel":
|
||||
spec:
|
||||
method: 'POST'
|
||||
description: 'Cancel quest before it starts (in invitation stage)'
|
||||
parameters: [path('gid','Group to cancel quest in','string')]
|
||||
middleware: [auth.auth, i18n.getUserLanguage, groups.attachGroup]
|
||||
action: groups.questCancel
|
||||
|
||||
"/groups/{gid}/questAbort":
|
||||
spec:
|
||||
method: 'POST'
|
||||
description: 'Abort quest'
|
||||
description: 'Abort quest after it has started (all progress will be lost)'
|
||||
parameters: [path('gid','Group to abort quest in','string')]
|
||||
middleware: [auth.auth, i18n.getUserLanguage, groups.attachGroup]
|
||||
action: groups.questAbort
|
||||
|
|
|
|||
Loading…
Reference in a new issue