Introduction
This documentation aims to provide all the information you need to work with our API.
Base URL
https://mamma-send.herokuapp.com/
Authenticating requests
Authenticate requests to this API's endpoints by sending an Authorization
header with the value "Bearer {YOUR_AUTH_KEY}"
.\n\nAll 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
api/v1/permissions
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/permissions" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/permissions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/permissions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/permissions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/permissions
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/permissions" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"modi"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/permissions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "modi"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/permissions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'modi',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/permissions'
payload = {
"title": "modi"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/permissions/{permission}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/permissions/autem" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/permissions/autem"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/permissions/autem',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/permissions/autem'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/permissions/{permission}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/api/v1/permissions/repellat" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"voluptatum"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/permissions/repellat"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "voluptatum"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/api/v1/permissions/repellat',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'voluptatum',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/permissions/repellat'
payload = {
"title": "voluptatum"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/permissions/{permission}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/permissions/corrupti" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/permissions/corrupti"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/permissions/corrupti',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/permissions/corrupti'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
api/v1/roles
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/roles" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/roles"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/roles',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/roles'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/roles
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/roles" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"omnis","permissions":[15,2]}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/roles"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "omnis",
"permissions": [
15,
2
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/roles',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'omnis',
'permissions' => [
15,
2,
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/roles'
payload = {
"title": "omnis",
"permissions": [
15,
2
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/roles/{role}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/roles/voluptatibus" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/roles/voluptatibus"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/roles/voluptatibus',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/roles/voluptatibus'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/roles/{role}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/api/v1/roles/molestiae" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"laboriosam","permissions":[2,1]}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/roles/molestiae"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "laboriosam",
"permissions": [
2,
1
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/api/v1/roles/molestiae',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'laboriosam',
'permissions' => [
2,
1,
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/roles/molestiae'
payload = {
"title": "laboriosam",
"permissions": [
2,
1
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/roles/{role}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/roles/provident" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/roles/provident"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/roles/provident',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/roles/provident'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
api/v1/users
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/users" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/users"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/users',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/users'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/users
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/users" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"veritatis","email":"illo","password":"dolores","roles":[5,7]}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/users"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "veritatis",
"email": "illo",
"password": "dolores",
"roles": [
5,
7
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/users',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'veritatis',
'email' => 'illo',
'password' => 'dolores',
'roles' => [
5,
7,
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/users'
payload = {
"name": "veritatis",
"email": "illo",
"password": "dolores",
"roles": [
5,
7
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/users/{user}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/users/id" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/users/id"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/users/id',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/users/id'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/users/{user}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/users/quia" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/users/quia"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/users/quia',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/users/quia'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
api/v1/addresses
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/addresses" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/addresses"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/addresses',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/addresses'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/addresses
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/addresses" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"street":"cupiditate","city":"omnis","state":"cum","zip_code":"ipsa"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/addresses"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"street": "cupiditate",
"city": "omnis",
"state": "cum",
"zip_code": "ipsa"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/addresses',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'street' => 'cupiditate',
'city' => 'omnis',
'state' => 'cum',
'zip_code' => 'ipsa',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/addresses'
payload = {
"street": "cupiditate",
"city": "omnis",
"state": "cum",
"zip_code": "ipsa"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/addresses/{address}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/addresses/explicabo" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/addresses/explicabo"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/addresses/explicabo',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/addresses/explicabo'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/addresses/{address}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/api/v1/addresses/repellendus" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"street":"recusandae","city":"sit","state":"quia","zip_code":"sequi"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/addresses/repellendus"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"street": "recusandae",
"city": "sit",
"state": "quia",
"zip_code": "sequi"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/api/v1/addresses/repellendus',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'street' => 'recusandae',
'city' => 'sit',
'state' => 'quia',
'zip_code' => 'sequi',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/addresses/repellendus'
payload = {
"street": "recusandae",
"city": "sit",
"state": "quia",
"zip_code": "sequi"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/addresses/{address}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/addresses/officiis" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/addresses/officiis"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/addresses/officiis',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/addresses/officiis'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
api/v1/rides
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/rides" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/rides"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/rides',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/rides'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/rides
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/rides" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"rider_id":3}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/rides"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rider_id": 3
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/rides',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'rider_id' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/rides'
payload = {
"rider_id": 3
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/rides/{ride}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/rides/dolores" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/rides/dolores"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/rides/dolores',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/rides/dolores'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/rides/{ride}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/api/v1/rides/ad" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"rider_id":1}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/rides/ad"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rider_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/api/v1/rides/ad',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'rider_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/rides/ad'
payload = {
"rider_id": 1
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/rides/{ride}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/rides/necessitatibus" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/rides/necessitatibus"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/rides/necessitatibus',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/rides/necessitatibus'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
api/v1/payments
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/payments" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/payments"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/payments',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/payments'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/payments
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/payments" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"total_received":"officia","rider_received":"excepturi","office_received":"sit","user_id":16}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/payments"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"total_received": "officia",
"rider_received": "excepturi",
"office_received": "sit",
"user_id": 16
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/payments',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'total_received' => 'officia',
'rider_received' => 'excepturi',
'office_received' => 'sit',
'user_id' => 16,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/payments'
payload = {
"total_received": "officia",
"rider_received": "excepturi",
"office_received": "sit",
"user_id": 16
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/payments/{payment}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/payments/quo" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/payments/quo"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/payments/quo',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/payments/quo'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/payments/{payment}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/api/v1/payments/quidem" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"total_received":"ullam","rider_received":"illum","office_received":"debitis","user_id":2}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/payments/quidem"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"total_received": "ullam",
"rider_received": "illum",
"office_received": "debitis",
"user_id": 2
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/api/v1/payments/quidem',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'total_received' => 'ullam',
'rider_received' => 'illum',
'office_received' => 'debitis',
'user_id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/payments/quidem'
payload = {
"total_received": "ullam",
"rider_received": "illum",
"office_received": "debitis",
"user_id": 2
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/payments/{payment}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/payments/dolorum" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/payments/dolorum"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/payments/dolorum',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/payments/dolorum'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
api/v1/faq-categories
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/faq-categories" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-categories"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/faq-categories',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-categories'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/faq-categories
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/faq-categories" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category":"aspernatur"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-categories"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category": "aspernatur"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/faq-categories',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'category' => 'aspernatur',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-categories'
payload = {
"category": "aspernatur"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/faq-categories/{faq_category}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/faq-categories/et" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-categories/et"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/faq-categories/et',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-categories/et'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/faq-categories/{faq_category}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/api/v1/faq-categories/perferendis" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category":"nemo"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-categories/perferendis"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category": "nemo"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/api/v1/faq-categories/perferendis',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'category' => 'nemo',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-categories/perferendis'
payload = {
"category": "nemo"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/faq-categories/{faq_category}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/faq-categories/vel" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-categories/vel"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/faq-categories/vel',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-categories/vel'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
api/v1/faq-questions
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/faq-questions" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-questions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/faq-questions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-questions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/faq-questions
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/api/v1/faq-questions" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category_id":12,"question":"ipsum","answer":"fugiat"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-questions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category_id": 12,
"question": "ipsum",
"answer": "fugiat"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/api/v1/faq-questions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'category_id' => 12,
'question' => 'ipsum',
'answer' => 'fugiat',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-questions'
payload = {
"category_id": 12,
"question": "ipsum",
"answer": "fugiat"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/faq-questions/{faq_question}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/api/v1/faq-questions/eum" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-questions/eum"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/api/v1/faq-questions/eum',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-questions/eum'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
api/v1/faq-questions/{faq_question}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/api/v1/faq-questions/debitis" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category_id":12,"question":"voluptas","answer":"rerum"}'
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-questions/debitis"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category_id": 12,
"question": "voluptas",
"answer": "rerum"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/api/v1/faq-questions/debitis',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'category_id' => 12,
'question' => 'voluptas',
'answer' => 'rerum',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-questions/debitis'
payload = {
"category_id": 12,
"question": "voluptas",
"answer": "rerum"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
api/v1/faq-questions/{faq_question}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/api/v1/faq-questions/necessitatibus" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/api/v1/faq-questions/necessitatibus"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/api/v1/faq-questions/necessitatibus',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/api/v1/faq-questions/necessitatibus'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
Invoke the controller method.
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com//'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
home
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/home" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/home"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/home',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/home'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (302):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="0;url='http://mamma-send.herokuapp.com'" />
<title>Redirecting to http://mamma-send.herokuapp.com</title>
</head>
<body>
Redirecting to <a href="http://mamma-send.herokuapp.com">http://mamma-send.herokuapp.com</a>.
</body>
</html>
Received response:
Request failed with error:
Show the application's login form.
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/login" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/login"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/login',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/login'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="csrf-token" content="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<title>MammaSend</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://unpkg.com/<EMAIL_ADDRESS>rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/css/select2.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/min/dropzone.min.css" rel="stylesheet" />
<link href="http://mamma-send.herokuapp.com/css/custom.css" rel="stylesheet" />
</head>
<body class="header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden login-page">
<div class="c-app flex-row align-items-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card mx-4">
<div class="card-body p-4">
<h1>MammaSend</h1>
<p class="text-muted">Login</p>
<form method="POST" action="http://mamma-send.herokuapp.com/login">
<input type="hidden" name="_token" value="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="fa fa-user"></i>
</span>
</div>
<input id="email" name="email" type="text" class="form-control" required autocomplete="email" autofocus placeholder="Email" value="">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-lock"></i></span>
</div>
<input id="password" name="password" type="password" class="form-control" required placeholder="Password">
</div>
<div class="input-group mb-4">
<div class="form-check checkbox">
<input class="form-check-input" name="remember" type="checkbox" id="remember" style="vertical-align: middle;" />
<label class="form-check-label" for="remember" style="vertical-align: middle;">
Remember me
</label>
</div>
</div>
<div class="row">
<div class="col-6">
<button type="submit" class="btn btn-primary px-4">
Login
</button>
</div>
<div class="col-6 text-right">
<a class="btn btn-link px-0" href="http://mamma-send.herokuapp.com/password/reset">
Forgot your password?
</a><br>
<a class="btn btn-link px-0" href="http://mamma-send.herokuapp.com/register">
Register
</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Received response:
Request failed with error:
Handle a login request to the application.
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/login" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/login"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/login',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/login'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Log the user out of the application.
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/logout" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/logout"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/logout',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/logout'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Show the application registration form.
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/register" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/register"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/register',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/register'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="csrf-token" content="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<title>MammaSend</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://unpkg.com/<EMAIL_ADDRESS>rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/css/select2.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/min/dropzone.min.css" rel="stylesheet" />
<link href="http://mamma-send.herokuapp.com/css/custom.css" rel="stylesheet" />
</head>
<body class="header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden login-page">
<div class="c-app flex-row align-items-center">
<div class="container">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Register</div>
<div class="card-body">
<form method="POST" action="http://mamma-send.herokuapp.com/register">
<input type="hidden" name="_token" value="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<div class="form-group row">
<label for="name" class="col-md-4 col-form-label text-md-right">Name</label>
<div class="col-md-6">
<input id="name" type="text" class="form-control " name="name" value="" required autocomplete="name" autofocus>
</div>
</div>
<div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control " name="email" value="" required autocomplete="email">
</div>
</div>
<div class="form-group row">
<label for="password" class="col-md-4 col-form-label text-md-right">Password</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control " name="password" required autocomplete="new-password">
</div>
</div>
<div class="form-group row">
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">Confirm Password</label>
<div class="col-md-6">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
Register
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Received response:
Request failed with error:
Handle a registration request for the application.
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/register" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/register"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/register',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/register'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Display the form to request a password reset link.
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/password/reset" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/password/reset"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/password/reset',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/password/reset'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="csrf-token" content="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<title>MammaSend</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://unpkg.com/<EMAIL_ADDRESS>rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/css/select2.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/min/dropzone.min.css" rel="stylesheet" />
<link href="http://mamma-send.herokuapp.com/css/custom.css" rel="stylesheet" />
</head>
<body class="header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden login-page">
<div class="c-app flex-row align-items-center">
<div class="container">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Reset Password</div>
<div class="card-body">
<form method="POST" action="http://mamma-send.herokuapp.com/password/email">
<input type="hidden" name="_token" value="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control " name="email" value="" required autocomplete="email" autofocus>
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
Send Password Reset Link
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Received response:
Request failed with error:
Send a reset link to the given user.
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/password/email" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/password/email"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/password/email',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/password/email'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Display the password reset view for the given token.
If no token is present, display the link request form.
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/password/reset/voluptas" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/password/reset/voluptas"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/password/reset/voluptas',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/password/reset/voluptas'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (200):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="csrf-token" content="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<title>MammaSend</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://unpkg.com/<EMAIL_ADDRESS>rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/1.10.19/css/dataTables.bootstrap4.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/css/select2.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.1/min/dropzone.min.css" rel="stylesheet" />
<link href="http://mamma-send.herokuapp.com/css/custom.css" rel="stylesheet" />
</head>
<body class="header-fixed sidebar-fixed aside-menu-fixed aside-menu-hidden login-page">
<div class="c-app flex-row align-items-center">
<div class="container">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Reset Password</div>
<div class="card-body">
<form method="POST" action="http://mamma-send.herokuapp.com/password/reset">
<input type="hidden" name="_token" value="Pebvzc2A2vMCK88tTEV4HhlKITCCwNDm6s5BhWaE">
<input type="hidden" name="token" value="voluptas">
<div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">E-Mail Address</label>
<div class="col-md-6">
<input id="email" type="email" class="form-control " name="email" value="" required autocomplete="email" autofocus>
</div>
</div>
<div class="form-group row">
<label for="password" class="col-md-4 col-form-label text-md-right">Password</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control " name="password" required autocomplete="new-password">
</div>
</div>
<div class="form-group row">
<label for="password-confirm" class="col-md-4 col-form-label text-md-right">Confirm Password</label>
<div class="col-md-6">
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required autocomplete="new-password">
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
Reset Password
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Received response:
Request failed with error:
Reset the given user's password.
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/password/reset" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/password/reset"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/password/reset',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/password/reset'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Display the password confirmation view.
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/password/confirm" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/password/confirm"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/password/confirm',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/password/confirm'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Confirm the given user's password.
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/password/confirm" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/password/confirm"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/password/confirm',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/password/confirm'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers)
response.json()
Received response:
Request failed with error:
Show the application dashboard.
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com//'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
permissions
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/permissions" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/permissions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/permissions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/permissions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
permissions/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/permissions/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/permissions/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/permissions/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/permissions/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
permissions
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/permissions" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"dolor"}'
const url = new URL(
"https://mamma-send.herokuapp.com/permissions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "dolor"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/permissions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'dolor',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/permissions'
payload = {
"title": "dolor"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
permissions/{permission}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/permissions/necessitatibus" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/permissions/necessitatibus"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/permissions/necessitatibus',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/permissions/necessitatibus'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
permissions/{permission}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/permissions/ducimus/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/permissions/ducimus/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/permissions/ducimus/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/permissions/ducimus/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
permissions/{permission}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/permissions/ratione" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"nam"}'
const url = new URL(
"https://mamma-send.herokuapp.com/permissions/ratione"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "nam"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/permissions/ratione',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'nam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/permissions/ratione'
payload = {
"title": "nam"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
permissions/{permission}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/permissions/sequi" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/permissions/sequi"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/permissions/sequi',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/permissions/sequi'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
roles
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/roles" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/roles"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/roles',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/roles'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
roles/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/roles/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/roles/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/roles/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/roles/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
roles
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/roles" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"ut","permissions":[10,12]}'
const url = new URL(
"https://mamma-send.herokuapp.com/roles"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "ut",
"permissions": [
10,
12
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/roles',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'ut',
'permissions' => [
10,
12,
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/roles'
payload = {
"title": "ut",
"permissions": [
10,
12
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
roles/{role}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/roles/corrupti" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/roles/corrupti"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/roles/corrupti',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/roles/corrupti'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
roles/{role}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/roles/iusto/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/roles/iusto/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/roles/iusto/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/roles/iusto/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
roles/{role}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/roles/nulla" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"title":"sed","permissions":[4,10]}'
const url = new URL(
"https://mamma-send.herokuapp.com/roles/nulla"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "sed",
"permissions": [
4,
10
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/roles/nulla',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'title' => 'sed',
'permissions' => [
4,
10,
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/roles/nulla'
payload = {
"title": "sed",
"permissions": [
4,
10
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
roles/{role}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/roles/minus" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/roles/minus"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/roles/minus',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/roles/minus'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
users
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/users" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/users"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/users',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/users'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
users/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/users/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/users/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/users/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/users/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
users
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/users" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"consequatur","email":"quae","password":"placeat","roles":[11,6]}'
const url = new URL(
"https://mamma-send.herokuapp.com/users"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "consequatur",
"email": "quae",
"password": "placeat",
"roles": [
11,
6
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/users',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'name' => 'consequatur',
'email' => 'quae',
'password' => 'placeat',
'roles' => [
11,
6,
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/users'
payload = {
"name": "consequatur",
"email": "quae",
"password": "placeat",
"roles": [
11,
6
]
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
users/{user}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/users/dolorem" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/users/dolorem"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/users/dolorem',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/users/dolorem'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
users/{user}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/users/ut/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/users/ut/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/users/ut/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/users/ut/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
users/{user}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/users/est" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/users/est"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/users/est',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/users/est'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
addresses
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/addresses" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/addresses"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/addresses',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/addresses'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
addresses/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/addresses/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/addresses/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/addresses/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/addresses/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
addresses
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/addresses" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"street":"inventore","city":"distinctio","state":"ex","zip_code":"fugiat"}'
const url = new URL(
"https://mamma-send.herokuapp.com/addresses"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"street": "inventore",
"city": "distinctio",
"state": "ex",
"zip_code": "fugiat"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/addresses',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'street' => 'inventore',
'city' => 'distinctio',
'state' => 'ex',
'zip_code' => 'fugiat',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/addresses'
payload = {
"street": "inventore",
"city": "distinctio",
"state": "ex",
"zip_code": "fugiat"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
addresses/{address}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/addresses/eum" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/addresses/eum"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/addresses/eum',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/addresses/eum'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
addresses/{address}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/addresses/iste/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/addresses/iste/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/addresses/iste/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/addresses/iste/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
addresses/{address}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/addresses/magni" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"street":"magni","city":"reiciendis","state":"assumenda","zip_code":"deserunt"}'
const url = new URL(
"https://mamma-send.herokuapp.com/addresses/magni"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"street": "magni",
"city": "reiciendis",
"state": "assumenda",
"zip_code": "deserunt"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/addresses/magni',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'street' => 'magni',
'city' => 'reiciendis',
'state' => 'assumenda',
'zip_code' => 'deserunt',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/addresses/magni'
payload = {
"street": "magni",
"city": "reiciendis",
"state": "assumenda",
"zip_code": "deserunt"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
addresses/{address}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/addresses/assumenda" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/addresses/assumenda"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/addresses/assumenda',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/addresses/assumenda'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
rides
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/rides" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/rides"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/rides',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/rides'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
rides/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/rides/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/rides/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/rides/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/rides/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
rides
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/rides" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"rider_id":2}'
const url = new URL(
"https://mamma-send.herokuapp.com/rides"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rider_id": 2
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/rides',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'rider_id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/rides'
payload = {
"rider_id": 2
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
rides/{ride}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/rides/doloribus" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/rides/doloribus"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/rides/doloribus',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/rides/doloribus'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
rides/{ride}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/rides/facilis/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/rides/facilis/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/rides/facilis/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/rides/facilis/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
rides/{ride}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/rides/similique" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"rider_id":15}'
const url = new URL(
"https://mamma-send.herokuapp.com/rides/similique"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"rider_id": 15
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/rides/similique',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'rider_id' => 15,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/rides/similique'
payload = {
"rider_id": 15
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
rides/{ride}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/rides/iure" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/rides/iure"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/rides/iure',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/rides/iure'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
payments
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/payments" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/payments"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/payments',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/payments'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
payments/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/payments/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/payments/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/payments/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/payments/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
payments
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/payments" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"total_received":"labore","rider_received":"dolore","office_received":"vero","user_id":20}'
const url = new URL(
"https://mamma-send.herokuapp.com/payments"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"total_received": "labore",
"rider_received": "dolore",
"office_received": "vero",
"user_id": 20
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/payments',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'total_received' => 'labore',
'rider_received' => 'dolore',
'office_received' => 'vero',
'user_id' => 20,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/payments'
payload = {
"total_received": "labore",
"rider_received": "dolore",
"office_received": "vero",
"user_id": 20
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
payments/{payment}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/payments/reiciendis" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/payments/reiciendis"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/payments/reiciendis',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/payments/reiciendis'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
payments/{payment}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/payments/consectetur/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/payments/consectetur/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/payments/consectetur/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/payments/consectetur/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
payments/{payment}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/payments/modi" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"total_received":"velit","rider_received":"est","office_received":"voluptas","user_id":10}'
const url = new URL(
"https://mamma-send.herokuapp.com/payments/modi"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"total_received": "velit",
"rider_received": "est",
"office_received": "voluptas",
"user_id": 10
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/payments/modi',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'total_received' => 'velit',
'rider_received' => 'est',
'office_received' => 'voluptas',
'user_id' => 10,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/payments/modi'
payload = {
"total_received": "velit",
"rider_received": "est",
"office_received": "voluptas",
"user_id": 10
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
payments/{payment}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/payments/voluptatem" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/payments/voluptatem"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/payments/voluptatem',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/payments/voluptatem'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
faq-categories
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-categories" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-categories"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-categories',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-categories'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-categories/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-categories/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-categories/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-categories/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-categories/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-categories
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/faq-categories" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category":"reiciendis"}'
const url = new URL(
"https://mamma-send.herokuapp.com/faq-categories"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category": "reiciendis"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/faq-categories',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'category' => 'reiciendis',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-categories'
payload = {
"category": "reiciendis"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
faq-categories/{faq_category}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-categories/aperiam" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-categories/aperiam"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-categories/aperiam',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-categories/aperiam'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-categories/{faq_category}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-categories/molestiae/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-categories/molestiae/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-categories/molestiae/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-categories/molestiae/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-categories/{faq_category}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/faq-categories/enim" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category":"sunt"}'
const url = new URL(
"https://mamma-send.herokuapp.com/faq-categories/enim"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category": "sunt"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://mamma-send.herokuapp.com/faq-categories/enim',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'category' => 'sunt',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-categories/enim'
payload = {
"category": "sunt"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('PUT', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
faq-categories/{faq_category}
Example request:
curl -X DELETE \
"https://mamma-send.herokuapp.com/faq-categories/rem" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-categories/rem"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://mamma-send.herokuapp.com/faq-categories/rem',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-categories/rem'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('DELETE', url, headers=headers)
response.json()
Received response:
Request failed with error:
faq-questions
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-questions" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-questions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-questions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-questions'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-questions/create
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-questions/create" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-questions/create"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-questions/create',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-questions/create'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-questions
Example request:
curl -X POST \
"https://mamma-send.herokuapp.com/faq-questions" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category_id":13,"question":"esse","answer":"in"}'
const url = new URL(
"https://mamma-send.herokuapp.com/faq-questions"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category_id": 13,
"question": "esse",
"answer": "in"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://mamma-send.herokuapp.com/faq-questions',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'category_id' => 13,
'question' => 'esse',
'answer' => 'in',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-questions'
payload = {
"category_id": 13,
"question": "esse",
"answer": "in"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Received response:
Request failed with error:
faq-questions/{faq_question}
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-questions/nulla" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-questions/nulla"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-questions/nulla',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-questions/nulla'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-questions/{faq_question}/edit
Example request:
curl -X GET \
-G "https://mamma-send.herokuapp.com/faq-questions/quam/edit" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
const url = new URL(
"https://mamma-send.herokuapp.com/faq-questions/quam/edit"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://mamma-send.herokuapp.com/faq-questions/quam/edit',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://mamma-send.herokuapp.com/faq-questions/quam/edit'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('GET', url, headers=headers)
response.json()
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
faq-questions/{faq_question}
Example request:
curl -X PUT \
"https://mamma-send.herokuapp.com/faq-questions/excepturi" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"category_id":13,"question":"asperiores","answer":"sapiente"}'
const url = new URL(