All URIs are relative to https://localhost/api
| Method | HTTP request | Description |
|---|---|---|
| drugHistoryCreate | POST /DrugHistory | Create a new instance of the model and persist it into the data source. |
| drugHistoryDeleteById | DELETE /DrugHistory/{id} | Delete a model instance by {{id}} from the data source. |
| drugHistoryExists | HEAD /DrugHistory/{id} | Check whether a model instance exists in the data source. |
| drugHistoryFind | GET /DrugHistory | Find all instances of the model matched by filter from the data source. |
| drugHistoryFindById | GET /DrugHistory/{id} | Find a model instance by {{id}} from the data source. |
| drugHistoryReplaceById | PUT /DrugHistory/{id} | Replace attributes for a model instance and persist it into the data source. |
DrugHistory drugHistoryCreate(data)
Create a new instance of the model and persist it into the data source.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DrugHistoryApi;
DrugHistoryApi apiInstance = new DrugHistoryApi();
DrugHistory data = new DrugHistory(); // DrugHistory | Model instance data
try {
DrugHistory result = apiInstance.drugHistoryCreate(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DrugHistoryApi#drugHistoryCreate");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| data | DrugHistory | Model instance data | [optional] |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
Object drugHistoryDeleteById(id)
Delete a model instance by {{id}} from the data source.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DrugHistoryApi;
DrugHistoryApi apiInstance = new DrugHistoryApi();
String id = "id_example"; // String | Model id
try {
Object result = apiInstance.drugHistoryDeleteById(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DrugHistoryApi#drugHistoryDeleteById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Model id |
Object
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
InlineResponse200 drugHistoryExists(id)
Check whether a model instance exists in the data source.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DrugHistoryApi;
DrugHistoryApi apiInstance = new DrugHistoryApi();
String id = "id_example"; // String | Model id
try {
InlineResponse200 result = apiInstance.drugHistoryExists(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DrugHistoryApi#drugHistoryExists");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Model id |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
List<DrugHistory> drugHistoryFind(filter)
Find all instances of the model matched by filter from the data source.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DrugHistoryApi;
DrugHistoryApi apiInstance = new DrugHistoryApi();
String filter = "filter_example"; // String | Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({\"something\":\"value\"})
try {
List<DrugHistory> result = apiInstance.drugHistoryFind(filter);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DrugHistoryApi#drugHistoryFind");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| filter | String | Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({"something":"value"}) | [optional] |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
DrugHistory drugHistoryFindById(id, filter)
Find a model instance by {{id}} from the data source.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DrugHistoryApi;
DrugHistoryApi apiInstance = new DrugHistoryApi();
String id = "id_example"; // String | Model id
String filter = "filter_example"; // String | Filter defining fields and include - must be a JSON-encoded string ({\"something\":\"value\"})
try {
DrugHistory result = apiInstance.drugHistoryFindById(id, filter);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DrugHistoryApi#drugHistoryFindById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Model id | |
| filter | String | Filter defining fields and include - must be a JSON-encoded string ({"something":"value"}) | [optional] |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
DrugHistory drugHistoryReplaceById(id, data)
Replace attributes for a model instance and persist it into the data source.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DrugHistoryApi;
DrugHistoryApi apiInstance = new DrugHistoryApi();
String id = "id_example"; // String | Model id
DrugHistory data = new DrugHistory(); // DrugHistory | Model instance data
try {
DrugHistory result = apiInstance.drugHistoryReplaceById(id, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DrugHistoryApi#drugHistoryReplaceById");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Model id | |
| data | DrugHistory | Model instance data | [optional] |
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript