Features
A list of all publicly available methods for interacting with the API.
GET
Get package features -/package/features/{id}
Query method
GEThttp://apilocal.stableproxy.com/v2/package/features/{id}
Query parameters
Identifier | Regulations | Example |
---|---|---|
id | 1required | 56 |
Code examples
JavaScript
1async function getPackageFeatures() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/package/features/{id}'
4 .replace("{id}", 56), {
5 method: 'GET',
6 headers: {
7 'Authorization': 'API-Token [YOUR TOKEN]',
8 'Content-Type': 'application/json'
9 }
10 }
11 );
12
13 const res = await req.json();
14}
Examples of answers
Success response
PUT
Toggle Features -/package/features/{id}
Query method
PUThttp://apilocal.stableproxy.com/v2/package/features/{id}
Query parameters
Identifier | Regulations | Example |
---|---|---|
id | 1required | 56 |
Code examples
JavaScript
1async function putPackageFeatures() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/package/features/{id}'
4 .replace("{id}", 56), {
5 method: 'PUT',
6 headers: {
7 'Authorization': 'API-Token [YOUR TOKEN]',
8 'Content-Type': 'application/json'
9 }
10 }
11 );
12
13 const res = await req.json();
14}