Utilizando o docker e docker-compose:
sudo docker-compose up
e o servidor estará escutando na porta 8000 do localhost, depois é necessário apenas que abra o link no navegador localhost:8000
/api/domains/admins/
* Methods allowed: ['POST']
* request data:
* username: String (required);
* password: String (required);
* email: String (optional);
* first_name: String (optional);
* last_name: String (optional)
* header: 'Authorization: JWT authentication_token'
* response data:
* ok: administrator registered
/api/domains/authenticate/
* Methods allowed: ['POST']
* request data:
* username: String,
* password: String,
* header: 'Content-type: application/json'
* response data:
* token: String,
/api/domains/recover-domain-key/
* Methods allowed: ['GET']
* requires domain administrator authentication
* request data:
* application_name: String
* header: 'Authorization: JWT authentication_token'
/api/domains/admins/
* Methods allowed: ['PUT']
* request data:
* email: String
* header: 'Content-type: application/json'
/api/domains/domains/
* Methods allowed: ['POST']
* request data:
* uri: String
* application_name: String,
* administrator: int
* header: 'Content-type: application/json'
/api/denunciations/denunciation/
* Methods allowed: ['POST', 'GET']
POST:
* request data:
* key: String (required)
* denunciable.denunciable_id: Integer (required)
* denunciable.denunciable_type: String (required)
* denunciation.categories: String list (optional)
* denunciation.justification: String (required)
* denunciation.denouncer: String (optional)
* header: 'Content-type: application/json'
GET:
* request data:
* header: '**{'HTTP_KEY': 'key'}' (required)
* response data:
* list[
* url: Link
* current_state: String
* justification: String
* denunciable: Link
* categories: Link list (may not be)
* denouncer: Link (may not be)
* evaluation: String (may not be)
* fake: Boolean (may not be)
*]
/api/denunciations/denunciation-queue/
* Methods allowed: ['GET']
* query_params:
* start: Date 'yyyy-mm-dd' (optional)
* end: Date 'yyyy-mm-dd' (optional)
* queries: ['gravity','-gravity','date','-date'] (optional)
* response data:
* denunciation_queue: list of urls to denunciation
/api/denunciations/denunciation/id/
* Methods allowed: ['GET', 'DELETE']
GET:
* request data:
* header: '**{'HTTP_KEY': 'key'}' (required)
* response data:
* url: Link
* current_state: String
* justification: String
* denunciable: Link
* categories: Link list (may not be)
* denouncer: Link (may not be)
* evaluation: String (may not be)
* Fake: Boolean (may not be)
DELETE:
* request data:
* header: '**{'HTTP_KEY': 'key'}' (required)
* Methods allowed: ['GET', 'PATCH']
GET:
/api/denunciations/denunciation/id/null
* request data:
* header: '**{'HTTP_KEY': 'key'}' (required)
/api/denunciations/denunciation/id/waiting
* require denunciation state be in nullstate
* request data:
* header: '**{'HTTP_KEY': 'key'}' (required)
/api/denunciations/denunciation/id/evaluating
* require denunciation state be in waitingstate
* request data:
* header: '**{'HTTP_KEY': 'key'}' (required)
PATCH:
/api/denunciations/denunciation/id/done
* require denunciation state be in evaluatingstate
* request data:
* evaluation: String (required)
* fake: Boolean (required)
* header: '**{'HTTP_KEY': 'key'} Content-type: application/json' (required)
/api/denunciations/denunciation-categories/
* Methods allowed: ['POST']
POST:
* request data:
* name: String (required)
* gravity: enum('High', 'Medium', 'Low') (required)
* header: 'Content-type: application/json'