Skip to content

Get the list of resources available in a given region.

GET
/api/region/{regionId}/resources

Authorizations

Parameters

Path Parameters

regionId*
Typestring
Required

Responses

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())