All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
casesCreate | POST /cases/ | |
casesDelete | DELETE /cases/{id}/ | |
casesList | GET /cases/ | |
casesNotifiedUsersList | GET /cases/{case_pk}/notifiedUsers/ | |
casesNotifiedUsersRead | GET /cases/{case_pk}/notifiedUsers/{id}/ | |
casesPartialUpdate | PATCH /cases/{id}/ | |
casesRead | GET /cases/{id}/ | |
casesResponsibleUsersList | GET /cases/{case_pk}/responsibleUsers/ | |
casesResponsibleUsersRead | GET /cases/{case_pk}/responsibleUsers/{id}/ | |
casesUpdate | PUT /cases/{id}/ |
CaseCount casesCreate(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.CasesApi();
let data = new SmallEodClient.CaseCount(); // CaseCount |
apiInstance.casesCreate(data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
data | CaseCount |
- Content-Type: application/json
- Accept: application/json
casesDelete(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.CasesApi();
let id = 56; // Number | A unique integer value identifying this case.
apiInstance.casesDelete(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this case. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
InlineResponse20012 casesList(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.CasesApi();
let opts = {
'query': "query_example", // String |
'ordering': "ordering_example", // String | Which field to use when ordering the results.
'limit': 56, // Number | Number of results to return per page.
'offset': 56 // Number | The initial index from which to return the results.
};
apiInstance.casesList(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
query | String | [optional] | |
ordering | String | Which field to use when ordering the results. | [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
InlineResponse20013 casesNotifiedUsersList(casePk, 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.CasesApi();
let casePk = "casePk_example"; // String |
let opts = {
'ordering': "ordering_example", // String | Which field to use when ordering the results.
'limit': 56, // Number | Number of results to return per page.
'offset': 56 // Number | The initial index from which to return the results.
};
apiInstance.casesNotifiedUsersList(casePk, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
casePk | String | ||
ordering | String | Which field to use when ordering the results. | [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
User casesNotifiedUsersRead(casePk, 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.CasesApi();
let casePk = "casePk_example"; // String |
let id = "id_example"; // String |
apiInstance.casesNotifiedUsersRead(casePk, id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
casePk | String | ||
id | String |
- Content-Type: Not defined
- Accept: application/json
CaseCount casesPartialUpdate(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.CasesApi();
let id = 56; // Number | A unique integer value identifying this case.
let data = new SmallEodClient.CaseCount(); // CaseCount |
apiInstance.casesPartialUpdate(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 case. | |
data | CaseCount |
- Content-Type: application/json
- Accept: application/json
CaseCount casesRead(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.CasesApi();
let id = 56; // Number | A unique integer value identifying this case.
apiInstance.casesRead(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 case. |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20013 casesResponsibleUsersList(casePk, 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.CasesApi();
let casePk = "casePk_example"; // String |
let opts = {
'ordering': "ordering_example", // String | Which field to use when ordering the results.
'limit': 56, // Number | Number of results to return per page.
'offset': 56 // Number | The initial index from which to return the results.
};
apiInstance.casesResponsibleUsersList(casePk, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
casePk | String | ||
ordering | String | Which field to use when ordering the results. | [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
User casesResponsibleUsersRead(casePk, 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.CasesApi();
let casePk = "casePk_example"; // String |
let id = "id_example"; // String |
apiInstance.casesResponsibleUsersRead(casePk, id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
casePk | String | ||
id | String |
- Content-Type: Not defined
- Accept: application/json
CaseCount casesUpdate(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.CasesApi();
let id = 56; // Number | A unique integer value identifying this case.
let data = new SmallEodClient.CaseCount(); // CaseCount |
apiInstance.casesUpdate(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 case. | |
data | CaseCount |
- Content-Type: application/json
- Accept: application/json