Skip to content
Zed edited this page Mar 31, 2020 · 2 revisions

Auth

Login

Endpoint: POST - http://localhost:8080/api/v1/login

Description: N/A

Header

{
	Content-Type: application/json; charset=utf-8
}

Body

{
	"username": "kastnerorz",
	"password": "01db71ab8048f74a4b92c26ba77285ade0687ac192758e8185ad52701f649ef2"
}

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Tue, 31 Mar 2020 15:38:38 GMT
Content-Length: 227
Connection: close

{
  "code": 200,
  "expire": "2020-04-01T00:38:38+08:00",
  "token": "eyJhbG"
}

Refresh

Endpoint: POST - http://ac.kastner.cn/api/v1/refresh

Description: N/A

Header

{
	Authorization: Bearer 
}

Body


Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Date: Tue, 31 Mar 2020 16:21:56 GMT
Content-Length: 227
Connection: close

{
  "code": 200,
  "expire": "2020-04-01T01:21:56+08:00",
  "token": "eyJhbGc"
}
Clone this wiki locally