Introduction
This documentation aims to provide all the information you need to work with our API.
Base URL
http://arvealab.test
Authenticating requests
This API is not authenticated.
Endpoints
GET v1/getLanguage
Example request:
curl --request GET \
--get "http://arvealab.test/v1/getLanguage" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://arvealab.test/v1/getLanguage"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 55
[
{
"name": "Français",
"abbreviation": "fr",
"flag": "",
"alt_flag": null
},
{
"name": "English",
"abbreviation": "en",
"flag": "",
"alt_flag": null
}
]
Received response:
Request failed with error:
GET v1/getCountries
Example request:
curl --request GET \
--get "http://arvealab.test/v1/getCountries" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"http://arvealab.test/v1/getCountries"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 54
[
{
"name": {
"fr": "Algerie"
},
"flag": "uploads/country/3c1f477b445b0186d5c3a650ecd8954f.jpg",
"alt_flag": {
"fr": "vv"
},
"domain": "dz"
},
{
"name": {
"fr": "Tunisie"
},
"flag": "uploads/country/e8f985b04ad119d3988e5ffe9bbe04b7.jpg",
"alt_flag": {
"fr": "test"
},
"domain": "tn"
}
]
Received response:
Request failed with error:
GET v1/getDefaultLanguageOfCountries
Example request:
curl --request GET \
--get "http://arvealab.test/v1/getDefaultLanguageOfCountries" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "domain: tn"const url = new URL(
"http://arvealab.test/v1/getDefaultLanguageOfCountries"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"domain": "tn",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 53
[
{
"abbreviation": "fr"
}
]
Received response:
Request failed with error:
GET v1/getProductsByCountry
Example request:
curl --request GET \
--get "http://arvealab.test/v1/getProductsByCountry" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "domain: tn"const url = new URL(
"http://arvealab.test/v1/getProductsByCountry"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"domain": "tn",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 52
[
{
"name": "{\"fr\":\"test\"}",
"price": "100.200",
"ac": "60.500",
"image": "uploads/products/b9f05f92592e4bad49a88b9626fc7b91.jpg",
"alt": "{\"fr\":\"zz\"}"
}
]
Received response:
Request failed with error: