MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>

Authenticating requests

This API is not authenticated.

Endpoints

POST api/auth/login

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/auth/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/auth/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/auth/login

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/auth/logout

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/auth/logout" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/auth/logout"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/auth/logout

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/auth/me

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/auth/me" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/auth/me"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/auth/me

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/mobile/home

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/mobile/home" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/home"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/mobile/home

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/mobile/relatorio

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/mobile/relatorio" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/relatorio"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/mobile/relatorio

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/mobile/inputSelect

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/mobile/inputSelect" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/inputSelect"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/mobile/inputSelect

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

PUT api/mobile/redefinirSenha

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/mobile/redefinirSenha" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/redefinirSenha"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/mobile/redefinirSenha

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

PUT api/mobile/excluirConta

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/mobile/excluirConta" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/excluirConta"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/mobile/excluirConta

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

POST api/mobile/dashboard

Example request:
curl --request POST \
    "http://127.0.0.1:8000/api/mobile/dashboard" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/dashboard"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/mobile/dashboard

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/mobile/listarPaciente

Example request:
curl --request GET \
    --get "http://127.0.0.1:8000/api/mobile/listarPaciente" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/listarPaciente"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Unauthenticated."
}
 

Request      

GET api/mobile/listarPaciente

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

PUT api/mobile/salvarMedico

Example request:
curl --request PUT \
    "http://127.0.0.1:8000/api/mobile/salvarMedico" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://127.0.0.1:8000/api/mobile/salvarMedico"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/mobile/salvarMedico

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json