egg-vote
Introduction
vote backend plateform based on eggjs.
Overview
- you can get a token via visit the login api.
- most of my api need you add the jwt to request header.
Authentication
JSON Web Token.
Error Codes
many, and I will return the Error Message.
Enlish is not my native language, please excuse the typing errors.
AUTHORIZATIONBearer Token
Token
users
AUTHORIZATIONBearer Token
This folder is using Bearer Token from collectionegg-vote
POSTlogin
http://egg.raoul1996.cn/login
you need to add the "captcha" key in the payload.
first, you should visit the /captcha
api, and you will see a image, then visit the /txt
api,
then copy the response body, that's the captcha value.
AUTHORIZATIONBearer Token
This request is using Bearer Token from collectionegg-vote
HEADERS
Content-Type
Bodyraw
Example Request
login
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
POSTregister
http://localhost:7001/register
AUTHORIZATIONBearer Token
Token
HEADERS
Content-Type
Bodyraw
Example Request
register
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers