All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
institutionsCreate | POST /institutions/ | |
institutionsDelete | DELETE /institutions/{id}/ | |
institutionsList | GET /institutions/ | |
institutionsPartialUpdate | PATCH /institutions/{id}/ | |
institutionsRead | GET /institutions/{id}/ | |
institutionsUpdate | PUT /institutions/{id}/ |
Institution institutionsCreate(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.InstitutionsApi();
let data = new SmallEodClient.Institution(); // Institution |
apiInstance.institutionsCreate(data).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
data | Institution |
- Content-Type: application/json
- Accept: application/json
institutionsDelete(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.InstitutionsApi();
let id = 56; // Number | A unique integer value identifying this institution.
apiInstance.institutionsDelete(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | A unique integer value identifying this institution. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
InlineResponse20023 institutionsList(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.InstitutionsApi();
let opts = {
'query': "query_example", // String | Query filter. Currently filtering by name.
'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.institutionsList(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
query | String | Query filter. Currently filtering by name. | [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
Institution institutionsPartialUpdate(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.InstitutionsApi();
let id = 56; // Number | A unique integer value identifying this institution.
let data = new SmallEodClient.Institution(); // Institution |
apiInstance.institutionsPartialUpdate(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 institution. | |
data | Institution |
- Content-Type: application/json
- Accept: application/json
Institution institutionsRead(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.InstitutionsApi();
let id = 56; // Number | A unique integer value identifying this institution.
apiInstance.institutionsRead(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 institution. |
- Content-Type: Not defined
- Accept: application/json
Institution institutionsUpdate(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.InstitutionsApi();
let id = 56; // Number | A unique integer value identifying this institution.
let data = new SmallEodClient.Institution(); // Institution |
apiInstance.institutionsUpdate(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 institution. | |
data | Institution |
- Content-Type: application/json
- Accept: application/json