Skip to content

Repository files navigation

swagger-java-client

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

importio.swagger.client.*;
importio.swagger.client.auth.*;
importio.swagger.client.model.*;
importio.swagger.client.api.AssetFromServiceApi;
importjava.io.File;
importjava.util.*;
publicclassAssetFromServiceApiExample {
publicstaticvoidmain(String[] args) {
AssetFromServiceApiapiInstance = newAssetFromServiceApi();
AssetFromServicedata = newAssetFromService(); // AssetFromService | Model instance datatry {
AssetFromServiceresult = apiInstance.assetFromServiceCreate(data);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling AssetFromServiceApi#assetFromServiceCreate");
e.printStackTrace();
}
}
}

Documentation for API Endpoints

All URIs are relative to https://localhost/api

ClassMethodHTTP requestDescription
AssetFromServiceApiassetFromServiceCreatePOST /AssetFromServiceCreate a new instance of the model and persist it into the data source.
AssetFromServiceApiassetFromServiceDeleteByIdDELETE /AssetFromService/{id}Delete a model instance by {{id}} from the data source.
AssetFromServiceApiassetFromServiceExistsHEAD /AssetFromService/{id}Check whether a model instance exists in the data source.
AssetFromServiceApiassetFromServiceFindGET /AssetFromServiceFind all instances of the model matched by filter from the data source.
AssetFromServiceApiassetFromServiceFindByIdGET /AssetFromService/{id}Find a model instance by {{id}} from the data source.
AssetFromServiceApiassetFromServiceReplaceByIdPUT /AssetFromService/{id}Replace attributes for a model instance and persist it into the data source.
CheckupHistoryApicheckupHistoryCreatePOST /CheckupHistoryCreate a new instance of the model and persist it into the data source.
CheckupHistoryApicheckupHistoryDeleteByIdDELETE /CheckupHistory/{id}Delete a model instance by {{id}} from the data source.
CheckupHistoryApicheckupHistoryExistsHEAD /CheckupHistory/{id}Check whether a model instance exists in the data source.
CheckupHistoryApicheckupHistoryFindGET /CheckupHistoryFind all instances of the model matched by filter from the data source.
CheckupHistoryApicheckupHistoryFindByIdGET /CheckupHistory/{id}Find a model instance by {{id}} from the data source.
CheckupHistoryApicheckupHistoryReplaceByIdPUT /CheckupHistory/{id}Replace attributes for a model instance and persist it into the data source.
CreateCheckupHistoryApicreateCheckupHistoryCreatePOST /CreateCheckupHistoryCreate a new instance of the model and persist it into the data source.
CreateCheckupHistoryApicreateCheckupHistoryFindGET /CreateCheckupHistoryFind all instances of the model matched by filter from the data source.
CreateCheckupHistoryApicreateCheckupHistoryFindByIdGET /CreateCheckupHistory/{id}Find a model instance by {{id}} from the data source.
CreateDiagHistoryApicreateDiagHistoryCreatePOST /CreateDiagHistoryCreate a new instance of the model and persist it into the data source.
CreateDiagHistoryApicreateDiagHistoryFindGET /CreateDiagHistoryFind all instances of the model matched by filter from the data source.
CreateDiagHistoryApicreateDiagHistoryFindByIdGET /CreateDiagHistory/{id}Find a model instance by {{id}} from the data source.
CreateDrugHistoryApicreateDrugHistoryCreatePOST /CreateDrugHistoryCreate a new instance of the model and persist it into the data source.
CreateDrugHistoryApicreateDrugHistoryFindGET /CreateDrugHistoryFind all instances of the model matched by filter from the data source.
CreateDrugHistoryApicreateDrugHistoryFindByIdGET /CreateDrugHistory/{id}Find a model instance by {{id}} from the data source.
CreateProcedureHistoryApicreateProcedureHistoryCreatePOST /CreateProcedureHistoryCreate a new instance of the model and persist it into the data source.
CreateProcedureHistoryApicreateProcedureHistoryFindGET /CreateProcedureHistoryFind all instances of the model matched by filter from the data source.
CreateProcedureHistoryApicreateProcedureHistoryFindByIdGET /CreateProcedureHistory/{id}Find a model instance by {{id}} from the data source.
CreateServiceHistoryApicreateServiceHistoryCreatePOST /CreateServiceHistoryCreate a new instance of the model and persist it into the data source.
CreateServiceHistoryApicreateServiceHistoryFindGET /CreateServiceHistoryFind all instances of the model matched by filter from the data source.
CreateServiceHistoryApicreateServiceHistoryFindByIdGET /CreateServiceHistory/{id}Find a model instance by {{id}} from the data source.
DiagHistoryApidiagHistoryCreatePOST /DiagHistoryCreate a new instance of the model and persist it into the data source.
DiagHistoryApidiagHistoryDeleteByIdDELETE /DiagHistory/{id}Delete a model instance by {{id}} from the data source.
DiagHistoryApidiagHistoryExistsHEAD /DiagHistory/{id}Check whether a model instance exists in the data source.
DiagHistoryApidiagHistoryFindGET /DiagHistoryFind all instances of the model matched by filter from the data source.
DiagHistoryApidiagHistoryFindByIdGET /DiagHistory/{id}Find a model instance by {{id}} from the data source.
DiagHistoryApidiagHistoryReplaceByIdPUT /DiagHistory/{id}Replace attributes for a model instance and persist it into the data source.
DoctorApidoctorCreatePOST /DoctorCreate a new instance of the model and persist it into the data source.
DoctorApidoctorDeleteByIdDELETE /Doctor/{id}Delete a model instance by {{id}} from the data source.
DoctorApidoctorExistsHEAD /Doctor/{id}Check whether a model instance exists in the data source.
DoctorApidoctorFindGET /DoctorFind all instances of the model matched by filter from the data source.
DoctorApidoctorFindByIdGET /Doctor/{id}Find a model instance by {{id}} from the data source.
DoctorApidoctorReplaceByIdPUT /Doctor/{id}Replace attributes for a model instance and persist it into the data source.
DrugHistoryApidrugHistoryCreatePOST /DrugHistoryCreate a new instance of the model and persist it into the data source.
DrugHistoryApidrugHistoryDeleteByIdDELETE /DrugHistory/{id}Delete a model instance by {{id}} from the data source.
DrugHistoryApidrugHistoryExistsHEAD /DrugHistory/{id}Check whether a model instance exists in the data source.
DrugHistoryApidrugHistoryFindGET /DrugHistoryFind all instances of the model matched by filter from the data source.
DrugHistoryApidrugHistoryFindByIdGET /DrugHistory/{id}Find a model instance by {{id}} from the data source.
DrugHistoryApidrugHistoryReplaceByIdPUT /DrugHistory/{id}Replace attributes for a model instance and persist it into the data source.
HealthCareProviderApihealthCareProviderCreatePOST /HealthCareProviderCreate a new instance of the model and persist it into the data source.
HealthCareProviderApihealthCareProviderDeleteByIdDELETE /HealthCareProvider/{id}Delete a model instance by {{id}} from the data source.
HealthCareProviderApihealthCareProviderExistsHEAD /HealthCareProvider/{id}Check whether a model instance exists in the data source.
HealthCareProviderApihealthCareProviderFindGET /HealthCareProviderFind all instances of the model matched by filter from the data source.
HealthCareProviderApihealthCareProviderFindByIdGET /HealthCareProvider/{id}Find a model instance by {{id}} from the data source.
HealthCareProviderApihealthCareProviderReplaceByIdPUT /HealthCareProvider/{id}Replace attributes for a model instance and persist it into the data source.
PatientApipatientCreatePOST /PatientCreate a new instance of the model and persist it into the data source.
PatientApipatientDeleteByIdDELETE /Patient/{id}Delete a model instance by {{id}} from the data source.
PatientApipatientExistsHEAD /Patient/{id}Check whether a model instance exists in the data source.
PatientApipatientFindGET /PatientFind all instances of the model matched by filter from the data source.
PatientApipatientFindByIdGET /Patient/{id}Find a model instance by {{id}} from the data source.
PatientApipatientReplaceByIdPUT /Patient/{id}Replace attributes for a model instance and persist it into the data source.
PermissionLogApipermissionLogCreatePOST /PermissionLogCreate a new instance of the model and persist it into the data source.
PermissionLogApipermissionLogDeleteByIdDELETE /PermissionLog/{id}Delete a model instance by {{id}} from the data source.
PermissionLogApipermissionLogExistsHEAD /PermissionLog/{id}Check whether a model instance exists in the data source.
PermissionLogApipermissionLogFindGET /PermissionLogFind all instances of the model matched by filter from the data source.
PermissionLogApipermissionLogFindByIdGET /PermissionLog/{id}Find a model instance by {{id}} from the data source.
PermissionLogApipermissionLogReplaceByIdPUT /PermissionLog/{id}Replace attributes for a model instance and persist it into the data source.
PermissionTransactionApipermissionTransactionCreatePOST /PermissionTransactionCreate a new instance of the model and persist it into the data source.
PermissionTransactionApipermissionTransactionFindGET /PermissionTransactionFind all instances of the model matched by filter from the data source.
PermissionTransactionApipermissionTransactionFindByIdGET /PermissionTransaction/{id}Find a model instance by {{id}} from the data source.
ProcedureHistoryApiprocedureHistoryCreatePOST /ProcedureHistoryCreate a new instance of the model and persist it into the data source.
ProcedureHistoryApiprocedureHistoryDeleteByIdDELETE /ProcedureHistory/{id}Delete a model instance by {{id}} from the data source.
ProcedureHistoryApiprocedureHistoryExistsHEAD /ProcedureHistory/{id}Check whether a model instance exists in the data source.
ProcedureHistoryApiprocedureHistoryFindGET /ProcedureHistoryFind all instances of the model matched by filter from the data source.
ProcedureHistoryApiprocedureHistoryFindByIdGET /ProcedureHistory/{id}Find a model instance by {{id}} from the data source.
ProcedureHistoryApiprocedureHistoryReplaceByIdPUT /ProcedureHistory/{id}Replace attributes for a model instance and persist it into the data source.
ProtectedAssetApiprotectedAssetCreatePOST /ProtectedAssetCreate a new instance of the model and persist it into the data source.
ProtectedAssetApiprotectedAssetDeleteByIdDELETE /ProtectedAsset/{id}Delete a model instance by {{id}} from the data source.
ProtectedAssetApiprotectedAssetExistsHEAD /ProtectedAsset/{id}Check whether a model instance exists in the data source.
ProtectedAssetApiprotectedAssetFindGET /ProtectedAssetFind all instances of the model matched by filter from the data source.
ProtectedAssetApiprotectedAssetFindByIdGET /ProtectedAsset/{id}Find a model instance by {{id}} from the data source.
ProtectedAssetApiprotectedAssetReplaceByIdPUT /ProtectedAsset/{id}Replace attributes for a model instance and persist it into the data source.
QueryApiqueryListAllCheckupHistoryOfPatientGET /queries/listAllCheckupHistoryOfPatientShow all checkup history for specified patient
QueryApiqueryListAllDiagHistoryOfPatientGET /queries/listAllDiagHistoryOfPatientShow all diagnostic history for specified patient
QueryApiqueryListAllDrugHistoryOfPatientGET /queries/listAllDrugHistoryOfPatientShow all drug history for specified patient
QueryApiqueryListAllGrantedPermissionGET /queries/listAllGrantedPermissionList all valid permission grant
QueryApiqueryListAllPendingPermissionRequestGET /queries/listAllPendingPermissionRequestGet list of pending permission request of patient
QueryApiqueryListAllProcedureHistoryOfPatientGET /queries/listAllProcedureHistoryOfPatientShow all procedure history for specified patient
QueryApiqueryListAllProtectedAssetsGET /queries/listAllProtectedAssetsList all protected assets
QueryApiqueryListAllServiceHistoryOfPatientGET /queries/listAllServiceHistoryOfPatientShow all service history for specified patient
ServiceHistoryApiserviceHistoryCreatePOST /ServiceHistoryCreate a new instance of the model and persist it into the data source.
ServiceHistoryApiserviceHistoryDeleteByIdDELETE /ServiceHistory/{id}Delete a model instance by {{id}} from the data source.
ServiceHistoryApiserviceHistoryExistsHEAD /ServiceHistory/{id}Check whether a model instance exists in the data source.
ServiceHistoryApiserviceHistoryFindGET /ServiceHistoryFind all instances of the model matched by filter from the data source.
ServiceHistoryApiserviceHistoryFindByIdGET /ServiceHistory/{id}Find a model instance by {{id}} from the data source.
ServiceHistoryApiserviceHistoryReplaceByIdPUT /ServiceHistory/{id}Replace attributes for a model instance and persist it into the data source.
SystemApisystemBindIdentityPOST /system/identities/bindBind an identity to the specified participant
SystemApisystemGetAllHistorianRecordsGET /system/historianGet all Historian Records from the Historian
SystemApisystemGetAllIdentitiesGET /system/identitiesGet all identities from the identity registry
SystemApisystemGetHistorianRecordByIDGET /system/historian/{id}Get the specified Historian Record from the Historian
SystemApisystemGetIdentityByIDGET /system/identities/{id}Get the specified identity from the identity registry
SystemApisystemIssueIdentityPOST /system/identities/issueIssue an identity to the specified participant
SystemApisystemPingGET /system/pingTest the connection to the business network
SystemApisystemRevokeIdentityPOST /system/identities/{id}/revokeRevoke the specified identity
UpdateCheckupHistoryApiupdateCheckupHistoryCreatePOST /UpdateCheckupHistoryCreate a new instance of the model and persist it into the data source.
UpdateCheckupHistoryApiupdateCheckupHistoryFindGET /UpdateCheckupHistoryFind all instances of the model matched by filter from the data source.
UpdateCheckupHistoryApiupdateCheckupHistoryFindByIdGET /UpdateCheckupHistory/{id}Find a model instance by {{id}} from the data source.
UpdateDiagHistoryApiupdateDiagHistoryCreatePOST /UpdateDiagHistoryCreate a new instance of the model and persist it into the data source.
UpdateDiagHistoryApiupdateDiagHistoryFindGET /UpdateDiagHistoryFind all instances of the model matched by filter from the data source.
UpdateDiagHistoryApiupdateDiagHistoryFindByIdGET /UpdateDiagHistory/{id}Find a model instance by {{id}} from the data source.
UpdateDrugHistoryApiupdateDrugHistoryCreatePOST /UpdateDrugHistoryCreate a new instance of the model and persist it into the data source.
UpdateDrugHistoryApiupdateDrugHistoryFindGET /UpdateDrugHistoryFind all instances of the model matched by filter from the data source.
UpdateDrugHistoryApiupdateDrugHistoryFindByIdGET /UpdateDrugHistory/{id}Find a model instance by {{id}} from the data source.
UpdateProcedureHistoryApiupdateProcedureHistoryCreatePOST /UpdateProcedureHistoryCreate a new instance of the model and persist it into the data source.
UpdateProcedureHistoryApiupdateProcedureHistoryFindGET /UpdateProcedureHistoryFind all instances of the model matched by filter from the data source.
UpdateProcedureHistoryApiupdateProcedureHistoryFindByIdGET /UpdateProcedureHistory/{id}Find a model instance by {{id}} from the data source.
UpdateServiceHistoryApiupdateServiceHistoryCreatePOST /UpdateServiceHistoryCreate a new instance of the model and persist it into the data source.
UpdateServiceHistoryApiupdateServiceHistoryFindGET /UpdateServiceHistoryFind all instances of the model matched by filter from the data source.
UpdateServiceHistoryApiupdateServiceHistoryFindByIdGET /UpdateServiceHistory/{id}Find a model instance by {{id}} from the data source.
WalletApicardDeleteCardByNameDELETE /wallet/{name}Delete a specific business network card from the wallet
WalletApicardExistsCardByNameHEAD /wallet/{name}Test the existance of a specific business network card in the wallet
WalletApicardExportCardGET /wallet/{name}/exportExport a business network card from the wallet
WalletApicardGetAllCardsGET /walletGet all of the business network cards in the wallet
WalletApicardGetCardByNameGET /wallet/{name}Get a specific business network card from the wallet
WalletApicardImportCardPOST /wallet/importImport a business network card into the wallet
WalletApicardSetDefaultPOST /wallet/{name}/setDefaultSet a specific business network card as the default business network card

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issue.

Author

About

Swagger generated REST API wrapper for Java

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages