Public
Documentation Settings

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

<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

application/json

Bodyraw
{"email":"baobaozhou199606@gmail.com","pwd":"123456","captcha":"QA04XP"}
Example Request
curl
curl --location 'http://egg.raoul1996.cn/login' \
--header 'Content-Type: application/json' \
--data-raw '{"email":"baobaozhou199606@gmail.com","pwd":"123456","captcha":"QA04XP"}'
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

<token>

HEADERS
Content-Type

application/json

Bodyraw
{"name":"tests","email":"tellss@mail.com","mobile":"15033513589","pwd":"123456","confirm":"123456"}
Example Request
curl
curl --location 'http://localhost:7001/register' \
--header 'Content-Type: application/json' \
--data-raw '{"name":"tests","email":"tellss@mail.com","mobile":"15033513589","pwd":"123456","confirm":"123456"}'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers