Created
May 8, 2019 08:13
-
-
Save webislife/5ce9d098f4751859959a6c2195a445c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class Swagger API | |
*/ | |
export class SwaggerApi { | |
/** | |
* Метод API для получения токена | |
* @param {Object} payload query data | |
* @returns {Object} {data, pagination} | |
*/ | |
authSignIn(payload) { | |
return this.Request.post("/api/v4/auth/sign-in/", | |
{ | |
data: payload | |
} | |
); | |
} | |
/** | |
* Метод API для получения меню | |
* @param {Object} payload query data | |
* @returns {Object} {data, pagination} | |
*/ | |
categoryMenu(payload) { | |
return this.Request.get("/api/v4/category/menu/", | |
{ | |
params: payload | |
} | |
); | |
} | |
/** | |
* Возвращает список городов | |
* @param {Object} payload query params | |
* @returns {Object} {data} | |
*/ | |
getCities(payload) { | |
return this.Request.get("/api/v4/location/city/", | |
{ | |
params: payload | |
} | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment