Skip to content
Vinícius edited this page May 7, 2018 · 7 revisions

POST /store - cria loja

head { username (string), name (string), password (string), levels: [ { nextLevel (double), percent (double) } ] } return ( 200, 400, //invalid format 500 )

GET /login - retorna token da loja head { username (string), password (string) } return ( 200, 401, //login or password incorrect 500 ) 200 - ( string )

PUT /level - atualiza levels de uma loja head { token (string), levels: [ { nextLevel (double), percent (double) } ] } return ( 200, 401, // invalid/expired token 500 )

GET /percent - Diz qual deve ser a porcentagem de volta

head { token (string), storeid (string), cellphone (string), value (double), discount (double) } return ( 200, 401, //invalid format (cellphone, value, discount) 401, //expired/invalid token 500 )

200 - ( double )

Clone this wiki locally