mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Refactor api description with @apiParam groups to make it more explicit (#8919)
* Refactor api description for auth.js with @apiParam groups * Refactor apiDoc toward better consistency * Fix missing groups for get requests * Fix missing groups for other request methods
This commit is contained in:
committed by
Sabe Jones
parent
b27319313d
commit
8614f11a31
@@ -66,7 +66,7 @@ async function saveContentToDisk (language, content) {
|
||||
* @apiName ContentGet
|
||||
* @apiGroup Content
|
||||
*
|
||||
* @apiParam {String="bg","cs","da","de","en","en@pirate","en_GB","es","es_419","fr","he","hu","id","it","ja","nl","pl","pt","pt_BR","ro","ru","sk","sr","sv","uk","zh","zh_TW"} [language=en] Query parameter, the language code used for the items' strings. If the authenticated user makes the request, the content will return with the user's configured language.
|
||||
* @apiParam (Query) {String="bg","cs","da","de","en","en@pirate","en_GB","es","es_419","fr","he","hu","id","it","ja","nl","pl","pt","pt_BR","ro","ru","sk","sr","sv","uk","zh","zh_TW"} [language=en] Language code used for the items' strings. If the authenticated user makes the request, the content will return with the user's configured language.
|
||||
*
|
||||
* @apiSuccess {Object} data Various data about the content of Habitica. The content route
|
||||
* contains many keys, but the data listed below are the recomended data to use.
|
||||
|
||||
Reference in New Issue
Block a user