MENU navbar-image

Introdução

Esta documentação tem por objetivo prover todas as informações necessárias para você trabalhar com nossa 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>

Solicitações de autenticação

Essa API não necessita autentição.

Endpoints

GET api/obras

Exemplo de Requisição:
curl --request GET \
    --get "http://localhost/api/obras" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/obras"
);

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


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

Exemplo de Resposta (500):

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

{
    "message": "Server Error"
}
 

Request      

GET api/obras

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/galerias

Exemplo de Requisição:
curl --request GET \
    --get "http://localhost/api/galerias" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/galerias"
);

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


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

Exemplo de Resposta (500):

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

{
    "message": "Server Error"
}
 

Request      

GET api/galerias

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json

GET api/imagens

Exemplo de Requisição:
curl --request GET \
    --get "http://localhost/api/imagens" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "http://localhost/api/imagens"
);

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


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

Exemplo de Resposta (500):

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

{
    "message": "Server Error"
}
 

Request      

GET api/imagens

Headers

Content-Type        

Example: application/json

Accept        

Example: application/json