All URIs are relative to http://localhost:3000
Method | HTTP request | Description |
---|---|---|
getApiExternal | GET /api/external | Your GET endpoint |
getUsersUserId | GET /users/{userId} | Get User Info by User ID |
optionsApiExternal | OPTIONS /api/external | |
patchUsersUserId | PATCH /users/{userId} | Update User Information |
postUser | POST /user | Create New User |
GetApiExternal200Response getApiExternal()
Your GET endpoint
import Cloudwpss23OpenapiCyan from 'cloudwpss23_openapi_cyan';
let defaultClient = Cloudwpss23OpenapiCyan.ApiClient.instance;
// Configure OAuth2 access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Cloudwpss23OpenapiCyan.DefaultApi();
apiInstance.getApiExternal((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
User getUsersUserId(userId)
Get User Info by User ID
Retrieve the information of the user with the matching user ID.
import Cloudwpss23OpenapiCyan from 'cloudwpss23_openapi_cyan';
let defaultClient = Cloudwpss23OpenapiCyan.ApiClient.instance;
// Configure OAuth2 access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Cloudwpss23OpenapiCyan.DefaultApi();
let userId = null; // Object | Id of an existing user.
apiInstance.getUsersUserId(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
userId | Object | Id of an existing user. |
- Content-Type: Not defined
- Accept: application/json
optionsApiExternal()
import Cloudwpss23OpenapiCyan from 'cloudwpss23_openapi_cyan';
let defaultClient = Cloudwpss23OpenapiCyan.ApiClient.instance;
// Configure OAuth2 access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Cloudwpss23OpenapiCyan.DefaultApi();
apiInstance.optionsApiExternal((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
This endpoint does not need any parameter.
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
User patchUsersUserId(userId, opts)
Update User Information
Update the information of an existing user.
import Cloudwpss23OpenapiCyan from 'cloudwpss23_openapi_cyan';
let defaultClient = Cloudwpss23OpenapiCyan.ApiClient.instance;
// Configure OAuth2 access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Cloudwpss23OpenapiCyan.DefaultApi();
let userId = null; // Object | Id of an existing user.
let opts = {
'patchUsersUserIdRequest': {"firstName":"Rebecca"} // PatchUsersUserIdRequest | Patch user properties to update.
};
apiInstance.patchUsersUserId(userId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
userId | Object | Id of an existing user. | |
patchUsersUserIdRequest | PatchUsersUserIdRequest | Patch user properties to update. | [optional] |
- Content-Type: application/json
- Accept: application/json
User postUser(opts)
Create New User
Create a new user.
import Cloudwpss23OpenapiCyan from 'cloudwpss23_openapi_cyan';
let defaultClient = Cloudwpss23OpenapiCyan.ApiClient.instance;
// Configure OAuth2 access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Cloudwpss23OpenapiCyan.DefaultApi();
let opts = {
'postUserRequest': {"firstName":"Bob","lastName":"Fellow","email":"bob.fellow@gmail.com","dateOfBirth":"1996-08-24"} // PostUserRequest | Post the necessary fields for the API to create a new user.
};
apiInstance.postUser(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
postUserRequest | PostUserRequest | Post the necessary fields for the API to create a new user. | [optional] |
- Content-Type: application/json
- Accept: application/json