MENU navbar-image

Introduction

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

Base URL

https://api-rivista.bahi.ovh/

Authenticating requests

Authenticate requests to this API's endpoints by sending an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Auth management

APIs for managing authentication

POST api/login

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"password\": \"id\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/login"
);

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

let body = {
    "email": "[email protected]",
    "password": "id"
};

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

Request      

POST api/login

Body Parameters

email  string  

Must be a valid email address.

password  string  

POST api/register

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"non\",
    \"last_name\": \"aspernatur\",
    \"email\": \"[email protected]\",
    \"password\": \"atque\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/register"
);

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

let body = {
    "first_name": "non",
    "last_name": "aspernatur",
    "email": "[email protected]",
    "password": "atque"
};

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

Request      

POST api/register

Body Parameters

first_name  string  

last_name  string  

email  string  

Must be a valid email address.

password  string  

POST api/forgot-password

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/forgot-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"[email protected]\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/forgot-password"
);

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

let body = {
    "email": "[email protected]"
};

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

Request      

POST api/forgot-password

Body Parameters

email  string  

Must be a valid email address.

PUT api/reset-password

Example request:
curl --request PUT \
    "https://api-rivista.bahi.ovh/api/reset-password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"token\": \"quod\",
    \"email\": \"[email protected]\",
    \"password\": \"\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/reset-password"
);

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

let body = {
    "token": "quod",
    "email": "[email protected]",
    "password": ""
};

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

Request      

PUT api/reset-password

Body Parameters

token  string  

email  string  

Must be a valid email address.

password  string  

Must be at least 8 characters.

DELETE api/logout

requires authentication

Example request:
curl --request DELETE \
    "https://api-rivista.bahi.ovh/api/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/logout"
);

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

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

Request      

DELETE api/logout

POST api/resend-email-verification

requires authentication

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/resend-email-verification" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/resend-email-verification"
);

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

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

Request      

POST api/resend-email-verification

GET api/email/verify/{id}/{hash}

requires authentication

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/email/verify/nisi/qui" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/email/verify/nisi/qui"
);

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

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

Request      

GET api/email/verify/{id}/{hash}

URL Parameters

id  string  

The ID of the verify.

hash  string  

Category management

APIs for managing Categories

GET api/admin/categories/{slug}

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/admin/categories/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/admin/categories/1"
);

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

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

Request      

GET api/admin/categories/{slug}

URL Parameters

slug  integer  

The slug of the category.

POST api/categories

requires authentication

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/categories" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"rutcpauhtfygzimfskuofligrjweubooumutdyavntmkrlygcjkwgpznzeotqjzuvbqbrritjwrvqckuygwjxakkodbqlrnlkkpvujenekrjsydedtgrjexkjufsxxcsrpwofytdvyl\",
    \"description\": \"dyeusgnykczrhnopjykmswwqowdot\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/categories"
);

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

let body = {
    "name": "rutcpauhtfygzimfskuofligrjweubooumutdyavntmkrlygcjkwgpznzeotqjzuvbqbrritjwrvqckuygwjxakkodbqlrnlkkpvujenekrjsydedtgrjexkjufsxxcsrpwofytdvyl",
    "description": "dyeusgnykczrhnopjykmswwqowdot"
};

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

Request      

POST api/categories

Body Parameters

name  string  

Must not be greater than 255 characters.

description  string optional  

Must not be greater than 255 characters.

PUT api/categories/{slug}

requires authentication

Example request:
curl --request PUT \
    "https://api-rivista.bahi.ovh/api/categories/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"pgqhjbpehwcweflmlowijussyznglugriqvxxlciiqafuwrebmcbnzufpjxsutqqwmwfwdkmnxbroivfqlsswuobqmpdl\",
    \"description\": \"hyn\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/categories/1"
);

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

let body = {
    "name": "pgqhjbpehwcweflmlowijussyznglugriqvxxlciiqafuwrebmcbnzufpjxsutqqwmwfwdkmnxbroivfqlsswuobqmpdl",
    "description": "hyn"
};

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

Request      

PUT api/categories/{slug}

URL Parameters

slug  integer  

The slug of the category.

Body Parameters

name  string  

Must not be greater than 255 characters.

description  string optional  

Must not be greater than 255 characters.

DELETE api/categories/{slug}

requires authentication

Example request:
curl --request DELETE \
    "https://api-rivista.bahi.ovh/api/categories/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/categories/1"
);

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

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

Request      

DELETE api/categories/{slug}

URL Parameters

slug  integer  

The slug of the category.

GET api/categories

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/categories" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/categories"
);

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

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

Request      

GET api/categories

GET api/categories/{slug}

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/categories/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/categories/1"
);

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

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

Request      

GET api/categories/{slug}

URL Parameters

slug  integer  

The slug of the category.

GET api/views/categories

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/views/categories" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/views/categories"
);

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

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

Request      

GET api/views/categories

GET api/likes/categories

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/likes/categories" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/likes/categories"
);

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

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

Request      

GET api/likes/categories

Comment management

APIs for managing Comments

POST api/connected-comments

requires authentication

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/connected-comments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/connected-comments"
);

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

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

Request      

POST api/connected-comments

DELETE api/comments/{id}

requires authentication

Example request:
curl --request DELETE \
    "https://api-rivista.bahi.ovh/api/comments/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/comments/1"
);

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

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

Request      

DELETE api/comments/{id}

URL Parameters

id  integer  

The ID of the comment.

POST api/guest-comments

requires authentication

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/guest-comments" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/guest-comments"
);

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

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

Request      

POST api/guest-comments

Endpoints

GET api/test

requires authentication

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/test" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/test"
);

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

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

Request      

GET api/test

POST api/test

PUT api/test

PATCH api/test

DELETE api/test

OPTIONS api/test

Like management

APIs for managing Likes

POST api/likes

requires authentication

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/likes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rivista_id\": 11
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/likes"
);

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

let body = {
    "rivista_id": 11
};

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

Request      

POST api/likes

Body Parameters

rivista_id  integer  

DELETE api/likes

requires authentication

Example request:
curl --request DELETE \
    "https://api-rivista.bahi.ovh/api/likes" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rivista_id\": 6
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/likes"
);

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

let body = {
    "rivista_id": 6
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/likes

Body Parameters

rivista_id  integer  

Rivista management

APIs for managing Rivistas

POST api/rivistas

requires authentication

Example request:
curl --request POST \
    "https://api-rivista.bahi.ovh/api/rivistas" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"facere\",
    \"text\": \"adipisci\",
    \"category_id\": 2
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/rivistas"
);

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

let body = {
    "title": "facere",
    "text": "adipisci",
    "category_id": 2
};

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

Request      

POST api/rivistas

Body Parameters

title  string  

text  string  

category_id  integer  

PUT api/rivistas/{id}

requires authentication

Example request:
curl --request PUT \
    "https://api-rivista.bahi.ovh/api/rivistas/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"aut\",
    \"slug\": \"sit\",
    \"text\": \"tempore\",
    \"category_id\": 4
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/rivistas/1"
);

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

let body = {
    "title": "aut",
    "slug": "sit",
    "text": "tempore",
    "category_id": 4
};

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

Request      

PUT api/rivistas/{id}

URL Parameters

id  integer  

The ID of the rivista.

Body Parameters

title  string optional  

slug  string optional  

text  string optional  

category_id  integer optional  

DELETE api/rivistas/{id}

requires authentication

Example request:
curl --request DELETE \
    "https://api-rivista.bahi.ovh/api/rivistas/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/rivistas/1"
);

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

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

Request      

DELETE api/rivistas/{id}

URL Parameters

id  integer  

The ID of the rivista.

GET api/rivistas

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/rivistas" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/rivistas"
);

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

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

Request      

GET api/rivistas

GET api/rivistas/{slug}

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/rivistas/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/rivistas/1"
);

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

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

Request      

GET api/rivistas/{slug}

URL Parameters

slug  integer  

The slug of the rivista.

GET api/views/rivistas

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/views/rivistas" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/views/rivistas"
);

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

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

Request      

GET api/views/rivistas

GET api/likes/rivistas

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/likes/rivistas" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/likes/rivistas"
);

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

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

Request      

GET api/likes/rivistas

User management

APIs for managing Users

GET api/user

requires authentication

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/user"
);

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

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

Request      

GET api/user

PUT api/user

requires authentication

Example request:
curl --request PUT \
    "https://api-rivista.bahi.ovh/api/user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"first_name\": \"tempora\",
    \"last_name\": \"optio\",
    \"password\": \"sed\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/user"
);

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

let body = {
    "first_name": "tempora",
    "last_name": "optio",
    "password": "sed"
};

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

Request      

PUT api/user

Body Parameters

first_name  string optional  

last_name  string optional  

password  string  

DELETE api/user

requires authentication

Example request:
curl --request DELETE \
    "https://api-rivista.bahi.ovh/api/user" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"sunt\"
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/user"
);

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

let body = {
    "password": "sunt"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/user

Body Parameters

password  string  

PUT api/user-role

requires authentication

Example request:
curl --request PUT \
    "https://api-rivista.bahi.ovh/api/user-role" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_id\": 15
}"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/user-role"
);

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

let body = {
    "user_id": 15
};

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

Request      

PUT api/user-role

Body Parameters

role  string optional  

user_id  integer  

GET api/users

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/users"
);

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

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

Request      

GET api/users

GET api/users/{slug}

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/users/1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/users/1"
);

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

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

Request      

GET api/users/{slug}

URL Parameters

slug  integer  

The slug of the user.

GET api/views/users

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/views/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/views/users"
);

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

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

Request      

GET api/views/users

GET api/likes/users

Example request:
curl --request GET \
    --get "https://api-rivista.bahi.ovh/api/likes/users" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api-rivista.bahi.ovh/api/likes/users"
);

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

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

Request      

GET api/likes/users