MENU navbar-image

Introduction

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

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer your-token".

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.

Endpoints

POST api/v1/register

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/register" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"first_name\": \"xkbdewxb\",
    \"last_name\": \"avjbdutumizxrtlodvoyjijsy\",
    \"country\": \"mbxwgcdvbvmgqnotvwjxgpi\",
    \"city\": \"ifkwbswnpdfdmdik\",
    \"email\": \"rschinner@example.com\",
    \"password\": \"jO4J..f?\'Wv\\\\\",
    \"password_confirmation\": \"est\",
    \"how_did_you_hear_about_us_id\": 13,
    \"subscribe_to_newsletter\": true
}"
const url = new URL(
    "http://morepaws.local/api/v1/register"
);

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

let body = {
    "first_name": "xkbdewxb",
    "last_name": "avjbdutumizxrtlodvoyjijsy",
    "country": "mbxwgcdvbvmgqnotvwjxgpi",
    "city": "ifkwbswnpdfdmdik",
    "email": "rschinner@example.com",
    "password": "jO4J..f?'Wv\\",
    "password_confirmation": "est",
    "how_did_you_hear_about_us_id": 13,
    "subscribe_to_newsletter": true
};

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

Request      

POST api/v1/register

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

first_name   string   

Must not be greater than 255 characters. Example: xkbdewxb

last_name   string   

Must not be greater than 255 characters. Example: avjbdutumizxrtlodvoyjijsy

country   string   

Must not be greater than 255 characters. Example: mbxwgcdvbvmgqnotvwjxgpi

city   string   

Must not be greater than 255 characters. Example: ifkwbswnpdfdmdik

email   string   

Must be a valid email address. Must not be greater than 255 characters. Example: rschinner@example.com

password   string   

Example: jO4J..f?'Wv\

password_confirmation   string   

The value and password must match. Example: est

how_did_you_hear_about_us_id   integer   

Example: 13

subscribe_to_newsletter   boolean  optional  

Example: true

POST api/v1/login

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/login" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"email\": \"jovany.walsh@example.net\",
    \"password\": \"RUQ^b:zh,0\\\\AwBJ\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/login"
);

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

let body = {
    "email": "jovany.walsh@example.net",
    "password": "RUQ^b:zh,0\\AwBJ"
};

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

Request      

POST api/v1/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

email   string   

Example: jovany.walsh@example.net

password   string   

Example: RUQ^b:zh,0\AwBJ

POST api/v1/forgot_password

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/forgot_password" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/forgot_password"
);

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

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

Request      

POST api/v1/forgot_password

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/pin_verification

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/pin_verification" \
    --header "Authorization: Bearer vfEaZ6k5834hD1bgc6VdPae" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"pin\": 13,
    \"user_id\": 6
}"
const url = new URL(
    "http://morepaws.local/api/v1/pin_verification"
);

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

let body = {
    "pin": 13,
    "user_id": 6
};

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

Request      

POST api/v1/pin_verification

Headers

Authorization      

Example: Bearer vfEaZ6k5834hD1bgc6VdPae

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

pin   integer   

Example: 13

user_id   integer   

Example: 6

POST api/v1/reset_password

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/reset_password" \
    --header "Authorization: Bearer efPb6v165hgkaaVZ3d8ED4c" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"user_id\": 12,
    \"password\": \".q{xfM@_c\",
    \"password_confirmation\": \"incidunt\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/reset_password"
);

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

let body = {
    "user_id": 12,
    "password": ".q{xfM@_c",
    "password_confirmation": "incidunt"
};

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

Request      

POST api/v1/reset_password

Headers

Authorization      

Example: Bearer efPb6v165hgkaaVZ3d8ED4c

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

user_id   integer   

Example: 12

password   string   

Example: .q{xfM@_c

password_confirmation   string   

The value and password must match. Example: incidunt

POST api/v1/logout

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/logout" \
    --header "Authorization: Bearer gd4aePVhcf8Zk63DEva56b1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/logout"
);

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

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

Request      

POST api/v1/logout

Headers

Authorization      

Example: Bearer gd4aePVhcf8Zk63DEva56b1

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/users/info

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/info" \
    --header "Authorization: Bearer Z15PehDfdkg68av4V3aEcb6" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"date_of_birth\": \"2024-03-26T14:31:56\",
    \"biography\": \"quos\",
    \"interests\": [
        3
    ]
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/info"
);

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

let body = {
    "date_of_birth": "2024-03-26T14:31:56",
    "biography": "quos",
    "interests": [
        3
    ]
};

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

Request      

POST api/v1/users/info

Headers

Authorization      

Example: Bearer Z15PehDfdkg68av4V3aEcb6

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

date_of_birth   string   

Must be a valid date. Example: 2024-03-26T14:31:56

biography   string   

Example: quos

interests   integer[]   

GET api/v1/users/interests

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/users/interests" \
    --header "Authorization: Bearer khVZad4bg1EP53caf866vDe" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/users/interests"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/users/interests

Headers

Authorization      

Example: Bearer khVZad4bg1EP53caf866vDe

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Load the user with interests.

requires authentication

just in case user decide to return back to this page.

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/users/load_user" \
    --header "Authorization: Bearer a3a8kZ614gEh56vbePVcdfD" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/users/load_user"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/users/load_user

Headers

Authorization      

Example: Bearer a3a8kZ614gEh56vbePVcdfD

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/users/show

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/users/show" \
    --header "Authorization: Bearer ecZbEgVfh51k3D6v68adP4a" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"user_id\": 12
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/show"
);

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

let body = {
    "user_id": 12
};

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

Example response (401):

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

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/users/show

Headers

Authorization      

Example: Bearer ecZbEgVfh51k3D6v68adP4a

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

user_id   integer   

Example: 12

POST api/v1/users/update

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/update" \
    --header "Authorization: Bearer g8ch4Z53k6aVbeDd6fPa1Ev" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"first_name\": \"voluptatem\",
    \"last_name\": \"in\",
    \"biography\": \"aspernatur\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/update"
);

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

let body = {
    "first_name": "voluptatem",
    "last_name": "in",
    "biography": "aspernatur"
};

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

Request      

POST api/v1/users/update

Headers

Authorization      

Example: Bearer g8ch4Z53k6aVbeDd6fPa1Ev

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

first_name   string   

Example: voluptatem

last_name   string   

Example: in

biography   string   

Example: aspernatur

POST api/v1/users/update_personal_details

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/update_personal_details" \
    --header "Authorization: Bearer 8b16kZ3hPD5ceaa4E6Vfvdg" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"first_name\": \"omnis\",
    \"last_name\": \"quod\",
    \"country\": \"praesentium\",
    \"city\": \"rerum\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/update_personal_details"
);

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

let body = {
    "first_name": "omnis",
    "last_name": "quod",
    "country": "praesentium",
    "city": "rerum"
};

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

Request      

POST api/v1/users/update_personal_details

Headers

Authorization      

Example: Bearer 8b16kZ3hPD5ceaa4E6Vfvdg

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

first_name   string   

Example: omnis

last_name   string   

Example: quod

email   string  optional  
country   string   

Example: praesentium

city   string   

Example: rerum

POST api/v1/users/update_profile_photo

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/update_profile_photo" \
    --header "Authorization: Bearer 53h86Z1dEfe46vaPVgabcDk" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --form "profile_photo=@/private/var/folders/bm/9lvdrhkx1gx4rl9_m2512_cc0000gn/T/phpJRb0mb" 
const url = new URL(
    "http://morepaws.local/api/v1/users/update_profile_photo"
);

const headers = {
    "Authorization": "Bearer 53h86Z1dEfe46vaPVgabcDk",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "0": "Bearer",
};

const body = new FormData();
body.append('profile_photo', document.querySelector('input[name="profile_photo"]').files[0]);

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

Request      

POST api/v1/users/update_profile_photo

Headers

Authorization      

Example: Bearer 53h86Z1dEfe46vaPVgabcDk

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

profile_photo   file   

Must be an image. Must not be greater than 2048 kilobytes. Example: /private/var/folders/bm/9lvdrhkx1gx4rl9_m2512_cc0000gn/T/phpJRb0mb

POST api/v1/users/update_password

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/update_password" \
    --header "Authorization: Bearer aZa3f4gE58de16PvchDkbV6" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"old_password\": \"omnis\",
    \"password\": \"1~NHPHfd:1qh!oT\",
    \"password_confirmation\": \"tenetur\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/update_password"
);

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

let body = {
    "old_password": "omnis",
    "password": "1~NHPHfd:1qh!oT",
    "password_confirmation": "tenetur"
};

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

Request      

POST api/v1/users/update_password

Headers

Authorization      

Example: Bearer aZa3f4gE58de16PvchDkbV6

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

old_password   string   

Example: omnis

password   string   

Example: 1~NHPHfd:1qh!oT

password_confirmation   string   

The value and password must match. Example: tenetur

POST api/v1/users/update_interests

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/update_interests" \
    --header "Authorization: Bearer Z48Pb3ge5fv1cdaD6hVEa6k" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"interests\": [
        20
    ]
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/update_interests"
);

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

let body = {
    "interests": [
        20
    ]
};

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

Request      

POST api/v1/users/update_interests

Headers

Authorization      

Example: Bearer Z48Pb3ge5fv1cdaD6hVEa6k

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

interests   integer[]   

POST api/v1/users/update_location

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/update_location" \
    --header "Authorization: Bearer 14k6gae53f6daPcD8VbvEZh" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"name\": \"pasnqbmmoujpuulocuwvjedj\",
    \"latitude\": \"exercitationem\",
    \"longitude\": \"rerum\",
    \"address\": \"kzwwfhvcqqfkb\",
    \"city\": \"pdrupxaedeghvmeyuwwmo\",
    \"country\": \"rxlizrpmbat\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/update_location"
);

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

let body = {
    "name": "pasnqbmmoujpuulocuwvjedj",
    "latitude": "exercitationem",
    "longitude": "rerum",
    "address": "kzwwfhvcqqfkb",
    "city": "pdrupxaedeghvmeyuwwmo",
    "country": "rxlizrpmbat"
};

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

Request      

POST api/v1/users/update_location

Headers

Authorization      

Example: Bearer 14k6gae53f6daPcD8VbvEZh

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

name   string   

Must not be greater than 255 characters. Example: pasnqbmmoujpuulocuwvjedj

latitude   string   

Example: exercitationem

longitude   string   

Example: rerum

address   string   

Must not be greater than 255 characters. Example: kzwwfhvcqqfkb

city   string   

Must not be greater than 255 characters. Example: pdrupxaedeghvmeyuwwmo

country   string   

Must not be greater than 255 characters. Example: rxlizrpmbat

POST api/v1/users/update_biography

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/update_biography" \
    --header "Authorization: Bearer 63ahvfa14Vd8EcZbgD6k5Pe" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"biography\": \"ex\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/update_biography"
);

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

let body = {
    "biography": "ex"
};

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

Request      

POST api/v1/users/update_biography

Headers

Authorization      

Example: Bearer 63ahvfa14Vd8EcZbgD6k5Pe

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

biography   string   

Example: ex

POST api/v1/users/store_dog_photos

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/store_dog_photos" \
    --header "Authorization: Bearer 61VbgeDaZPEhdc6v38ka4f5" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --form "photos[]=@/private/var/folders/bm/9lvdrhkx1gx4rl9_m2512_cc0000gn/T/phpKAGxI0" 
const url = new URL(
    "http://morepaws.local/api/v1/users/store_dog_photos"
);

const headers = {
    "Authorization": "Bearer 61VbgeDaZPEhdc6v38ka4f5",
    "Content-Type": "multipart/form-data",
    "Accept": "application/json",
    "0": "Bearer",
};

const body = new FormData();
body.append('photos[]', document.querySelector('input[name="photos[]"]').files[0]);

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

Request      

POST api/v1/users/store_dog_photos

Headers

Authorization      

Example: Bearer 61VbgeDaZPEhdc6v38ka4f5

Content-Type      

Example: multipart/form-data

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

photos   file[]   

Must be an image. Must not be greater than 2048 kilobytes.

GET api/v1/users/show_dog_photos

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/users/show_dog_photos" \
    --header "Authorization: Bearer Ef3V8de41cPva6gDa65bhkZ" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"user_id\": 7
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/show_dog_photos"
);

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

let body = {
    "user_id": 7
};

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

Example response (401):

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

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/users/show_dog_photos

Headers

Authorization      

Example: Bearer Ef3V8de41cPva6gDa65bhkZ

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

user_id   integer   

Example: 7

POST api/v1/users/delete_dog_photo

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/delete_dog_photo" \
    --header "Authorization: Bearer c3b6EVa615kg48vaZDPhdef" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"photo_id\": 9
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/delete_dog_photo"
);

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

let body = {
    "photo_id": 9
};

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

Request      

POST api/v1/users/delete_dog_photo

Headers

Authorization      

Example: Bearer c3b6EVa615kg48vaZDPhdef

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

photo_id   integer   

Example: 9

GET api/v1/users/user_posts

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/users/user_posts" \
    --header "Authorization: Bearer a8gad3ZVEk4fcP15v6e6hbD" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"user_id\": 16
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/user_posts"
);

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

let body = {
    "user_id": 16
};

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

Example response (401):

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

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/users/user_posts

Headers

Authorization      

Example: Bearer a8gad3ZVEk4fcP15v6e6hbD

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

user_id   integer   

Example: 16

GET api/v1/users/user_dogs

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/users/user_dogs" \
    --header "Authorization: Bearer bgk6Vd31eDP8Zv46faacEh5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"user_id\": 11
}"
const url = new URL(
    "http://morepaws.local/api/v1/users/user_dogs"
);

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

let body = {
    "user_id": 11
};

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

Example response (401):

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

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/users/user_dogs

Headers

Authorization      

Example: Bearer bgk6Vd31eDP8Zv46faacEh5

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

user_id   integer   

Example: 11

POST api/v1/users/delete_profile_image

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/delete_profile_image" \
    --header "Authorization: Bearer 61ak5h68agb4f3cEdvPDZeV" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/users/delete_profile_image"
);

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

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

Request      

POST api/v1/users/delete_profile_image

Headers

Authorization      

Example: Bearer 61ak5h68agb4f3cEdvPDZeV

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/users/delete_account

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/users/delete_account" \
    --header "Authorization: Bearer d16vkVPab5D4g6Z3eaEhcf8" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/users/delete_account"
);

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

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

Request      

POST api/v1/users/delete_account

Headers

Authorization      

Example: Bearer d16vkVPab5D4g6Z3eaEhcf8

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/dogs/characters

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/dogs/characters" \
    --header "Authorization: Bearer c3P64g1adafEZhDkeV58b6v" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/characters"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/dogs/characters

Headers

Authorization      

Example: Bearer c3P64g1adafEZhDkeV58b6v

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/dogs/breeds

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/dogs/breeds" \
    --header "Authorization: Bearer Zg4a5bf61Pchad8kD36EeVv" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/breeds"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/dogs/breeds

Headers

Authorization      

Example: Bearer Zg4a5bf61Pchad8kD36EeVv

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/dogs/store

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/dogs/store" \
    --header "Authorization: Bearer 3D1kv8cage6bdEZ4a5PVhf6" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"name\": \"ud\",
    \"breed_id\": 6,
    \"description\": \"Et nesciunt autem id perferendis cum dolor id.\",
    \"temperaments\": [
        8
    ]
}"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/store"
);

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

let body = {
    "name": "ud",
    "breed_id": 6,
    "description": "Et nesciunt autem id perferendis cum dolor id.",
    "temperaments": [
        8
    ]
};

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

Request      

POST api/v1/dogs/store

Headers

Authorization      

Example: Bearer 3D1kv8cage6bdEZ4a5PVhf6

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

name   string   

Must not be greater than 255 characters. Example: ud

breed_id   integer   

Example: 6

description   string   

Example: Et nesciunt autem id perferendis cum dolor id.

temperaments   integer[]   

POST api/v1/dogs/add_character

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/dogs/add_character" \
    --header "Authorization: Bearer Dc4ePEafk18hbdZ5g6V6av3" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"name\": \"xkmbyilfwt\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/add_character"
);

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

let body = {
    "name": "xkmbyilfwt"
};

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

Request      

POST api/v1/dogs/add_character

Headers

Authorization      

Example: Bearer Dc4ePEafk18hbdZ5g6V6av3

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

name   string   

Must not be greater than 255 characters. Example: xkmbyilfwt

GET api/v1/dogs/load_vaccines

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/dogs/load_vaccines" \
    --header "Authorization: Bearer D4EfgZ6kh5cve8VaabPd136" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/load_vaccines"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/dogs/load_vaccines

Headers

Authorization      

Example: Bearer D4EfgZ6kh5cve8VaabPd136

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/dogs/add_new_dog

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/dogs/add_new_dog" \
    --header "Authorization: Bearer PvfZdkE6e318cD65gba4ahV" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"name\": \"suzxfkwzz\",
    \"breed_id\": 2,
    \"description\": \"Sint quae molestiae unde nam voluptatibus.\",
    \"temperaments\": [
        7
    ]
}"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/add_new_dog"
);

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

let body = {
    "name": "suzxfkwzz",
    "breed_id": 2,
    "description": "Sint quae molestiae unde nam voluptatibus.",
    "temperaments": [
        7
    ]
};

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

Request      

POST api/v1/dogs/add_new_dog

Headers

Authorization      

Example: Bearer PvfZdkE6e318cD65gba4ahV

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

name   string   

Must not be greater than 255 characters. Example: suzxfkwzz

breed_id   integer   

Example: 2

description   string   

Example: Sint quae molestiae unde nam voluptatibus.

temperaments   integer[]   

POST api/v1/dogs/update_dog

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/dogs/update_dog" \
    --header "Authorization: Bearer DckZ1bvheVaEa6P8543df6g" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"dog_id\": 4,
    \"name\": \"iuxcfqungb\",
    \"breed_id\": 13,
    \"description\": \"Totam esse architecto ea omnis ea laboriosam.\",
    \"temperaments\": [
        14
    ]
}"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/update_dog"
);

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

let body = {
    "dog_id": 4,
    "name": "iuxcfqungb",
    "breed_id": 13,
    "description": "Totam esse architecto ea omnis ea laboriosam.",
    "temperaments": [
        14
    ]
};

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

Request      

POST api/v1/dogs/update_dog

Headers

Authorization      

Example: Bearer DckZ1bvheVaEa6P8543df6g

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

dog_id   integer   

Example: 4

name   string   

Must not be greater than 255 characters. Example: iuxcfqungb

breed_id   integer   

Example: 13

description   string   

Example: Totam esse architecto ea omnis ea laboriosam.

temperaments   integer[]   
vacines   object  optional  

POST api/v1/dogs/delete_dog

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/dogs/delete_dog" \
    --header "Authorization: Bearer ce4Pf13vahEV66bkg58DadZ" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"dog_id\": 9
}"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/delete_dog"
);

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

let body = {
    "dog_id": 9
};

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

Request      

POST api/v1/dogs/delete_dog

Headers

Authorization      

Example: Bearer ce4Pf13vahEV66bkg58DadZ

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

dog_id   integer   

Example: 9

POST api/v1/dogs/remove_vaccine

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/dogs/remove_vaccine" \
    --header "Authorization: Bearer Vvaf4cZag1D8b6P3d65hEke" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/dogs/remove_vaccine"
);

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

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

Request      

POST api/v1/dogs/remove_vaccine

Headers

Authorization      

Example: Bearer Vvaf4cZag1D8b6P3d65hEke

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/locations/store_favourite

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/locations/store_favourite" \
    --header "Authorization: Bearer f4ce568Pb1aDvkdVagE3Zh6" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"name\": \"abbfpkna\",
    \"latitude\": \"velit\",
    \"longitude\": \"quo\",
    \"address\": \"jxm\",
    \"city\": \"cjloigbzn\",
    \"country\": \"poa\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/locations/store_favourite"
);

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

let body = {
    "name": "abbfpkna",
    "latitude": "velit",
    "longitude": "quo",
    "address": "jxm",
    "city": "cjloigbzn",
    "country": "poa"
};

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

Request      

POST api/v1/locations/store_favourite

Headers

Authorization      

Example: Bearer f4ce568Pb1aDvkdVagE3Zh6

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

name   string   

Must not be greater than 255 characters. Example: abbfpkna

latitude   string   

Example: velit

longitude   string   

Example: quo

address   string   

Must not be greater than 255 characters. Example: jxm

city   string   

Must not be greater than 255 characters. Example: cjloigbzn

country   string   

Must not be greater than 255 characters. Example: poa

POST api/v1/maps/search_locations

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/maps/search_locations" \
    --header "Authorization: Bearer VeZck4fdh6gEbP6aD18av53" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"type_ids\": [
        1,
        2,
        3
    ],
    \"breed_ids\": [
        1,
        2,
        3
    ]
}"
const url = new URL(
    "http://morepaws.local/api/v1/maps/search_locations"
);

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

let body = {
    "type_ids": [
        1,
        2,
        3
    ],
    "breed_ids": [
        1,
        2,
        3
    ]
};

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

Request      

POST api/v1/maps/search_locations

Headers

Authorization      

Example: Bearer VeZck4fdh6gEbP6aD18av53

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

type_ids   string[]  optional  

optional Array of Bussiness type ids.

breed_ids   string[]  optional  

optional Array of Dog Breed ids.

GET api/v1/maps/business_types

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/maps/business_types" \
    --header "Authorization: Bearer vaP5aec4Vb3hg616fDkZEd8" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/maps/business_types"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/maps/business_types

Headers

Authorization      

Example: Bearer vaP5aec4Vb3hg616fDkZEd8

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/maps/dog_breeds

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/maps/dog_breeds" \
    --header "Authorization: Bearer 5cdEeaDPb6Zv48gf13k6Vah" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/maps/dog_breeds"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/maps/dog_breeds

Headers

Authorization      

Example: Bearer 5cdEeaDPb6Zv48gf13k6Vah

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/maps/create_group_walk

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/maps/create_group_walk" \
    --header "Authorization: Bearer d58bZ46EagceVfkva3DP16h" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"name\": \"nxaszjubelduxhrmzw\",
    \"latitude\": \"officiis\",
    \"longitude\": \"quaerat\",
    \"location\": \"xkntyscpbpxrotlygjzqkxkw\",
    \"date\": \"2024-03-26T14:31:56\",
    \"start_time\": \"14:31\",
    \"end_time\": \"14:31\",
    \"description\": \"Qui dicta quis facilis vitae dolorum rerum.\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/maps/create_group_walk"
);

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

let body = {
    "name": "nxaszjubelduxhrmzw",
    "latitude": "officiis",
    "longitude": "quaerat",
    "location": "xkntyscpbpxrotlygjzqkxkw",
    "date": "2024-03-26T14:31:56",
    "start_time": "14:31",
    "end_time": "14:31",
    "description": "Qui dicta quis facilis vitae dolorum rerum."
};

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

Request      

POST api/v1/maps/create_group_walk

Headers

Authorization      

Example: Bearer d58bZ46EagceVfkva3DP16h

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

name   string   

Must not be greater than 255 characters. Example: nxaszjubelduxhrmzw

latitude   string   

Example: officiis

longitude   string   

Example: quaerat

location   string   

Must not be greater than 255 characters. Example: xkntyscpbpxrotlygjzqkxkw

date   string   

Must be a valid date. Example: 2024-03-26T14:31:56

start_time   string   

Must be a valid date in the format H:i. Example: 14:31

end_time   string   

Must be a valid date in the format H:i. Example: 14:31

description   string   

Must not be greater than 255 characters. Example: Qui dicta quis facilis vitae dolorum rerum.

POST api/v1/maps/show_group_walk

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/maps/show_group_walk" \
    --header "Authorization: Bearer b364kahVZvDeac518dgf6PE" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"event_id\": 4
}"
const url = new URL(
    "http://morepaws.local/api/v1/maps/show_group_walk"
);

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

let body = {
    "event_id": 4
};

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

Request      

POST api/v1/maps/show_group_walk

Headers

Authorization      

Example: Bearer b364kahVZvDeac518dgf6PE

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

event_id   integer   

Example: 4

POST api/v1/maps/join_group_walk

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/maps/join_group_walk" \
    --header "Authorization: Bearer Z668aPcahfkV453v1dbDgEe" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"event_id\": 11
}"
const url = new URL(
    "http://morepaws.local/api/v1/maps/join_group_walk"
);

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

let body = {
    "event_id": 11
};

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

Request      

POST api/v1/maps/join_group_walk

Headers

Authorization      

Example: Bearer Z668aPcahfkV453v1dbDgEe

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

event_id   integer   

Example: 11

POST api/v1/maps/leave_group_walk

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/maps/leave_group_walk" \
    --header "Authorization: Bearer acv6d8fD3b16h5VgaEe4kPZ" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"event_id\": 1
}"
const url = new URL(
    "http://morepaws.local/api/v1/maps/leave_group_walk"
);

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

let body = {
    "event_id": 1
};

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

Request      

POST api/v1/maps/leave_group_walk

Headers

Authorization      

Example: Bearer acv6d8fD3b16h5VgaEe4kPZ

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

event_id   integer   

Example: 1

POST api/v1/maps/cancel_group_walk

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/maps/cancel_group_walk" \
    --header "Authorization: Bearer eaP1EDhg348fVc6kda6vb5Z" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"event_id\": 16
}"
const url = new URL(
    "http://morepaws.local/api/v1/maps/cancel_group_walk"
);

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

let body = {
    "event_id": 16
};

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

Request      

POST api/v1/maps/cancel_group_walk

Headers

Authorization      

Example: Bearer eaP1EDhg348fVc6kda6vb5Z

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

event_id   integer   

Example: 16

GET api/v1/chats/chat_list

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/chats/chat_list" \
    --header "Authorization: Bearer Efk6P1Zv5c3Vaghb4ad86De" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/chats/chat_list"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/chats/chat_list

Headers

Authorization      

Example: Bearer Efk6P1Zv5c3Vaghb4ad86De

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/chats/open_chat

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/chats/open_chat" \
    --header "Authorization: Bearer EdcVh8kae1a4b6ZfP6g53Dv" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"chat_room_id\": 12
}"
const url = new URL(
    "http://morepaws.local/api/v1/chats/open_chat"
);

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

let body = {
    "chat_room_id": 12
};

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

Example response (401):

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

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/chats/open_chat

Headers

Authorization      

Example: Bearer EdcVh8kae1a4b6ZfP6g53Dv

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

chat_room_id   integer   

Example: 12

POST api/v1/chats/send_message

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/chats/send_message" \
    --header "Authorization: Bearer a5ZE166d3aVvgPcb8e4fhDk" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"other_user_id\": 17,
    \"message_body\": \"enim\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/chats/send_message"
);

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

let body = {
    "other_user_id": 17,
    "message_body": "enim"
};

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

Request      

POST api/v1/chats/send_message

Headers

Authorization      

Example: Bearer a5ZE166d3aVvgPcb8e4fhDk

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

other_user_id   integer   

Example: 17

message_body   string   

Example: enim

GET api/v1/chats/search_users

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/chats/search_users" \
    --header "Authorization: Bearer 385VE6gcPf6haDvZbed41ka" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/chats/search_users"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/chats/search_users

Headers

Authorization      

Example: Bearer 385VE6gcPf6haDvZbed41ka

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/chats/block_chat

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/chats/block_chat" \
    --header "Authorization: Bearer PE4D8abecv63af1V5gk6dZh" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"chat_room_id\": 13
}"
const url = new URL(
    "http://morepaws.local/api/v1/chats/block_chat"
);

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

let body = {
    "chat_room_id": 13
};

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

Request      

POST api/v1/chats/block_chat

Headers

Authorization      

Example: Bearer PE4D8abecv63af1V5gk6dZh

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

chat_room_id   integer   

Example: 13

POST api/v1/newsfeeds/create_post

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/newsfeeds/create_post" \
    --header "Authorization: Bearer VfPae354Zg6h1avbcD8Ed6k" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/newsfeeds/create_post"
);

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

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

Request      

POST api/v1/newsfeeds/create_post

Headers

Authorization      

Example: Bearer VfPae354Zg6h1avbcD8Ed6k

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/newsfeeds/index

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/newsfeeds/index" \
    --header "Authorization: Bearer kVacg8abDZPd3f5v146Eh6e" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/newsfeeds/index"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/newsfeeds/index

Headers

Authorization      

Example: Bearer kVacg8abDZPd3f5v146Eh6e

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/newsfeeds/comment

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/newsfeeds/comment" \
    --header "Authorization: Bearer kvbf6d1he4a6aZ3VPcD5gE8" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"body\": \"qudmkxstlezybpmhrhyjazdsv\",
    \"post_id\": \"ab\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/newsfeeds/comment"
);

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

let body = {
    "body": "qudmkxstlezybpmhrhyjazdsv",
    "post_id": "ab"
};

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

Request      

POST api/v1/newsfeeds/comment

Headers

Authorization      

Example: Bearer kvbf6d1he4a6aZ3VPcD5gE8

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

body   string   

Must not be greater than 255 characters. Example: qudmkxstlezybpmhrhyjazdsv

post_id   string   

Example: ab

POST api/v1/newsfeeds/update

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/newsfeeds/update" \
    --header "Authorization: Bearer 186kdVbaE6hc4Pv5Dfeg3aZ" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/newsfeeds/update"
);

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

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

Request      

POST api/v1/newsfeeds/update

Headers

Authorization      

Example: Bearer 186kdVbaE6hc4Pv5Dfeg3aZ

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/newsfeeds/like

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/newsfeeds/like" \
    --header "Authorization: Bearer D5baekvPaEZdf3148Vg66ch" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"post_id\": \"id\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/newsfeeds/like"
);

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

let body = {
    "post_id": "id"
};

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

Request      

POST api/v1/newsfeeds/like

Headers

Authorization      

Example: Bearer D5baekvPaEZdf3148Vg66ch

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

post_id   string   

Example: id

POST api/v1/newsfeeds/destroy

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/newsfeeds/destroy" \
    --header "Authorization: Bearer ZPda5e6kvD4gabh3f8cE16V" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"post_id\": \"eum\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/newsfeeds/destroy"
);

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

let body = {
    "post_id": "eum"
};

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

Request      

POST api/v1/newsfeeds/destroy

Headers

Authorization      

Example: Bearer ZPda5e6kvD4gabh3f8cE16V

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

post_id   string   

Example: eum

POST api/v1/newsfeeds/hide_post

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/newsfeeds/hide_post" \
    --header "Authorization: Bearer hkfc4PavD3Z6egE85baVd61" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"post_id\": 10
}"
const url = new URL(
    "http://morepaws.local/api/v1/newsfeeds/hide_post"
);

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

let body = {
    "post_id": 10
};

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

Request      

POST api/v1/newsfeeds/hide_post

Headers

Authorization      

Example: Bearer hkfc4PavD3Z6egE85baVd61

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

post_id   integer   

Example: 10

POST api/v1/comments/update

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/comments/update" \
    --header "Authorization: Bearer caDkfE61bP8d3eVZ6va4gh5" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"body\": \"qgqeqlepgecvdhujbuq\",
    \"comment_id\": 8
}"
const url = new URL(
    "http://morepaws.local/api/v1/comments/update"
);

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

let body = {
    "body": "qgqeqlepgecvdhujbuq",
    "comment_id": 8
};

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

Request      

POST api/v1/comments/update

Headers

Authorization      

Example: Bearer caDkfE61bP8d3eVZ6va4gh5

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

body   string   

Must not be greater than 255 characters. Example: qgqeqlepgecvdhujbuq

comment_id   integer   

Example: 8

POST api/v1/comments/destroy

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/comments/destroy" \
    --header "Authorization: Bearer cvbeaE61g56aZVD84Pdhk3f" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"comment_id\": 14
}"
const url = new URL(
    "http://morepaws.local/api/v1/comments/destroy"
);

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

let body = {
    "comment_id": 14
};

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

Request      

POST api/v1/comments/destroy

Headers

Authorization      

Example: Bearer cvbeaE61g56aZVD84Pdhk3f

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

comment_id   integer   

Example: 14

POST api/v1/comments/like

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/comments/like" \
    --header "Authorization: Bearer e6dkgV4Z6DEvc1ha8bf5P3a" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"comment_id\": \"ab\"
}"
const url = new URL(
    "http://morepaws.local/api/v1/comments/like"
);

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

let body = {
    "comment_id": "ab"
};

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

Request      

POST api/v1/comments/like

Headers

Authorization      

Example: Bearer e6dkgV4Z6DEvc1ha8bf5P3a

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

comment_id   string   

Example: ab

Retrieve perks based on type.

requires authentication

This endpoint retrieves perks based on the specified type.

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/perks/index" \
    --header "Authorization: Bearer k8ZEdbag4Dace6h5VP316fv" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/perks/index"
);

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

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

Example response (200):


{
  "data": [
    {
      "id": 1,
      "name": "Perk 1",
      "description": "Description of Perk 1",
      "image_path": "https://via.placeholder.com/150",
      "title": "Perk 1",
      "discount": "10%",
      "discount_code": "QWERTY",
      "website_link": "https://www.google.com",
      "company": "Company 1"
    },
  ],
  "message": "Perks retrieved successfully."
}
 

Request      

POST api/v1/perks/index

Headers

Authorization      

Example: Bearer k8ZEdbag4Dace6h5VP316fv

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

URL Parameters

type_id   string  optional  

optional The ID of the perk type. If the 'type_id' parameter is empty or not provided, it will return all perks. Example: culpa

GET api/v1/perks/perk_types

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/perks/perk_types" \
    --header "Authorization: Bearer Eekagv1fb6ah8356cD4VZPd" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/perks/perk_types"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/perks/perk_types

Headers

Authorization      

Example: Bearer Eekagv1fb6ah8356cD4VZPd

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/businesses/show

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/businesses/show" \
    --header "Authorization: Bearer 6Dv1bkaafEVce4Z6hdg385P" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/businesses/show"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/businesses/show

Headers

Authorization      

Example: Bearer 6Dv1bkaafEVce4Z6hdg385P

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/notifications/all

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/notifications/all" \
    --header "Authorization: Bearer hP4k56DvdefgaVbZ836c1Ea" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/notifications/all"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/notifications/all

Headers

Authorization      

Example: Bearer hP4k56DvdefgaVbZ836c1Ea

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/notifications/mark_as_read

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/notifications/mark_as_read" \
    --header "Authorization: Bearer gac8EVZ5f6a3v46bdDkhPe1" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/notifications/mark_as_read"
);

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

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

Request      

POST api/v1/notifications/mark_as_read

Headers

Authorization      

Example: Bearer gac8EVZ5f6a3v46bdDkhPe1

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

GET api/v1/notifications/stats

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/v1/notifications/stats" \
    --header "Authorization: Bearer kgea6a51ZdbP4cv6DVfE8h3" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/v1/notifications/stats"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/v1/notifications/stats

Headers

Authorization      

Example: Bearer kgea6a51ZdbP4cv6DVfE8h3

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

POST api/v1/reports/report

requires authentication

Example request:
curl --request POST \
    "http://morepaws.local/api/v1/reports/report" \
    --header "Authorization: Bearer k5dZv8EV4bDh6efPa6a3g1c" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer" \
    --data "{
    \"reportable_type\": \"user\",
    \"reportable_id\": 9
}"
const url = new URL(
    "http://morepaws.local/api/v1/reports/report"
);

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

let body = {
    "reportable_type": "user",
    "reportable_id": 9
};

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

Request      

POST api/v1/reports/report

Headers

Authorization      

Example: Bearer k5dZv8EV4bDh6efPa6a3g1c

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer

Body Parameters

reportable_type   string   

Must be one of user, post, or comment. Example: user

reportable_id   integer   

Example: 9

Authenticate the request for channel access.

requires authentication

Example request:
curl --request GET \
    --get "http://morepaws.local/api/broadcasting/auth" \
    --header "Authorization: Bearer hE81aPgb6k5dD6cZVevfa43" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --header "0: Bearer"
const url = new URL(
    "http://morepaws.local/api/broadcasting/auth"
);

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

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: *
 

{
    "success": false,
    "message": "Unauthenticated."
}
 

Request      

GET api/broadcasting/auth

POST api/broadcasting/auth

Headers

Authorization      

Example: Bearer hE81aPgb6k5dD6cZVevfa43

Content-Type      

Example: application/json

Accept      

Example: application/json

0      

Example: Bearer