1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 21:44:21 +00:00
royalnet/royalpack/pycharm/test_apis.http
2020-02-11 19:53:18 +01:00

70 lines
1.2 KiB
HTTP

POST http://localhost:44445/api/login/royalnet/v1
Content-Type: application/json
{
"username": "Steffo",
"password": "ciao"
}
###
POST http://localhost:44445/api/token/create/v1
Content-Type: application/json
{
"token": "NFFU4qg6-WxfAWMN-IW6dexEjNcLzNQNZJko2_pbTsE",
"duration": 31536000
}
###
GET http://localhost:44445/api/bio/get/v1
Content-Type: application/json
{
"token": "NFFU4qg6-WxfAWMN-IW6dexEjNcLzNQNZJko2_pbTsE",
"id": 1
}
###
POST http://localhost:44445/api/bio/set/v1
Content-Type: application/json
{
"token": "NFFU4qg6-WxfAWMN-IW6dexEjNcLzNQNZJko2_pbTsE",
"contents": "Ciao!"
}
###
GET http://localhost:44445/api/wiki/list/v1
###
POST http://localhost:44445/api/wiki/edit/v1
Content-Type: application/json
{
"token": "NFFU4qg6-WxfAWMN-IW6dexEjNcLzNQNZJko2_pbTsE",
"title": "Prova!",
"contents": "Questa è una pagina wiki di prova.",
"format": "text",
"theme": "default"
}
###
POST http://localhost:44445/api/wiki/edit/v1
Content-Type: application/json
{
"id": "80d54849-fab1-4458-9d89-2429773118ef",
"token": "NFFU4qg6-WxfAWMN-IW6dexEjNcLzNQNZJko2_pbTsE",
"title": "Prova2",
"contents": "Questa è una pagina wiki di prova2.",
"format": "text",
"theme": "default"
}
###