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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error:
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());
Received response:
Request failed with error: