All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
documentTypesCreate | POST /documentTypes/ | |
documentTypesDelete | DELETE /documentTypes/{id}/ | |
documentTypesList | GET /documentTypes/ | |
documentTypesPartialUpdate | PATCH /documentTypes/{id}/ | |
documentTypesRead | GET /documentTypes/{id}/ | |
documentTypesUpdate | PUT /documentTypes/{id}/ |
DocumentType documentTypesCreate(data)
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
let apiInstance = new SmallEodClient.DocumentTypesApi();
let data = new SmallEodClient.DocumentType(); // DocumentType |
apiInstance.documentTypesCreate(data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
data | DocumentType |
- Content-Type: application/json
- Accept: application/json
documentTypesDelete(id)
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
let apiInstance = new SmallEodClient.DocumentTypesApi();
let id = 56; // Number | A unique integer value identifying this document type.
apiInstance.documentTypesDelete(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this document type. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
InlineResponse20020 documentTypesList(opts)
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
let apiInstance = new SmallEodClient.DocumentTypesApi();
let opts = {
'query': "query_example", // String |
'limit': 56, // Number | Number of results to return per page.
'offset': 56 // Number | The initial index from which to return the results.
};
apiInstance.documentTypesList(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
query | String | [optional] | |
limit | Number | Number of results to return per page. | [optional] |
offset | Number | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
DocumentType documentTypesPartialUpdate(id, data)
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
let apiInstance = new SmallEodClient.DocumentTypesApi();
let id = 56; // Number | A unique integer value identifying this document type.
let data = new SmallEodClient.DocumentType(); // DocumentType |
apiInstance.documentTypesPartialUpdate(id, data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this document type. | |
data | DocumentType |
- Content-Type: application/json
- Accept: application/json
DocumentType documentTypesRead(id)
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
let apiInstance = new SmallEodClient.DocumentTypesApi();
let id = 56; // Number | A unique integer value identifying this document type.
apiInstance.documentTypesRead(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this document type. |
- Content-Type: Not defined
- Accept: application/json
DocumentType documentTypesUpdate(id, data)
import SmallEodClient from 'small_eod_client';
let defaultClient = SmallEodClient.ApiClient.instance;
// Configure HTTP basic authorization: Basic
let Basic = defaultClient.authentications['Basic'];
Basic.username = 'YOUR USERNAME';
Basic.password = 'YOUR PASSWORD';
// Configure API key authorization: Bearer
let Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix = 'Token';
let apiInstance = new SmallEodClient.DocumentTypesApi();
let id = 56; // Number | A unique integer value identifying this document type.
let data = new SmallEodClient.DocumentType(); // DocumentType |
apiInstance.documentTypesUpdate(id, data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this document type. | |
data | DocumentType |
- Content-Type: application/json
- Accept: application/json