Skip to content

Latest commit

 

History

History
276 lines (194 loc) · 8.4 KB

File metadata and controls

276 lines (194 loc) · 8.4 KB

DrugHistoryApi

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.

drugHistoryCreate

DrugHistory drugHistoryCreate(data)

Create a new instance of the model and persist it into the data source.

Example

// 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();
}

Parameters

Name Type Description Notes
data DrugHistory Model instance data [optional]

Return type

DrugHistory

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

drugHistoryDeleteById

Object drugHistoryDeleteById(id)

Delete a model instance by {{id}} from the data source.

Example

// 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();
}

Parameters

Name Type Description Notes
id String Model id

Return type

Object

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

drugHistoryExists

InlineResponse200 drugHistoryExists(id)

Check whether a model instance exists in the data source.

Example

// 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();
}

Parameters

Name Type Description Notes
id String Model id

Return type

InlineResponse200

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

drugHistoryFind

List<DrugHistory> drugHistoryFind(filter)

Find all instances of the model matched by filter from the data source.

Example

// 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();
}

Parameters

Name Type Description Notes
filter String Filter defining fields, where, include, order, offset, and limit - must be a JSON-encoded string ({&quot;something&quot;:&quot;value&quot;}) [optional]

Return type

List<DrugHistory>

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

drugHistoryFindById

DrugHistory drugHistoryFindById(id, filter)

Find a model instance by {{id}} from the data source.

Example

// 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();
}

Parameters

Name Type Description Notes
id String Model id
filter String Filter defining fields and include - must be a JSON-encoded string ({&quot;something&quot;:&quot;value&quot;}) [optional]

Return type

DrugHistory

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript

drugHistoryReplaceById

DrugHistory drugHistoryReplaceById(id, data)

Replace attributes for a model instance and persist it into the data source.

Example

// 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();
}

Parameters

Name Type Description Notes
id String Model id
data DrugHistory Model instance data [optional]

Return type

DrugHistory

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, application/xml, text/xml
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript