All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
deleteMylistItem | DELETE /api/mylists/{id} | Removes the Mylist resource. |
getMylistCollection | GET /api/mylists | Retrieves the collection of Mylist resources. |
getMylistItem | GET /api/mylists/{id} | Retrieves a Mylist resource. |
patchMylistItem | PATCH /api/mylists/{id} | Updates the Mylist resource. |
postMylistCollection | POST /api/mylists | Creates a Mylist resource. |
putMylistItem | PUT /api/mylists/{id} | Replaces the Mylist resource. |
deleteMylistItem(id)
Removes the Mylist resource.
Removes the Mylist resource.
import { SwaggerJsClient } from "swagger-js-client";
let apiInstance = new SwaggerJsClient.MylistApi();
let id = "id_example"; // String | Resource identifier
apiInstance.deleteMylistItem(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log("API called successfully.");
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Resource identifier |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
InlineResponse20010 getMylistCollection(opts)
Retrieves the collection of Mylist resources.
Retrieves the collection of Mylist resources.
import { SwaggerJsClient } from "swagger-js-client";
let apiInstance = new SwaggerJsClient.MylistApi();
let opts = {
page: 1, // Number | The collection page number
};
apiInstance.getMylistCollection(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log("API called successfully. Returned data: " + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
page | Number | The collection page number | [optional] [default to 1] |
No authorization required
- Content-Type: Not defined
- Accept: application/ld+json, application/json, text/html
MylistJsonld getMylistItem(id)
Retrieves a Mylist resource.
Retrieves a Mylist resource.
import { SwaggerJsClient } from "swagger-js-client";
let apiInstance = new SwaggerJsClient.MylistApi();
let id = "id_example"; // String | Resource identifier
apiInstance.getMylistItem(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log("API called successfully. Returned data: " + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | Resource identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/ld+json, application/json, text/html
MylistJsonld patchMylistItem(body, id)
Updates the Mylist resource.
Updates the Mylist resource.
import { SwaggerJsClient } from "swagger-js-client";
let apiInstance = new SwaggerJsClient.MylistApi();
let body = new SwaggerJsClient.Mylist(); // Mylist | The updated Mylist resource
let id = "id_example"; // String | Resource identifier
apiInstance.patchMylistItem(body, id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log("API called successfully. Returned data: " + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | Mylist | The updated Mylist resource | |
id | String | Resource identifier |
No authorization required
- Content-Type: application/merge-patch+json
- Accept: application/ld+json, application/json, text/html
MylistJsonld postMylistCollection(body)
Creates a Mylist resource.
Creates a Mylist resource.
import { SwaggerJsClient } from "swagger-js-client";
let apiInstance = new SwaggerJsClient.MylistApi();
let body = new SwaggerJsClient.MylistJsonld(); // MylistJsonld | The new Mylist resource
apiInstance.postMylistCollection(body, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log("API called successfully. Returned data: " + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | MylistJsonld | The new Mylist resource |
No authorization required
- Content-Type: application/ld+json, application/json, text/html
- Accept: application/ld+json, application/json, text/html
MylistJsonld putMylistItem(body, id)
Replaces the Mylist resource.
Replaces the Mylist resource.
import { SwaggerJsClient } from "swagger-js-client";
let apiInstance = new SwaggerJsClient.MylistApi();
let body = new SwaggerJsClient.MylistJsonld(); // MylistJsonld | The updated Mylist resource
let id = "id_example"; // String | Resource identifier
apiInstance.putMylistItem(body, id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log("API called successfully. Returned data: " + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
body | MylistJsonld | The updated Mylist resource | |
id | String | Resource identifier |
No authorization required
- Content-Type: application/ld+json, application/json, text/html
- Accept: application/ld+json, application/json, text/html