Get the list of resources available in a given region.
GET
/api/region/{regionId}/resourcesAuthorizations
Parameters
Path Parameters
regionId*
Typestring
RequiredResponses
Success
JSON
[
{
"id": 0,
"name": "string",
"description": "string",
"user": {
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"isHomeRegion": true,
"isUserActive": true,
"isPrivate": true,
"isFavorite": true,
"openness": 0
}
]
Samples
cURL
curl -X GET http://localhost/api/region/{regionId}/resources
JavaScript
fetch("http://localhost/api/region/{regionId}/resources")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/region/{regionId}/resources");
Python
import requests
response = requests.get("http://localhost/api/region/{regionId}/resources")
print(response.json())