diff --git a/oncokbTranscriptApiClient/.gitignore b/oncokbCurationApiClient/.gitignore similarity index 100% rename from oncokbTranscriptApiClient/.gitignore rename to oncokbCurationApiClient/.gitignore diff --git a/oncokbTranscriptApiClient/.openapi-generator-ignore b/oncokbCurationApiClient/.openapi-generator-ignore similarity index 100% rename from oncokbTranscriptApiClient/.openapi-generator-ignore rename to oncokbCurationApiClient/.openapi-generator-ignore diff --git a/oncokbCurationApiClient/.openapi-generator/FILES b/oncokbCurationApiClient/.openapi-generator/FILES new file mode 100644 index 0000000..418c4a1 --- /dev/null +++ b/oncokbCurationApiClient/.openapi-generator/FILES @@ -0,0 +1,306 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +build.gradle +build.sbt +docs/AccountResourceApi.md +docs/AddEnsemblGeneBody.md +docs/AddTranscriptBody.md +docs/AllReferenceTranscriptSuggestionVM.md +docs/Alteration.md +docs/AlterationControllerApi.md +docs/AlterationCriteria.md +docs/AlterationReferenceGenome.md +docs/AlterationResourceApi.md +docs/Article.md +docs/ArticleCriteria.md +docs/ArticleResourceApi.md +docs/AuthInfoResourceApi.md +docs/AuthInfoVM.md +docs/BiomarkerAssociation.md +docs/BiomarkerAssociationDTO.md +docs/BiomarkerAssociationResourceApi.md +docs/BooleanFilter.md +docs/CancerType.md +docs/CancerTypeCriteria.md +docs/CancerTypeResourceApi.md +docs/CategoricalAlteration.md +docs/CategoricalAlterationResourceApi.md +docs/ClinicalTrialsGovCondition.md +docs/ClinicalTrialsGovConditionCriteria.md +docs/ClinicalTrialsGovConditionResourceApi.md +docs/CompanionDiagnosticDevice.md +docs/CompanionDiagnosticDeviceCriteria.md +docs/CompanionDiagnosticDeviceResourceApi.md +docs/Consequence.md +docs/ConsequenceResourceApi.md +docs/Drug.md +docs/DrugBrand.md +docs/DrugBrandResourceApi.md +docs/DrugControllerApi.md +docs/DrugCriteria.md +docs/DrugResourceApi.md +docs/DrugSynonym.md +docs/DrugSynonymResourceApi.md +docs/EnsemblGene.md +docs/EnsemblGeneControllerApi.md +docs/EnsemblGeneResourceApi.md +docs/EnsemblTranscript.md +docs/Exon.md +docs/FdaDrug.md +docs/FdaDrugResourceApi.md +docs/FdaSubmission.md +docs/FdaSubmissionCriteria.md +docs/FdaSubmissionResourceApi.md +docs/FdaSubmissionType.md +docs/FdaSubmissionTypeResourceApi.md +docs/Gene.md +docs/GeneAlias.md +docs/GeneAliasResourceApi.md +docs/GeneControllerApi.md +docs/GeneCriteria.md +docs/GeneResourceApi.md +docs/GenomeFragment.md +docs/GenomeFragmentResourceApi.md +docs/Info.md +docs/InfoResourceApi.md +docs/InstantFilter.md +docs/IntegerFilter.md +docs/LogoutResourceApi.md +docs/LongFilter.md +docs/MatchTranscriptVM.md +docs/Pageable.md +docs/PfamDomainRange.md +docs/PipelineControllerApi.md +docs/SearchControllerApi.md +docs/SearchResultDTO.md +docs/Sequence.md +docs/SequenceControllerApi.md +docs/SequenceResourceApi.md +docs/SpecimenType.md +docs/SpecimenTypeResourceApi.md +docs/StringFilter.md +docs/Transcript.md +docs/TranscriptComparisonResultVM.md +docs/TranscriptComparisonVM.md +docs/TranscriptControllerApi.md +docs/TranscriptDTO.md +docs/TranscriptMatchResultVM.md +docs/TranscriptPairVM.md +docs/TranscriptResourceApi.md +docs/TranscriptSuggestionVM.md +docs/TumorFormFilter.md +docs/UntranslatedRegion.md +docs/User.md +docs/UserDTO.md +docs/UserResourceApi.md +git_push.sh +gradle.properties +gradle/wrapper/gradle-wrapper.jar +gradle/wrapper/gradle-wrapper.properties +gradlew +gradlew.bat +pom.xml +settings.gradle +src/main/AndroidManifest.xml +src/main/java/org/oncokb/oncokb_curation/ApiCallback.java +src/main/java/org/oncokb/oncokb_curation/ApiClient.java +src/main/java/org/oncokb/oncokb_curation/ApiException.java +src/main/java/org/oncokb/oncokb_curation/ApiResponse.java +src/main/java/org/oncokb/oncokb_curation/Configuration.java +src/main/java/org/oncokb/oncokb_curation/GzipRequestInterceptor.java +src/main/java/org/oncokb/oncokb_curation/JSON.java +src/main/java/org/oncokb/oncokb_curation/Pair.java +src/main/java/org/oncokb/oncokb_curation/ProgressRequestBody.java +src/main/java/org/oncokb/oncokb_curation/ProgressResponseBody.java +src/main/java/org/oncokb/oncokb_curation/ServerConfiguration.java +src/main/java/org/oncokb/oncokb_curation/ServerVariable.java +src/main/java/org/oncokb/oncokb_curation/StringUtil.java +src/main/java/org/oncokb/oncokb_curation/auth/ApiKeyAuth.java +src/main/java/org/oncokb/oncokb_curation/auth/Authentication.java +src/main/java/org/oncokb/oncokb_curation/auth/HttpBasicAuth.java +src/main/java/org/oncokb/oncokb_curation/auth/HttpBearerAuth.java +src/main/java/org/oncokb/oncokb_curation/client/AccountResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBody.java +src/main/java/org/oncokb/oncokb_curation/client/AddTranscriptBody.java +src/main/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVM.java +src/main/java/org/oncokb/oncokb_curation/client/Alteration.java +src/main/java/org/oncokb/oncokb_curation/client/AlterationControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/AlterationCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenome.java +src/main/java/org/oncokb/oncokb_curation/client/AlterationResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/Article.java +src/main/java/org/oncokb/oncokb_curation/client/ArticleCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/ArticleResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/AuthInfoVM.java +src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociation.java +src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTO.java +src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/BooleanFilter.java +src/main/java/org/oncokb/oncokb_curation/client/CancerType.java +src/main/java/org/oncokb/oncokb_curation/client/CancerTypeCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlteration.java +src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovCondition.java +src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDevice.java +src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/Consequence.java +src/main/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/Drug.java +src/main/java/org/oncokb/oncokb_curation/client/DrugBrand.java +src/main/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/DrugControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/DrugCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/DrugResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/DrugSynonym.java +src/main/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/EnsemblGene.java +src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/EnsemblTranscript.java +src/main/java/org/oncokb/oncokb_curation/client/Exon.java +src/main/java/org/oncokb/oncokb_curation/client/FdaDrug.java +src/main/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/FdaSubmission.java +src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionType.java +src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/Gene.java +src/main/java/org/oncokb/oncokb_curation/client/GeneAlias.java +src/main/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/GeneControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/GeneCriteria.java +src/main/java/org/oncokb/oncokb_curation/client/GeneResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/GenomeFragment.java +src/main/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/Info.java +src/main/java/org/oncokb/oncokb_curation/client/InfoResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/InstantFilter.java +src/main/java/org/oncokb/oncokb_curation/client/IntegerFilter.java +src/main/java/org/oncokb/oncokb_curation/client/LogoutResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/LongFilter.java +src/main/java/org/oncokb/oncokb_curation/client/MatchTranscriptVM.java +src/main/java/org/oncokb/oncokb_curation/client/Pageable.java +src/main/java/org/oncokb/oncokb_curation/client/PfamDomainRange.java +src/main/java/org/oncokb/oncokb_curation/client/PipelineControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/SearchControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/SearchResultDTO.java +src/main/java/org/oncokb/oncokb_curation/client/Sequence.java +src/main/java/org/oncokb/oncokb_curation/client/SequenceControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/SequenceResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/SpecimenType.java +src/main/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/StringFilter.java +src/main/java/org/oncokb/oncokb_curation/client/Transcript.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVM.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVM.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptControllerApi.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptDTO.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVM.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptPairVM.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptResourceApi.java +src/main/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVM.java +src/main/java/org/oncokb/oncokb_curation/client/TumorFormFilter.java +src/main/java/org/oncokb/oncokb_curation/client/UntranslatedRegion.java +src/main/java/org/oncokb/oncokb_curation/client/User.java +src/main/java/org/oncokb/oncokb_curation/client/UserDTO.java +src/main/java/org/oncokb/oncokb_curation/client/UserResourceApi.java +src/test/java/org/oncokb/oncokb_curation/client/AccountResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBodyTest.java +src/test/java/org/oncokb/oncokb_curation/client/AddTranscriptBodyTest.java +src/test/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/AlterationControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/AlterationCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenomeTest.java +src/test/java/org/oncokb/oncokb_curation/client/AlterationResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/AlterationTest.java +src/test/java/org/oncokb/oncokb_curation/client/ArticleCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/ArticleResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/ArticleTest.java +src/test/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/AuthInfoVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTOTest.java +src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationTest.java +src/test/java/org/oncokb/oncokb_curation/client/BooleanFilterTest.java +src/test/java/org/oncokb/oncokb_curation/client/CancerTypeCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/CancerTypeTest.java +src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationTest.java +src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionTest.java +src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceTest.java +src/test/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/ConsequenceTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugBrandTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymTest.java +src/test/java/org/oncokb/oncokb_curation/client/DrugTest.java +src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneTest.java +src/test/java/org/oncokb/oncokb_curation/client/EnsemblTranscriptTest.java +src/test/java/org/oncokb/oncokb_curation/client/ExonTest.java +src/test/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/FdaDrugTest.java +src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTest.java +src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeTest.java +src/test/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/GeneAliasTest.java +src/test/java/org/oncokb/oncokb_curation/client/GeneControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/GeneCriteriaTest.java +src/test/java/org/oncokb/oncokb_curation/client/GeneResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/GeneTest.java +src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentTest.java +src/test/java/org/oncokb/oncokb_curation/client/InfoResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/InfoTest.java +src/test/java/org/oncokb/oncokb_curation/client/InstantFilterTest.java +src/test/java/org/oncokb/oncokb_curation/client/IntegerFilterTest.java +src/test/java/org/oncokb/oncokb_curation/client/LogoutResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/LongFilterTest.java +src/test/java/org/oncokb/oncokb_curation/client/MatchTranscriptVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/PageableTest.java +src/test/java/org/oncokb/oncokb_curation/client/PfamDomainRangeTest.java +src/test/java/org/oncokb/oncokb_curation/client/PipelineControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/SearchControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/SearchResultDTOTest.java +src/test/java/org/oncokb/oncokb_curation/client/SequenceControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/SequenceResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/SequenceTest.java +src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeTest.java +src/test/java/org/oncokb/oncokb_curation/client/StringFilterTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptControllerApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptDTOTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptPairVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVMTest.java +src/test/java/org/oncokb/oncokb_curation/client/TranscriptTest.java +src/test/java/org/oncokb/oncokb_curation/client/TumorFormFilterTest.java +src/test/java/org/oncokb/oncokb_curation/client/UntranslatedRegionTest.java +src/test/java/org/oncokb/oncokb_curation/client/UserDTOTest.java +src/test/java/org/oncokb/oncokb_curation/client/UserResourceApiTest.java +src/test/java/org/oncokb/oncokb_curation/client/UserTest.java diff --git a/oncokbTranscriptApiClient/.openapi-generator/VERSION b/oncokbCurationApiClient/.openapi-generator/VERSION similarity index 100% rename from oncokbTranscriptApiClient/.openapi-generator/VERSION rename to oncokbCurationApiClient/.openapi-generator/VERSION diff --git a/oncokbTranscriptApiClient/.travis.yml b/oncokbCurationApiClient/.travis.yml similarity index 100% rename from oncokbTranscriptApiClient/.travis.yml rename to oncokbCurationApiClient/.travis.yml diff --git a/oncokbCurationApiClient/README.md b/oncokbCurationApiClient/README.md new file mode 100644 index 0000000..4a355e2 --- /dev/null +++ b/oncokbCurationApiClient/README.md @@ -0,0 +1,368 @@ +# oncokbCurationApiClient + +OpenAPI definition +- API version: v1.0.0 + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + + +*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* + + +## Requirements + +Building the API client library requires: +1. Java 1.7+ +2. Maven (3.8.3+)/Gradle (7.2+) + +## Installation + +To install the API client library to your local Maven repository, simply execute: + +```shell +mvn clean install +``` + +To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: + +```shell +mvn clean deploy +``` + +Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. + +### Maven users + +Add this dependency to your project's POM: + +```xml + + org.oncokb.oncokb-curation.client + oncokbCurationApiClient + 1.0.0-SNAPSHOT + compile + +``` + +### Gradle users + +Add this dependency to your project's build file: + +```groovy + repositories { + mavenCentral() // Needed if the 'oncokbCurationApiClient' jar has been published to maven central. + mavenLocal() // Needed if the 'oncokbCurationApiClient' jar has been published to the local maven repo. + } + + dependencies { + implementation "org.oncokb.oncokb-curation.client:oncokbCurationApiClient:1.0.0-SNAPSHOT" + } +``` + +### Others + +At first generate the JAR by executing: + +```shell +mvn clean package +``` + +Then manually install the following JARs: + +* `target/oncokbCurationApiClient-1.0.0-SNAPSHOT.jar` +* `target/lib/*.jar` + +## Getting Started + +Please follow the [installation](#installation) instruction and execute the following Java code: + +```java + +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AccountResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AccountResourceApi apiInstance = new AccountResourceApi(defaultClient); + try { + UserDTO result = apiInstance.getAccount(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountResourceApi#getAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AccountResourceApi* | [**getAccount**](docs/AccountResourceApi.md#getAccount) | **GET** /api/account | +*AccountResourceApi* | [**getFirebaseToken**](docs/AccountResourceApi.md#getFirebaseToken) | **GET** /api/account/firebase-token | +*AccountResourceApi* | [**isAuthenticated**](docs/AccountResourceApi.md#isAuthenticated) | **GET** /api/authenticate | +*AlterationControllerApi* | [**annotateAlteration**](docs/AlterationControllerApi.md#annotateAlteration) | **POST** /api/annotate-alteration | +*AlterationResourceApi* | [**countAlterations**](docs/AlterationResourceApi.md#countAlterations) | **GET** /api/alterations/count | +*AlterationResourceApi* | [**createAlteration**](docs/AlterationResourceApi.md#createAlteration) | **POST** /api/alterations | +*AlterationResourceApi* | [**deleteAlteration**](docs/AlterationResourceApi.md#deleteAlteration) | **DELETE** /api/alterations/{id} | +*AlterationResourceApi* | [**findByGeneId**](docs/AlterationResourceApi.md#findByGeneId) | **GET** /api/alterations/gene/{id} | +*AlterationResourceApi* | [**getAllAlterations**](docs/AlterationResourceApi.md#getAllAlterations) | **GET** /api/alterations | +*AlterationResourceApi* | [**getAlteration**](docs/AlterationResourceApi.md#getAlteration) | **GET** /api/alterations/{id} | +*AlterationResourceApi* | [**partialUpdateAlteration**](docs/AlterationResourceApi.md#partialUpdateAlteration) | **PATCH** /api/alterations/{id} | +*AlterationResourceApi* | [**searchAlterations**](docs/AlterationResourceApi.md#searchAlterations) | **GET** /api/_search/alterations | +*AlterationResourceApi* | [**updateAlteration**](docs/AlterationResourceApi.md#updateAlteration) | **PUT** /api/alterations/{id} | +*ArticleResourceApi* | [**countArticles**](docs/ArticleResourceApi.md#countArticles) | **GET** /api/articles/count | +*ArticleResourceApi* | [**createArticle**](docs/ArticleResourceApi.md#createArticle) | **POST** /api/articles | +*ArticleResourceApi* | [**deleteArticle**](docs/ArticleResourceApi.md#deleteArticle) | **DELETE** /api/articles/{id} | +*ArticleResourceApi* | [**getAllArticles**](docs/ArticleResourceApi.md#getAllArticles) | **GET** /api/articles | +*ArticleResourceApi* | [**getArticle**](docs/ArticleResourceApi.md#getArticle) | **GET** /api/articles/{id} | +*ArticleResourceApi* | [**partialUpdateArticle**](docs/ArticleResourceApi.md#partialUpdateArticle) | **PATCH** /api/articles/{id} | +*ArticleResourceApi* | [**searchArticles**](docs/ArticleResourceApi.md#searchArticles) | **GET** /api/_search/articles | +*ArticleResourceApi* | [**updateArticle**](docs/ArticleResourceApi.md#updateArticle) | **PUT** /api/articles/{id} | +*AuthInfoResourceApi* | [**getAuthInfo**](docs/AuthInfoResourceApi.md#getAuthInfo) | **GET** /api/auth-info | +*BiomarkerAssociationResourceApi* | [**createBiomarkerAssociation**](docs/BiomarkerAssociationResourceApi.md#createBiomarkerAssociation) | **POST** /api/biomarker-associations | +*BiomarkerAssociationResourceApi* | [**deleteBiomarkerAssociation**](docs/BiomarkerAssociationResourceApi.md#deleteBiomarkerAssociation) | **DELETE** /api/biomarker-associations/{id} | +*BiomarkerAssociationResourceApi* | [**getAllBiomarkerAssociations**](docs/BiomarkerAssociationResourceApi.md#getAllBiomarkerAssociations) | **GET** /api/biomarker-associations | +*BiomarkerAssociationResourceApi* | [**getBiomarkerAssociation**](docs/BiomarkerAssociationResourceApi.md#getBiomarkerAssociation) | **GET** /api/biomarker-associations/{id} | +*BiomarkerAssociationResourceApi* | [**getBiomarkerAssociationByCompanionDiagnosticDevice**](docs/BiomarkerAssociationResourceApi.md#getBiomarkerAssociationByCompanionDiagnosticDevice) | **GET** /api/biomarker-associations/companion-diagnostic-device/{id} | +*BiomarkerAssociationResourceApi* | [**partialUpdateBiomarkerAssociation**](docs/BiomarkerAssociationResourceApi.md#partialUpdateBiomarkerAssociation) | **PATCH** /api/biomarker-associations/{id} | +*BiomarkerAssociationResourceApi* | [**updateBiomarkerAssociation**](docs/BiomarkerAssociationResourceApi.md#updateBiomarkerAssociation) | **PUT** /api/biomarker-associations/{id} | +*CancerTypeResourceApi* | [**countCancerTypes**](docs/CancerTypeResourceApi.md#countCancerTypes) | **GET** /api/cancer-types/count | +*CancerTypeResourceApi* | [**createCancerType**](docs/CancerTypeResourceApi.md#createCancerType) | **POST** /api/cancer-types | +*CancerTypeResourceApi* | [**deleteCancerType**](docs/CancerTypeResourceApi.md#deleteCancerType) | **DELETE** /api/cancer-types/{id} | +*CancerTypeResourceApi* | [**getAllCancerTypes**](docs/CancerTypeResourceApi.md#getAllCancerTypes) | **GET** /api/cancer-types | +*CancerTypeResourceApi* | [**getCancerType**](docs/CancerTypeResourceApi.md#getCancerType) | **GET** /api/cancer-types/{id} | +*CancerTypeResourceApi* | [**partialUpdateCancerType**](docs/CancerTypeResourceApi.md#partialUpdateCancerType) | **PATCH** /api/cancer-types/{id} | +*CancerTypeResourceApi* | [**searchCancerTypes**](docs/CancerTypeResourceApi.md#searchCancerTypes) | **GET** /api/_search/cancer-types | +*CancerTypeResourceApi* | [**updateCancerType**](docs/CancerTypeResourceApi.md#updateCancerType) | **PUT** /api/cancer-types/{id} | +*CategoricalAlterationResourceApi* | [**createCategoricalAlteration**](docs/CategoricalAlterationResourceApi.md#createCategoricalAlteration) | **POST** /api/categorical-alterations | +*CategoricalAlterationResourceApi* | [**deleteCategoricalAlteration**](docs/CategoricalAlterationResourceApi.md#deleteCategoricalAlteration) | **DELETE** /api/categorical-alterations/{id} | +*CategoricalAlterationResourceApi* | [**getAllCategoricalAlterations**](docs/CategoricalAlterationResourceApi.md#getAllCategoricalAlterations) | **GET** /api/categorical-alterations | +*CategoricalAlterationResourceApi* | [**getCategoricalAlteration**](docs/CategoricalAlterationResourceApi.md#getCategoricalAlteration) | **GET** /api/categorical-alterations/{id} | +*CategoricalAlterationResourceApi* | [**partialUpdateCategoricalAlteration**](docs/CategoricalAlterationResourceApi.md#partialUpdateCategoricalAlteration) | **PATCH** /api/categorical-alterations/{id} | +*CategoricalAlterationResourceApi* | [**updateCategoricalAlteration**](docs/CategoricalAlterationResourceApi.md#updateCategoricalAlteration) | **PUT** /api/categorical-alterations/{id} | +*ClinicalTrialsGovConditionResourceApi* | [**countClinicalTrialsGovConditions**](docs/ClinicalTrialsGovConditionResourceApi.md#countClinicalTrialsGovConditions) | **GET** /api/clinical-trials-gov-conditions/count | +*ClinicalTrialsGovConditionResourceApi* | [**createClinicalTrialsGovCondition**](docs/ClinicalTrialsGovConditionResourceApi.md#createClinicalTrialsGovCondition) | **POST** /api/clinical-trials-gov-conditions | +*ClinicalTrialsGovConditionResourceApi* | [**deleteClinicalTrialsGovCondition**](docs/ClinicalTrialsGovConditionResourceApi.md#deleteClinicalTrialsGovCondition) | **DELETE** /api/clinical-trials-gov-conditions/{id} | +*ClinicalTrialsGovConditionResourceApi* | [**getAllClinicalTrialsGovConditions**](docs/ClinicalTrialsGovConditionResourceApi.md#getAllClinicalTrialsGovConditions) | **GET** /api/clinical-trials-gov-conditions | +*ClinicalTrialsGovConditionResourceApi* | [**getClinicalTrialsGovCondition**](docs/ClinicalTrialsGovConditionResourceApi.md#getClinicalTrialsGovCondition) | **GET** /api/clinical-trials-gov-conditions/{id} | +*ClinicalTrialsGovConditionResourceApi* | [**partialUpdateClinicalTrialsGovCondition**](docs/ClinicalTrialsGovConditionResourceApi.md#partialUpdateClinicalTrialsGovCondition) | **PATCH** /api/clinical-trials-gov-conditions/{id} | +*ClinicalTrialsGovConditionResourceApi* | [**searchClinicalTrialsGovConditions**](docs/ClinicalTrialsGovConditionResourceApi.md#searchClinicalTrialsGovConditions) | **GET** /api/_search/clinical-trials-gov-conditions | +*ClinicalTrialsGovConditionResourceApi* | [**updateClinicalTrialsGovCondition**](docs/ClinicalTrialsGovConditionResourceApi.md#updateClinicalTrialsGovCondition) | **PUT** /api/clinical-trials-gov-conditions/{id} | +*CompanionDiagnosticDeviceResourceApi* | [**countCompanionDiagnosticDevices**](docs/CompanionDiagnosticDeviceResourceApi.md#countCompanionDiagnosticDevices) | **GET** /api/companion-diagnostic-devices/count | +*CompanionDiagnosticDeviceResourceApi* | [**createCompanionDiagnosticDevice**](docs/CompanionDiagnosticDeviceResourceApi.md#createCompanionDiagnosticDevice) | **POST** /api/companion-diagnostic-devices | +*CompanionDiagnosticDeviceResourceApi* | [**deleteCompanionDiagnosticDevice**](docs/CompanionDiagnosticDeviceResourceApi.md#deleteCompanionDiagnosticDevice) | **DELETE** /api/companion-diagnostic-devices/{id} | +*CompanionDiagnosticDeviceResourceApi* | [**getAllCompanionDiagnosticDevices**](docs/CompanionDiagnosticDeviceResourceApi.md#getAllCompanionDiagnosticDevices) | **GET** /api/companion-diagnostic-devices | +*CompanionDiagnosticDeviceResourceApi* | [**getCompanionDiagnosticDevice**](docs/CompanionDiagnosticDeviceResourceApi.md#getCompanionDiagnosticDevice) | **GET** /api/companion-diagnostic-devices/{id} | +*CompanionDiagnosticDeviceResourceApi* | [**partialUpdateCompanionDiagnosticDevice**](docs/CompanionDiagnosticDeviceResourceApi.md#partialUpdateCompanionDiagnosticDevice) | **PATCH** /api/companion-diagnostic-devices/{id} | +*CompanionDiagnosticDeviceResourceApi* | [**searchCompanionDiagnosticDevices**](docs/CompanionDiagnosticDeviceResourceApi.md#searchCompanionDiagnosticDevices) | **GET** /api/_search/companion-diagnostic-devices | +*CompanionDiagnosticDeviceResourceApi* | [**updateCompanionDiagnosticDevice**](docs/CompanionDiagnosticDeviceResourceApi.md#updateCompanionDiagnosticDevice) | **PUT** /api/companion-diagnostic-devices/{id} | +*ConsequenceResourceApi* | [**createConsequence**](docs/ConsequenceResourceApi.md#createConsequence) | **POST** /api/consequences | +*ConsequenceResourceApi* | [**deleteConsequence**](docs/ConsequenceResourceApi.md#deleteConsequence) | **DELETE** /api/consequences/{id} | +*ConsequenceResourceApi* | [**getAllConsequences**](docs/ConsequenceResourceApi.md#getAllConsequences) | **GET** /api/consequences | +*ConsequenceResourceApi* | [**getConsequence**](docs/ConsequenceResourceApi.md#getConsequence) | **GET** /api/consequences/{id} | +*ConsequenceResourceApi* | [**partialUpdateConsequence**](docs/ConsequenceResourceApi.md#partialUpdateConsequence) | **PATCH** /api/consequences/{id} | +*ConsequenceResourceApi* | [**updateConsequence**](docs/ConsequenceResourceApi.md#updateConsequence) | **PUT** /api/consequences/{id} | +*DrugBrandResourceApi* | [**createDrugBrand**](docs/DrugBrandResourceApi.md#createDrugBrand) | **POST** /api/drug-brands | +*DrugBrandResourceApi* | [**deleteDrugBrand**](docs/DrugBrandResourceApi.md#deleteDrugBrand) | **DELETE** /api/drug-brands/{id} | +*DrugBrandResourceApi* | [**getAllDrugBrands**](docs/DrugBrandResourceApi.md#getAllDrugBrands) | **GET** /api/drug-brands | +*DrugBrandResourceApi* | [**getDrugBrand**](docs/DrugBrandResourceApi.md#getDrugBrand) | **GET** /api/drug-brands/{id} | +*DrugBrandResourceApi* | [**partialUpdateDrugBrand**](docs/DrugBrandResourceApi.md#partialUpdateDrugBrand) | **PATCH** /api/drug-brands/{id} | +*DrugBrandResourceApi* | [**updateDrugBrand**](docs/DrugBrandResourceApi.md#updateDrugBrand) | **PUT** /api/drug-brands/{id} | +*DrugControllerApi* | [**findDrugByCode**](docs/DrugControllerApi.md#findDrugByCode) | **GET** /api/drugs/search-by-code/{code} | +*DrugControllerApi* | [**findDrugs**](docs/DrugControllerApi.md#findDrugs) | **GET** /api/drugs/search | +*DrugResourceApi* | [**countDrugs**](docs/DrugResourceApi.md#countDrugs) | **GET** /api/drugs/count | +*DrugResourceApi* | [**createDrug**](docs/DrugResourceApi.md#createDrug) | **POST** /api/drugs | +*DrugResourceApi* | [**deleteDrug**](docs/DrugResourceApi.md#deleteDrug) | **DELETE** /api/drugs/{id} | +*DrugResourceApi* | [**getAllDrugs**](docs/DrugResourceApi.md#getAllDrugs) | **GET** /api/drugs | +*DrugResourceApi* | [**getDrug**](docs/DrugResourceApi.md#getDrug) | **GET** /api/drugs/{id} | +*DrugResourceApi* | [**partialUpdateDrug**](docs/DrugResourceApi.md#partialUpdateDrug) | **PATCH** /api/drugs/{id} | +*DrugResourceApi* | [**searchDrugs**](docs/DrugResourceApi.md#searchDrugs) | **GET** /api/_search/drugs | +*DrugResourceApi* | [**updateDrug**](docs/DrugResourceApi.md#updateDrug) | **PUT** /api/drugs/{id} | +*DrugSynonymResourceApi* | [**createDrugSynonym**](docs/DrugSynonymResourceApi.md#createDrugSynonym) | **POST** /api/drug-synonyms | +*DrugSynonymResourceApi* | [**deleteDrugSynonym**](docs/DrugSynonymResourceApi.md#deleteDrugSynonym) | **DELETE** /api/drug-synonyms/{id} | +*DrugSynonymResourceApi* | [**getAllDrugSynonyms**](docs/DrugSynonymResourceApi.md#getAllDrugSynonyms) | **GET** /api/drug-synonyms | +*DrugSynonymResourceApi* | [**getDrugSynonym**](docs/DrugSynonymResourceApi.md#getDrugSynonym) | **GET** /api/drug-synonyms/{id} | +*DrugSynonymResourceApi* | [**partialUpdateDrugSynonym**](docs/DrugSynonymResourceApi.md#partialUpdateDrugSynonym) | **PATCH** /api/drug-synonyms/{id} | +*DrugSynonymResourceApi* | [**updateDrugSynonym**](docs/DrugSynonymResourceApi.md#updateDrugSynonym) | **PUT** /api/drug-synonyms/{id} | +*EnsemblGeneControllerApi* | [**addEnsemblGene**](docs/EnsemblGeneControllerApi.md#addEnsemblGene) | **POST** /api/add-ensembl-gene | +*EnsemblGeneResourceApi* | [**createEnsemblGene**](docs/EnsemblGeneResourceApi.md#createEnsemblGene) | **POST** /api/ensembl-genes | +*EnsemblGeneResourceApi* | [**deleteEnsemblGene**](docs/EnsemblGeneResourceApi.md#deleteEnsemblGene) | **DELETE** /api/ensembl-genes/{id} | +*EnsemblGeneResourceApi* | [**getAllEnsemblGenes**](docs/EnsemblGeneResourceApi.md#getAllEnsemblGenes) | **GET** /api/ensembl-genes | +*EnsemblGeneResourceApi* | [**getEnsemblGene**](docs/EnsemblGeneResourceApi.md#getEnsemblGene) | **GET** /api/ensembl-genes/{id} | +*EnsemblGeneResourceApi* | [**partialUpdateEnsemblGene**](docs/EnsemblGeneResourceApi.md#partialUpdateEnsemblGene) | **PATCH** /api/ensembl-genes/{id} | +*EnsemblGeneResourceApi* | [**updateEnsemblGene**](docs/EnsemblGeneResourceApi.md#updateEnsemblGene) | **PUT** /api/ensembl-genes/{id} | +*FdaDrugResourceApi* | [**createFdaDrug**](docs/FdaDrugResourceApi.md#createFdaDrug) | **POST** /api/fda-drugs | +*FdaDrugResourceApi* | [**deleteFdaDrug**](docs/FdaDrugResourceApi.md#deleteFdaDrug) | **DELETE** /api/fda-drugs/{id} | +*FdaDrugResourceApi* | [**getAllFdaDrugs**](docs/FdaDrugResourceApi.md#getAllFdaDrugs) | **GET** /api/fda-drugs | +*FdaDrugResourceApi* | [**getFdaDrug**](docs/FdaDrugResourceApi.md#getFdaDrug) | **GET** /api/fda-drugs/{id} | +*FdaDrugResourceApi* | [**partialUpdateFdaDrug**](docs/FdaDrugResourceApi.md#partialUpdateFdaDrug) | **PATCH** /api/fda-drugs/{id} | +*FdaDrugResourceApi* | [**updateFdaDrug**](docs/FdaDrugResourceApi.md#updateFdaDrug) | **PUT** /api/fda-drugs/{id} | +*FdaSubmissionResourceApi* | [**countFdaSubmissions**](docs/FdaSubmissionResourceApi.md#countFdaSubmissions) | **GET** /api/fda-submissions/count | +*FdaSubmissionResourceApi* | [**createFdaSubmission**](docs/FdaSubmissionResourceApi.md#createFdaSubmission) | **POST** /api/fda-submissions | +*FdaSubmissionResourceApi* | [**deleteFdaSubmission**](docs/FdaSubmissionResourceApi.md#deleteFdaSubmission) | **DELETE** /api/fda-submissions/{id} | +*FdaSubmissionResourceApi* | [**findFdaSubmissionsByCompanionDiagnosticDevice**](docs/FdaSubmissionResourceApi.md#findFdaSubmissionsByCompanionDiagnosticDevice) | **GET** /api/fda-submissions/companion-diagnostic-device/{id} | +*FdaSubmissionResourceApi* | [**getAllFdaSubmissions**](docs/FdaSubmissionResourceApi.md#getAllFdaSubmissions) | **GET** /api/fda-submissions | +*FdaSubmissionResourceApi* | [**getFdaSubmission**](docs/FdaSubmissionResourceApi.md#getFdaSubmission) | **GET** /api/fda-submissions/{id} | +*FdaSubmissionResourceApi* | [**getFdaSubmissionByNumber**](docs/FdaSubmissionResourceApi.md#getFdaSubmissionByNumber) | **GET** /api/fda-submissions/lookup | +*FdaSubmissionResourceApi* | [**partialUpdateFdaSubmission**](docs/FdaSubmissionResourceApi.md#partialUpdateFdaSubmission) | **PATCH** /api/fda-submissions/{id} | +*FdaSubmissionResourceApi* | [**searchFdaSubmissions**](docs/FdaSubmissionResourceApi.md#searchFdaSubmissions) | **GET** /api/_search/fda-submissions | +*FdaSubmissionResourceApi* | [**updateFdaSubmission**](docs/FdaSubmissionResourceApi.md#updateFdaSubmission) | **PUT** /api/fda-submissions/{id} | +*FdaSubmissionTypeResourceApi* | [**createFdaSubmissionType**](docs/FdaSubmissionTypeResourceApi.md#createFdaSubmissionType) | **POST** /api/fda-submission-types | +*FdaSubmissionTypeResourceApi* | [**deleteFdaSubmissionType**](docs/FdaSubmissionTypeResourceApi.md#deleteFdaSubmissionType) | **DELETE** /api/fda-submission-types/{id} | +*FdaSubmissionTypeResourceApi* | [**getAllFdaSubmissionTypes**](docs/FdaSubmissionTypeResourceApi.md#getAllFdaSubmissionTypes) | **GET** /api/fda-submission-types | +*FdaSubmissionTypeResourceApi* | [**getFdaSubmissionType**](docs/FdaSubmissionTypeResourceApi.md#getFdaSubmissionType) | **GET** /api/fda-submission-types/{id} | +*FdaSubmissionTypeResourceApi* | [**partialUpdateFdaSubmissionType**](docs/FdaSubmissionTypeResourceApi.md#partialUpdateFdaSubmissionType) | **PATCH** /api/fda-submission-types/{id} | +*FdaSubmissionTypeResourceApi* | [**updateFdaSubmissionType**](docs/FdaSubmissionTypeResourceApi.md#updateFdaSubmissionType) | **PUT** /api/fda-submission-types/{id} | +*GeneAliasResourceApi* | [**createGeneAlias**](docs/GeneAliasResourceApi.md#createGeneAlias) | **POST** /api/gene-aliases | +*GeneAliasResourceApi* | [**deleteGeneAlias**](docs/GeneAliasResourceApi.md#deleteGeneAlias) | **DELETE** /api/gene-aliases/{id} | +*GeneAliasResourceApi* | [**getAllGeneAliases**](docs/GeneAliasResourceApi.md#getAllGeneAliases) | **GET** /api/gene-aliases | +*GeneAliasResourceApi* | [**getGeneAlias**](docs/GeneAliasResourceApi.md#getGeneAlias) | **GET** /api/gene-aliases/{id} | +*GeneAliasResourceApi* | [**partialUpdateGeneAlias**](docs/GeneAliasResourceApi.md#partialUpdateGeneAlias) | **PATCH** /api/gene-aliases/{id} | +*GeneAliasResourceApi* | [**updateGeneAlias**](docs/GeneAliasResourceApi.md#updateGeneAlias) | **PUT** /api/gene-aliases/{id} | +*GeneControllerApi* | [**findGeneBySymbol**](docs/GeneControllerApi.md#findGeneBySymbol) | **GET** /api/find-genes | +*GeneControllerApi* | [**findGenesBySymbols**](docs/GeneControllerApi.md#findGenesBySymbols) | **POST** /api/find-genes | +*GeneResourceApi* | [**countGenes**](docs/GeneResourceApi.md#countGenes) | **GET** /api/genes/count | +*GeneResourceApi* | [**createGene**](docs/GeneResourceApi.md#createGene) | **POST** /api/genes | +*GeneResourceApi* | [**deleteGene**](docs/GeneResourceApi.md#deleteGene) | **DELETE** /api/genes/{id} | +*GeneResourceApi* | [**getAllGenes**](docs/GeneResourceApi.md#getAllGenes) | **GET** /api/genes | +*GeneResourceApi* | [**getGene**](docs/GeneResourceApi.md#getGene) | **GET** /api/genes/{id} | +*GeneResourceApi* | [**partialUpdateGene**](docs/GeneResourceApi.md#partialUpdateGene) | **PATCH** /api/genes/{id} | +*GeneResourceApi* | [**searchGenes**](docs/GeneResourceApi.md#searchGenes) | **GET** /api/_search/genes | +*GeneResourceApi* | [**updateGene**](docs/GeneResourceApi.md#updateGene) | **PUT** /api/genes/{id} | +*GenomeFragmentResourceApi* | [**createGenomeFragment**](docs/GenomeFragmentResourceApi.md#createGenomeFragment) | **POST** /api/genome-fragments | +*GenomeFragmentResourceApi* | [**deleteGenomeFragment**](docs/GenomeFragmentResourceApi.md#deleteGenomeFragment) | **DELETE** /api/genome-fragments/{id} | +*GenomeFragmentResourceApi* | [**getAllGenomeFragments**](docs/GenomeFragmentResourceApi.md#getAllGenomeFragments) | **GET** /api/genome-fragments | +*GenomeFragmentResourceApi* | [**getGenomeFragment**](docs/GenomeFragmentResourceApi.md#getGenomeFragment) | **GET** /api/genome-fragments/{id} | +*GenomeFragmentResourceApi* | [**partialUpdateGenomeFragment**](docs/GenomeFragmentResourceApi.md#partialUpdateGenomeFragment) | **PATCH** /api/genome-fragments/{id} | +*GenomeFragmentResourceApi* | [**updateGenomeFragment**](docs/GenomeFragmentResourceApi.md#updateGenomeFragment) | **PUT** /api/genome-fragments/{id} | +*InfoResourceApi* | [**createInfo**](docs/InfoResourceApi.md#createInfo) | **POST** /api/infos | +*InfoResourceApi* | [**deleteInfo**](docs/InfoResourceApi.md#deleteInfo) | **DELETE** /api/infos/{id} | +*InfoResourceApi* | [**getAllInfos**](docs/InfoResourceApi.md#getAllInfos) | **GET** /api/infos | +*InfoResourceApi* | [**getInfo**](docs/InfoResourceApi.md#getInfo) | **GET** /api/infos/{id} | +*InfoResourceApi* | [**partialUpdateInfo**](docs/InfoResourceApi.md#partialUpdateInfo) | **PATCH** /api/infos/{id} | +*InfoResourceApi* | [**updateInfo**](docs/InfoResourceApi.md#updateInfo) | **PUT** /api/infos/{id} | +*LogoutResourceApi* | [**logout**](docs/LogoutResourceApi.md#logout) | **POST** /api/logout | +*PipelineControllerApi* | [**updateNcit**](docs/PipelineControllerApi.md#updateNcit) | **POST** /api/pipeline/update-ncit | +*PipelineControllerApi* | [**updatePortalGene**](docs/PipelineControllerApi.md#updatePortalGene) | **POST** /api/pipeline/update-gene | +*SearchControllerApi* | [**search**](docs/SearchControllerApi.md#search) | **GET** /api/_search/all | +*SequenceControllerApi* | [**findCanonicalSequence**](docs/SequenceControllerApi.md#findCanonicalSequence) | **GET** /api/find-canonical-sequences | +*SequenceControllerApi* | [**findCanonicalSequences**](docs/SequenceControllerApi.md#findCanonicalSequences) | **POST** /api/find-canonical-sequences | +*SequenceResourceApi* | [**createSequence**](docs/SequenceResourceApi.md#createSequence) | **POST** /api/sequences | +*SequenceResourceApi* | [**deleteSequence**](docs/SequenceResourceApi.md#deleteSequence) | **DELETE** /api/sequences/{id} | +*SequenceResourceApi* | [**getAllSequences**](docs/SequenceResourceApi.md#getAllSequences) | **GET** /api/sequences | +*SequenceResourceApi* | [**getSequence**](docs/SequenceResourceApi.md#getSequence) | **GET** /api/sequences/{id} | +*SequenceResourceApi* | [**partialUpdateSequence**](docs/SequenceResourceApi.md#partialUpdateSequence) | **PATCH** /api/sequences/{id} | +*SequenceResourceApi* | [**updateSequence**](docs/SequenceResourceApi.md#updateSequence) | **PUT** /api/sequences/{id} | +*SpecimenTypeResourceApi* | [**createSpecimenType**](docs/SpecimenTypeResourceApi.md#createSpecimenType) | **POST** /api/specimen-types | +*SpecimenTypeResourceApi* | [**deleteSpecimenType**](docs/SpecimenTypeResourceApi.md#deleteSpecimenType) | **DELETE** /api/specimen-types/{id} | +*SpecimenTypeResourceApi* | [**getAllSpecimenTypes**](docs/SpecimenTypeResourceApi.md#getAllSpecimenTypes) | **GET** /api/specimen-types | +*SpecimenTypeResourceApi* | [**getSpecimenType**](docs/SpecimenTypeResourceApi.md#getSpecimenType) | **GET** /api/specimen-types/{id} | +*SpecimenTypeResourceApi* | [**partialUpdateSpecimenType**](docs/SpecimenTypeResourceApi.md#partialUpdateSpecimenType) | **PATCH** /api/specimen-types/{id} | +*SpecimenTypeResourceApi* | [**updateSpecimenType**](docs/SpecimenTypeResourceApi.md#updateSpecimenType) | **PUT** /api/specimen-types/{id} | +*TranscriptControllerApi* | [**addTranscript**](docs/TranscriptControllerApi.md#addTranscript) | **POST** /api/add-transcript | +*TranscriptControllerApi* | [**compareTranscript**](docs/TranscriptControllerApi.md#compareTranscript) | **POST** /api/compare-transcript/{hugoSymbol} | +*TranscriptControllerApi* | [**findTranscriptsByEnsemblIds**](docs/TranscriptControllerApi.md#findTranscriptsByEnsemblIds) | **POST** /api/find-transcripts-by-ensembl-ids | +*TranscriptControllerApi* | [**matchTranscript**](docs/TranscriptControllerApi.md#matchTranscript) | **POST** /api/match-transcript/{hugoSymbol} | +*TranscriptControllerApi* | [**suggestVariant**](docs/TranscriptControllerApi.md#suggestVariant) | **GET** /api/suggest-variant/{hugoSymbol} | +*TranscriptResourceApi* | [**createTranscript**](docs/TranscriptResourceApi.md#createTranscript) | **POST** /api/transcripts | +*TranscriptResourceApi* | [**deleteTranscript**](docs/TranscriptResourceApi.md#deleteTranscript) | **DELETE** /api/transcripts/{id} | +*TranscriptResourceApi* | [**getAllTranscripts**](docs/TranscriptResourceApi.md#getAllTranscripts) | **GET** /api/transcripts | +*TranscriptResourceApi* | [**getTranscript**](docs/TranscriptResourceApi.md#getTranscript) | **GET** /api/transcripts/{id} | +*TranscriptResourceApi* | [**partialUpdateTranscript**](docs/TranscriptResourceApi.md#partialUpdateTranscript) | **PATCH** /api/transcripts/{id} | +*TranscriptResourceApi* | [**updateTranscript**](docs/TranscriptResourceApi.md#updateTranscript) | **PUT** /api/transcripts/{id} | +*UserResourceApi* | [**createUser**](docs/UserResourceApi.md#createUser) | **POST** /api/admin/users | +*UserResourceApi* | [**deleteUser**](docs/UserResourceApi.md#deleteUser) | **DELETE** /api/admin/users/{login} | +*UserResourceApi* | [**getAllUsers**](docs/UserResourceApi.md#getAllUsers) | **GET** /api/admin/users | +*UserResourceApi* | [**getUser**](docs/UserResourceApi.md#getUser) | **GET** /api/admin/users/{login} | +*UserResourceApi* | [**updateUser**](docs/UserResourceApi.md#updateUser) | **PUT** /api/admin/users/{id} | + + +## Documentation for Models + + - [AddEnsemblGeneBody](docs/AddEnsemblGeneBody.md) + - [AddTranscriptBody](docs/AddTranscriptBody.md) + - [AllReferenceTranscriptSuggestionVM](docs/AllReferenceTranscriptSuggestionVM.md) + - [Alteration](docs/Alteration.md) + - [AlterationCriteria](docs/AlterationCriteria.md) + - [AlterationReferenceGenome](docs/AlterationReferenceGenome.md) + - [Article](docs/Article.md) + - [ArticleCriteria](docs/ArticleCriteria.md) + - [AuthInfoVM](docs/AuthInfoVM.md) + - [BiomarkerAssociation](docs/BiomarkerAssociation.md) + - [BiomarkerAssociationDTO](docs/BiomarkerAssociationDTO.md) + - [BooleanFilter](docs/BooleanFilter.md) + - [CancerType](docs/CancerType.md) + - [CancerTypeCriteria](docs/CancerTypeCriteria.md) + - [CategoricalAlteration](docs/CategoricalAlteration.md) + - [ClinicalTrialsGovCondition](docs/ClinicalTrialsGovCondition.md) + - [ClinicalTrialsGovConditionCriteria](docs/ClinicalTrialsGovConditionCriteria.md) + - [CompanionDiagnosticDevice](docs/CompanionDiagnosticDevice.md) + - [CompanionDiagnosticDeviceCriteria](docs/CompanionDiagnosticDeviceCriteria.md) + - [Consequence](docs/Consequence.md) + - [Drug](docs/Drug.md) + - [DrugBrand](docs/DrugBrand.md) + - [DrugCriteria](docs/DrugCriteria.md) + - [DrugSynonym](docs/DrugSynonym.md) + - [EnsemblGene](docs/EnsemblGene.md) + - [EnsemblTranscript](docs/EnsemblTranscript.md) + - [Exon](docs/Exon.md) + - [FdaDrug](docs/FdaDrug.md) + - [FdaSubmission](docs/FdaSubmission.md) + - [FdaSubmissionCriteria](docs/FdaSubmissionCriteria.md) + - [FdaSubmissionType](docs/FdaSubmissionType.md) + - [Gene](docs/Gene.md) + - [GeneAlias](docs/GeneAlias.md) + - [GeneCriteria](docs/GeneCriteria.md) + - [GenomeFragment](docs/GenomeFragment.md) + - [Info](docs/Info.md) + - [InstantFilter](docs/InstantFilter.md) + - [IntegerFilter](docs/IntegerFilter.md) + - [LongFilter](docs/LongFilter.md) + - [MatchTranscriptVM](docs/MatchTranscriptVM.md) + - [Pageable](docs/Pageable.md) + - [PfamDomainRange](docs/PfamDomainRange.md) + - [SearchResultDTO](docs/SearchResultDTO.md) + - [Sequence](docs/Sequence.md) + - [SpecimenType](docs/SpecimenType.md) + - [StringFilter](docs/StringFilter.md) + - [Transcript](docs/Transcript.md) + - [TranscriptComparisonResultVM](docs/TranscriptComparisonResultVM.md) + - [TranscriptComparisonVM](docs/TranscriptComparisonVM.md) + - [TranscriptDTO](docs/TranscriptDTO.md) + - [TranscriptMatchResultVM](docs/TranscriptMatchResultVM.md) + - [TranscriptPairVM](docs/TranscriptPairVM.md) + - [TranscriptSuggestionVM](docs/TranscriptSuggestionVM.md) + - [TumorFormFilter](docs/TumorFormFilter.md) + - [UntranslatedRegion](docs/UntranslatedRegion.md) + - [User](docs/User.md) + - [UserDTO](docs/UserDTO.md) + + +## 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 issues. + +## Author + + + diff --git a/oncokbCurationApiClient/api/openapi.yaml b/oncokbCurationApiClient/api/openapi.yaml new file mode 100644 index 0000000..66883ee --- /dev/null +++ b/oncokbCurationApiClient/api/openapi.yaml @@ -0,0 +1,9692 @@ +openapi: 3.0.1 +info: + title: OpenAPI definition + version: v0 +servers: +- description: Generated server url + url: http://beta.curation.oncokb.dev.aws.mskcc.org +paths: + /api/transcripts/{id}: + delete: + operationId: deleteTranscript + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - transcript-resource + x-accepts: application/json + get: + operationId: getTranscript + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/TranscriptDTO' + description: OK + tags: + - transcript-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateTranscript + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TranscriptDTO' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/TranscriptDTO' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/TranscriptDTO' + description: OK + tags: + - transcript-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateTranscript + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TranscriptDTO' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/TranscriptDTO' + description: OK + tags: + - transcript-resource + x-contentType: application/json + x-accepts: '*/*' + /api/specimen-types/{id}: + delete: + operationId: deleteSpecimenType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - specimen-type-resource + x-accepts: application/json + get: + operationId: getSpecimenType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/SpecimenType' + description: OK + tags: + - specimen-type-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateSpecimenType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SpecimenType' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/SpecimenType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/SpecimenType' + description: OK + tags: + - specimen-type-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateSpecimenType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SpecimenType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/SpecimenType' + description: OK + tags: + - specimen-type-resource + x-contentType: application/json + x-accepts: '*/*' + /api/sequences/{id}: + delete: + operationId: deleteSequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - sequence-resource + x-accepts: application/json + get: + operationId: getSequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Sequence' + description: OK + tags: + - sequence-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateSequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Sequence' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Sequence' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Sequence' + description: OK + tags: + - sequence-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateSequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Sequence' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Sequence' + description: OK + tags: + - sequence-resource + x-contentType: application/json + x-accepts: '*/*' + /api/infos/{id}: + delete: + operationId: deleteInfo + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - info-resource + x-accepts: application/json + get: + operationId: getInfo + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Info' + description: OK + tags: + - info-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateInfo + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Info' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Info' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Info' + description: OK + tags: + - info-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateInfo + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Info' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Info' + description: OK + tags: + - info-resource + x-contentType: application/json + x-accepts: '*/*' + /api/genome-fragments/{id}: + delete: + operationId: deleteGenomeFragment + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - genome-fragment-resource + x-accepts: application/json + get: + operationId: getGenomeFragment + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GenomeFragment' + description: OK + tags: + - genome-fragment-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateGenomeFragment + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenomeFragment' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/GenomeFragment' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GenomeFragment' + description: OK + tags: + - genome-fragment-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateGenomeFragment + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenomeFragment' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GenomeFragment' + description: OK + tags: + - genome-fragment-resource + x-contentType: application/json + x-accepts: '*/*' + /api/genes/{id}: + delete: + operationId: deleteGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - gene-resource + x-accepts: application/json + get: + operationId: getGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Gene' + description: OK + tags: + - gene-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gene' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Gene' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Gene' + description: OK + tags: + - gene-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gene' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Gene' + description: OK + tags: + - gene-resource + x-contentType: application/json + x-accepts: '*/*' + /api/gene-aliases/{id}: + delete: + operationId: deleteGeneAlias + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - gene-alias-resource + x-accepts: application/json + get: + operationId: getGeneAlias + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GeneAlias' + description: OK + tags: + - gene-alias-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateGeneAlias + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GeneAlias' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/GeneAlias' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GeneAlias' + description: OK + tags: + - gene-alias-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateGeneAlias + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GeneAlias' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GeneAlias' + description: OK + tags: + - gene-alias-resource + x-contentType: application/json + x-accepts: '*/*' + /api/fda-submissions/{id}: + delete: + operationId: deleteFdaSubmission + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - fda-submission-resource + x-accepts: application/json + get: + operationId: getFdaSubmission + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmission' + description: OK + tags: + - fda-submission-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateFdaSubmission + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaSubmission' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/FdaSubmission' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmission' + description: OK + tags: + - fda-submission-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateFdaSubmission + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaSubmission' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmission' + description: OK + tags: + - fda-submission-resource + x-contentType: application/json + x-accepts: '*/*' + /api/fda-submission-types/{id}: + delete: + operationId: deleteFdaSubmissionType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - fda-submission-type-resource + x-accepts: application/json + get: + operationId: getFdaSubmissionType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmissionType' + description: OK + tags: + - fda-submission-type-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateFdaSubmissionType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaSubmissionType' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/FdaSubmissionType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmissionType' + description: OK + tags: + - fda-submission-type-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateFdaSubmissionType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaSubmissionType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmissionType' + description: OK + tags: + - fda-submission-type-resource + x-contentType: application/json + x-accepts: '*/*' + /api/fda-drugs/{id}: + delete: + operationId: deleteFdaDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - fda-drug-resource + x-accepts: application/json + get: + operationId: getFdaDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaDrug' + description: OK + tags: + - fda-drug-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateFdaDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaDrug' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/FdaDrug' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaDrug' + description: OK + tags: + - fda-drug-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateFdaDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaDrug' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaDrug' + description: OK + tags: + - fda-drug-resource + x-contentType: application/json + x-accepts: '*/*' + /api/ensembl-genes/{id}: + delete: + operationId: deleteEnsemblGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - ensembl-gene-resource + x-accepts: application/json + get: + operationId: getEnsemblGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/EnsemblGene' + description: OK + tags: + - ensembl-gene-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateEnsemblGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EnsemblGene' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/EnsemblGene' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/EnsemblGene' + description: OK + tags: + - ensembl-gene-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateEnsemblGene + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EnsemblGene' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/EnsemblGene' + description: OK + tags: + - ensembl-gene-resource + x-contentType: application/json + x-accepts: '*/*' + /api/drugs/{id}: + delete: + operationId: deleteDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - drug-resource + x-accepts: application/json + get: + operationId: getDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Drug' + description: OK + tags: + - drug-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Drug' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Drug' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Drug' + description: OK + tags: + - drug-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateDrug + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Drug' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Drug' + description: OK + tags: + - drug-resource + x-contentType: application/json + x-accepts: '*/*' + /api/drug-synonyms/{id}: + delete: + operationId: deleteDrugSynonym + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - drug-synonym-resource + x-accepts: application/json + get: + operationId: getDrugSynonym + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugSynonym' + description: OK + tags: + - drug-synonym-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateDrugSynonym + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DrugSynonym' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/DrugSynonym' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugSynonym' + description: OK + tags: + - drug-synonym-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateDrugSynonym + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DrugSynonym' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugSynonym' + description: OK + tags: + - drug-synonym-resource + x-contentType: application/json + x-accepts: '*/*' + /api/drug-brands/{id}: + delete: + operationId: deleteDrugBrand + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - drug-brand-resource + x-accepts: application/json + get: + operationId: getDrugBrand + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugBrand' + description: OK + tags: + - drug-brand-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateDrugBrand + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DrugBrand' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/DrugBrand' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugBrand' + description: OK + tags: + - drug-brand-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateDrugBrand + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DrugBrand' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugBrand' + description: OK + tags: + - drug-brand-resource + x-contentType: application/json + x-accepts: '*/*' + /api/consequences/{id}: + delete: + operationId: deleteConsequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - consequence-resource + x-accepts: application/json + get: + operationId: getConsequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Consequence' + description: OK + tags: + - consequence-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateConsequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Consequence' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Consequence' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Consequence' + description: OK + tags: + - consequence-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateConsequence + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Consequence' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Consequence' + description: OK + tags: + - consequence-resource + x-contentType: application/json + x-accepts: '*/*' + /api/companion-diagnostic-devices/{id}: + delete: + operationId: deleteCompanionDiagnosticDevice + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - companion-diagnostic-device-resource + x-accepts: application/json + get: + operationId: getCompanionDiagnosticDevice + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + description: OK + tags: + - companion-diagnostic-device-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateCompanionDiagnosticDevice + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + description: OK + tags: + - companion-diagnostic-device-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateCompanionDiagnosticDevice + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + description: OK + tags: + - companion-diagnostic-device-resource + x-contentType: application/json + x-accepts: '*/*' + /api/clinical-trials-gov-conditions/{id}: + delete: + operationId: deleteClinicalTrialsGovCondition + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - clinical-trials-gov-condition-resource + x-accepts: application/json + get: + operationId: getClinicalTrialsGovCondition + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + description: OK + tags: + - clinical-trials-gov-condition-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateClinicalTrialsGovCondition + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + description: OK + tags: + - clinical-trials-gov-condition-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateClinicalTrialsGovCondition + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + description: OK + tags: + - clinical-trials-gov-condition-resource + x-contentType: application/json + x-accepts: '*/*' + /api/categorical-alterations/{id}: + delete: + operationId: deleteCategoricalAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - categorical-alteration-resource + x-accepts: application/json + get: + operationId: getCategoricalAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CategoricalAlteration' + description: OK + tags: + - categorical-alteration-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateCategoricalAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CategoricalAlteration' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/CategoricalAlteration' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CategoricalAlteration' + description: OK + tags: + - categorical-alteration-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateCategoricalAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CategoricalAlteration' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CategoricalAlteration' + description: OK + tags: + - categorical-alteration-resource + x-contentType: application/json + x-accepts: '*/*' + /api/cancer-types/{id}: + delete: + operationId: deleteCancerType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - cancer-type-resource + x-accepts: application/json + get: + operationId: getCancerType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CancerType' + description: OK + tags: + - cancer-type-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateCancerType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancerType' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/CancerType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CancerType' + description: OK + tags: + - cancer-type-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateCancerType + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancerType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CancerType' + description: OK + tags: + - cancer-type-resource + x-contentType: application/json + x-accepts: '*/*' + /api/biomarker-associations/{id}: + delete: + operationId: deleteBiomarkerAssociation + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - biomarker-association-resource + x-accepts: application/json + get: + operationId: getBiomarkerAssociation + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/BiomarkerAssociation' + description: OK + tags: + - biomarker-association-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateBiomarkerAssociation + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BiomarkerAssociation' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/BiomarkerAssociation' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/BiomarkerAssociation' + description: OK + tags: + - biomarker-association-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateBiomarkerAssociation + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BiomarkerAssociation' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/BiomarkerAssociation' + description: OK + tags: + - biomarker-association-resource + x-contentType: application/json + x-accepts: '*/*' + /api/articles/{id}: + delete: + operationId: deleteArticle + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - article-resource + x-accepts: application/json + get: + operationId: getArticle + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Article' + description: OK + tags: + - article-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateArticle + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Article' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Article' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Article' + description: OK + tags: + - article-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateArticle + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Article' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Article' + description: OK + tags: + - article-resource + x-contentType: application/json + x-accepts: '*/*' + /api/alterations/{id}: + delete: + operationId: deleteAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + description: OK + tags: + - alteration-resource + x-accepts: application/json + get: + operationId: getAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Alteration' + description: OK + tags: + - alteration-resource + x-accepts: '*/*' + patch: + operationId: partialUpdateAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Alteration' + application/merge-patch+json: + schema: + $ref: '#/components/schemas/Alteration' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Alteration' + description: OK + tags: + - alteration-resource + x-contentType: application/json + x-accepts: '*/*' + put: + operationId: updateAlteration + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Alteration' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Alteration' + description: OK + tags: + - alteration-resource + x-contentType: application/json + x-accepts: '*/*' + /api/admin/users/{id}: + put: + operationId: updateUser + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/UserDTO' + description: OK + tags: + - user-resource + x-contentType: application/json + x-accepts: '*/*' + /api/transcripts: + get: + operationId: getAllTranscripts + parameters: + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/TranscriptDTO' + type: array + description: OK + tags: + - transcript-resource + x-accepts: '*/*' + post: + operationId: createTranscript + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TranscriptDTO' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/TranscriptDTO' + description: OK + tags: + - transcript-resource + x-contentType: application/json + x-accepts: '*/*' + /api/specimen-types: + get: + operationId: getAllSpecimenTypes + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/SpecimenType' + type: array + description: OK + tags: + - specimen-type-resource + x-accepts: '*/*' + post: + operationId: createSpecimenType + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SpecimenType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/SpecimenType' + description: OK + tags: + - specimen-type-resource + x-contentType: application/json + x-accepts: '*/*' + /api/sequences: + get: + operationId: getAllSequences + parameters: + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Sequence' + type: array + description: OK + tags: + - sequence-resource + x-accepts: '*/*' + post: + operationId: createSequence + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Sequence' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Sequence' + description: OK + tags: + - sequence-resource + x-contentType: application/json + x-accepts: '*/*' + /api/pipeline/update-ncit: + post: + operationId: updateNcit + responses: + "200": + description: OK + tags: + - pipeline-controller + x-accepts: application/json + /api/pipeline/update-gene: + post: + operationId: updatePortalGene + responses: + "200": + description: OK + tags: + - pipeline-controller + x-accepts: application/json + /api/match-transcript/{hugoSymbol}: + post: + operationId: matchTranscript + parameters: + - explode: false + in: path + name: hugoSymbol + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MatchTranscriptVM' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/TranscriptMatchResultVM' + description: OK + tags: + - transcript-controller + x-contentType: application/json + x-accepts: '*/*' + /api/logout: + post: + operationId: logout + responses: + "200": + content: + '*/*': + schema: + type: object + description: OK + tags: + - logout-resource + x-accepts: '*/*' + /api/infos: + get: + operationId: getAllInfos + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Info' + type: array + description: OK + tags: + - info-resource + x-accepts: '*/*' + post: + operationId: createInfo + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Info' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Info' + description: OK + tags: + - info-resource + x-contentType: application/json + x-accepts: '*/*' + /api/genome-fragments: + get: + operationId: getAllGenomeFragments + parameters: + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/GenomeFragment' + type: array + description: OK + tags: + - genome-fragment-resource + x-accepts: '*/*' + post: + operationId: createGenomeFragment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GenomeFragment' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GenomeFragment' + description: OK + tags: + - genome-fragment-resource + x-contentType: application/json + x-accepts: '*/*' + /api/genes: + get: + operationId: getAllGenes + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/GeneCriteria' + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Gene' + type: array + description: OK + tags: + - gene-resource + x-accepts: '*/*' + post: + operationId: createGene + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Gene' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Gene' + description: OK + tags: + - gene-resource + x-contentType: application/json + x-accepts: '*/*' + /api/gene-aliases: + get: + operationId: getAllGeneAliases + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/GeneAlias' + type: array + description: OK + tags: + - gene-alias-resource + x-accepts: '*/*' + post: + operationId: createGeneAlias + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GeneAlias' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/GeneAlias' + description: OK + tags: + - gene-alias-resource + x-contentType: application/json + x-accepts: '*/*' + /api/find-transcripts-by-ensembl-ids: + post: + operationId: findTranscriptsByEnsemblIds + parameters: + - explode: true + in: query + name: referenceGenome + required: true + schema: + enum: + - GRCh37 + - GRCh38 + type: string + style: form + requestBody: + content: + application/json: + schema: + items: + type: string + type: array + required: true + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/TranscriptDTO' + type: array + description: OK + tags: + - transcript-controller + x-contentType: application/json + x-accepts: '*/*' + /api/find-genes: + get: + operationId: findGeneBySymbol + parameters: + - explode: true + in: query + name: symbol + required: true + schema: + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Gene' + description: OK + tags: + - gene-controller + x-accepts: '*/*' + post: + operationId: findGenesBySymbols + requestBody: + content: + application/json: + schema: + items: + type: string + type: array + required: true + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Gene' + type: array + uniqueItems: true + description: OK + tags: + - gene-controller + x-contentType: application/json + x-accepts: '*/*' + /api/find-canonical-sequences: + get: + operationId: findCanonicalSequence + parameters: + - explode: true + in: query + name: referenceGenome + required: true + schema: + enum: + - GRCh37 + - GRCh38 + type: string + style: form + - explode: true + in: query + name: entrezGeneId + required: true + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: sequenceType + required: false + schema: + default: PROTEIN + enum: + - PROTEIN + - CDNA + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Sequence' + description: OK + tags: + - sequence-controller + x-accepts: '*/*' + post: + operationId: findCanonicalSequences + parameters: + - explode: true + in: query + name: referenceGenome + required: true + schema: + enum: + - GRCh37 + - GRCh38 + type: string + style: form + - explode: true + in: query + name: sequenceType + required: false + schema: + default: PROTEIN + enum: + - PROTEIN + - CDNA + type: string + style: form + requestBody: + content: + application/json: + schema: + items: + format: int32 + type: integer + type: array + required: true + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Sequence' + type: array + description: OK + tags: + - sequence-controller + x-contentType: application/json + x-accepts: '*/*' + /api/fda-submissions: + get: + operationId: getAllFdaSubmissions + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/FdaSubmissionCriteria' + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/FdaSubmission' + type: array + description: OK + tags: + - fda-submission-resource + x-accepts: '*/*' + post: + operationId: createFdaSubmission + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaSubmission' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmission' + description: OK + tags: + - fda-submission-resource + x-contentType: application/json + x-accepts: '*/*' + /api/fda-submission-types: + get: + operationId: getAllFdaSubmissionTypes + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/FdaSubmissionType' + type: array + description: OK + tags: + - fda-submission-type-resource + x-accepts: '*/*' + post: + operationId: createFdaSubmissionType + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaSubmissionType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmissionType' + description: OK + tags: + - fda-submission-type-resource + x-contentType: application/json + x-accepts: '*/*' + /api/fda-drugs: + get: + operationId: getAllFdaDrugs + parameters: + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + - explode: true + in: query + name: filter + required: false + schema: + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/FdaDrug' + type: array + description: OK + tags: + - fda-drug-resource + x-accepts: '*/*' + post: + operationId: createFdaDrug + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FdaDrug' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaDrug' + description: OK + tags: + - fda-drug-resource + x-contentType: application/json + x-accepts: '*/*' + /api/ensembl-genes: + get: + operationId: getAllEnsemblGenes + parameters: + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/EnsemblGene' + type: array + description: OK + tags: + - ensembl-gene-resource + x-accepts: '*/*' + post: + operationId: createEnsemblGene + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EnsemblGene' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/EnsemblGene' + description: OK + tags: + - ensembl-gene-resource + x-contentType: application/json + x-accepts: '*/*' + /api/drugs: + get: + operationId: getAllDrugs + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/DrugCriteria' + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Drug' + type: array + description: OK + tags: + - drug-resource + x-accepts: '*/*' + post: + operationId: createDrug + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Drug' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Drug' + description: OK + tags: + - drug-resource + x-contentType: application/json + x-accepts: '*/*' + /api/drug-synonyms: + get: + operationId: getAllDrugSynonyms + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/DrugSynonym' + type: array + description: OK + tags: + - drug-synonym-resource + x-accepts: '*/*' + post: + operationId: createDrugSynonym + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DrugSynonym' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugSynonym' + description: OK + tags: + - drug-synonym-resource + x-contentType: application/json + x-accepts: '*/*' + /api/drug-brands: + get: + operationId: getAllDrugBrands + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/DrugBrand' + type: array + description: OK + tags: + - drug-brand-resource + x-accepts: '*/*' + post: + operationId: createDrugBrand + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DrugBrand' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/DrugBrand' + description: OK + tags: + - drug-brand-resource + x-contentType: application/json + x-accepts: '*/*' + /api/consequences: + get: + operationId: getAllConsequences + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Consequence' + type: array + description: OK + tags: + - consequence-resource + x-accepts: '*/*' + post: + operationId: createConsequence + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Consequence' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Consequence' + description: OK + tags: + - consequence-resource + x-contentType: application/json + x-accepts: '*/*' + /api/compare-transcript/{hugoSymbol}: + post: + operationId: compareTranscript + parameters: + - explode: false + in: path + name: hugoSymbol + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TranscriptComparisonVM' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/TranscriptComparisonResultVM' + description: OK + tags: + - transcript-controller + x-contentType: application/json + x-accepts: '*/*' + /api/companion-diagnostic-devices: + get: + operationId: getAllCompanionDiagnosticDevices + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/CompanionDiagnosticDeviceCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + type: array + description: OK + tags: + - companion-diagnostic-device-resource + x-accepts: '*/*' + post: + operationId: createCompanionDiagnosticDevice + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + description: OK + tags: + - companion-diagnostic-device-resource + x-contentType: application/json + x-accepts: '*/*' + /api/clinical-trials-gov-conditions: + get: + operationId: getAllClinicalTrialsGovConditions + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/ClinicalTrialsGovConditionCriteria' + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + type: array + description: OK + tags: + - clinical-trials-gov-condition-resource + x-accepts: '*/*' + post: + operationId: createClinicalTrialsGovCondition + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + description: OK + tags: + - clinical-trials-gov-condition-resource + x-contentType: application/json + x-accepts: '*/*' + /api/categorical-alterations: + get: + operationId: getAllCategoricalAlterations + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/CategoricalAlteration' + type: array + description: OK + tags: + - categorical-alteration-resource + x-accepts: '*/*' + post: + operationId: createCategoricalAlteration + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CategoricalAlteration' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CategoricalAlteration' + description: OK + tags: + - categorical-alteration-resource + x-contentType: application/json + x-accepts: '*/*' + /api/cancer-types: + get: + operationId: getAllCancerTypes + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/CancerTypeCriteria' + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/CancerType' + type: array + description: OK + tags: + - cancer-type-resource + x-accepts: '*/*' + post: + operationId: createCancerType + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CancerType' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/CancerType' + description: OK + tags: + - cancer-type-resource + x-contentType: application/json + x-accepts: '*/*' + /api/biomarker-associations: + get: + operationId: getAllBiomarkerAssociations + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/BiomarkerAssociation' + type: array + description: OK + tags: + - biomarker-association-resource + x-accepts: '*/*' + post: + operationId: createBiomarkerAssociation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BiomarkerAssociationDTO' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/BiomarkerAssociation' + description: OK + tags: + - biomarker-association-resource + x-contentType: application/json + x-accepts: '*/*' + /api/articles: + get: + operationId: getAllArticles + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/ArticleCriteria' + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Article' + type: array + description: OK + tags: + - article-resource + x-accepts: '*/*' + post: + operationId: createArticle + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Article' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Article' + description: OK + tags: + - article-resource + x-contentType: application/json + x-accepts: '*/*' + /api/annotate-alteration: + post: + operationId: annotateAlteration + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Alteration' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Alteration' + description: OK + tags: + - alteration-controller + x-contentType: application/json + x-accepts: '*/*' + /api/alterations: + get: + operationId: getAllAlterations + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/AlterationCriteria' + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Alteration' + type: array + description: OK + tags: + - alteration-resource + x-accepts: '*/*' + post: + operationId: createAlteration + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Alteration' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Alteration' + description: OK + tags: + - alteration-resource + x-contentType: application/json + x-accepts: '*/*' + /api/admin/users: + get: + operationId: getAllUsers + parameters: + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/UserDTO' + type: array + description: OK + tags: + - user-resource + x-accepts: '*/*' + post: + operationId: createUser + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserDTO' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/User' + description: OK + tags: + - user-resource + x-contentType: application/json + x-accepts: '*/*' + /api/add-transcript: + post: + operationId: addTranscript + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddTranscriptBody' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/TranscriptDTO' + description: OK + tags: + - transcript-controller + x-contentType: application/json + x-accepts: '*/*' + /api/add-ensembl-gene: + post: + operationId: addEnsemblGene + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AddEnsemblGeneBody' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/EnsemblGene' + description: OK + tags: + - ensembl-gene-controller + x-contentType: application/json + x-accepts: '*/*' + /api/suggest-variant/{hugoSymbol}: + get: + operationId: suggestVariant + parameters: + - explode: false + in: path + name: hugoSymbol + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: proteinPosition + required: true + schema: + format: int32 + type: integer + style: form + - explode: true + in: query + name: curatedResidue + required: true + schema: + type: string + style: form + - explode: true + in: query + name: grch37Transcript + required: true + schema: + type: string + style: form + - explode: true + in: query + name: grch38Transcript + required: true + schema: + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/AllReferenceTranscriptSuggestionVM' + description: OK + tags: + - transcript-controller + x-accepts: '*/*' + /api/genes/count: + get: + operationId: countGenes + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/GeneCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - gene-resource + x-accepts: '*/*' + /api/fda-submissions/lookup: + get: + operationId: getFdaSubmissionByNumber + parameters: + - explode: true + in: query + name: number + required: true + schema: + type: string + style: form + - explode: true + in: query + name: supplementNumber + required: false + schema: + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/FdaSubmission' + description: OK + tags: + - fda-submission-resource + x-accepts: '*/*' + /api/fda-submissions/count: + get: + operationId: countFdaSubmissions + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/FdaSubmissionCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - fda-submission-resource + x-accepts: '*/*' + /api/fda-submissions/companion-diagnostic-device/{id}: + get: + operationId: findFdaSubmissionsByCompanionDiagnosticDevice + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/FdaSubmission' + type: array + description: OK + tags: + - fda-submission-resource + x-accepts: '*/*' + /api/drugs/search: + get: + operationId: findDrugs + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Drug' + type: array + description: OK + tags: + - drug-controller + x-accepts: '*/*' + /api/drugs/search-by-code/{code}: + get: + operationId: findDrugByCode + parameters: + - explode: false + in: path + name: code + required: true + schema: + type: string + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/Drug' + description: OK + tags: + - drug-controller + x-accepts: '*/*' + /api/drugs/count: + get: + operationId: countDrugs + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/DrugCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - drug-resource + x-accepts: '*/*' + /api/companion-diagnostic-devices/count: + get: + operationId: countCompanionDiagnosticDevices + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/CompanionDiagnosticDeviceCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - companion-diagnostic-device-resource + x-accepts: '*/*' + /api/clinical-trials-gov-conditions/count: + get: + operationId: countClinicalTrialsGovConditions + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/ClinicalTrialsGovConditionCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - clinical-trials-gov-condition-resource + x-accepts: '*/*' + /api/cancer-types/count: + get: + operationId: countCancerTypes + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/CancerTypeCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - cancer-type-resource + x-accepts: '*/*' + /api/biomarker-associations/companion-diagnostic-device/{id}: + get: + operationId: getBiomarkerAssociationByCompanionDiagnosticDevice + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/BiomarkerAssociation' + type: array + description: OK + tags: + - biomarker-association-resource + x-accepts: '*/*' + /api/authenticate: + get: + operationId: isAuthenticated + responses: + "200": + content: + '*/*': + schema: + type: string + description: OK + tags: + - account-resource + x-accepts: '*/*' + /api/auth-info: + get: + operationId: getAuthInfo + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/AuthInfoVM' + description: OK + tags: + - auth-info-resource + x-accepts: '*/*' + /api/articles/count: + get: + operationId: countArticles + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/ArticleCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - article-resource + x-accepts: '*/*' + /api/alterations/gene/{id}: + get: + operationId: findByGeneId + parameters: + - explode: false + in: path + name: id + required: true + schema: + format: int64 + type: integer + style: simple + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Alteration' + type: array + description: OK + tags: + - alteration-resource + x-accepts: '*/*' + /api/alterations/count: + get: + operationId: countAlterations + parameters: + - explode: true + in: query + name: criteria + required: true + schema: + $ref: '#/components/schemas/AlterationCriteria' + style: form + responses: + "200": + content: + '*/*': + schema: + format: int64 + type: integer + description: OK + tags: + - alteration-resource + x-accepts: '*/*' + /api/admin/users/{login}: + delete: + operationId: deleteUser + parameters: + - explode: false + in: path + name: login + required: true + schema: + pattern: ^(?>[a-zA-Z0-9!$&*+=?^_`{|}~.-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*)|(?>[_.@A-Za-z0-9-]+)$ + type: string + style: simple + responses: + "200": + description: OK + tags: + - user-resource + x-accepts: application/json + get: + operationId: getUser + parameters: + - explode: false + in: path + name: login + required: true + schema: + pattern: ^(?>[a-zA-Z0-9!$&*+=?^_`{|}~.-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*)|(?>[_.@A-Za-z0-9-]+)$ + type: string + style: simple + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/UserDTO' + description: OK + tags: + - user-resource + x-accepts: '*/*' + /api/account: + get: + operationId: getAccount + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/UserDTO' + description: OK + tags: + - account-resource + x-accepts: '*/*' + /api/account/firebase-token: + get: + operationId: getFirebaseToken + responses: + "200": + content: + '*/*': + schema: + type: string + description: OK + tags: + - account-resource + x-accepts: '*/*' + /api/_search/genes: + get: + operationId: searchGenes + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Gene' + type: array + description: OK + tags: + - gene-resource + x-accepts: '*/*' + /api/_search/fda-submissions: + get: + operationId: searchFdaSubmissions + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/FdaSubmission' + type: array + description: OK + tags: + - fda-submission-resource + x-accepts: '*/*' + /api/_search/drugs: + get: + operationId: searchDrugs + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Drug' + type: array + description: OK + tags: + - drug-resource + x-accepts: '*/*' + /api/_search/companion-diagnostic-devices: + get: + operationId: searchCompanionDiagnosticDevices + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + type: array + description: OK + tags: + - companion-diagnostic-device-resource + x-accepts: '*/*' + /api/_search/clinical-trials-gov-conditions: + get: + operationId: searchClinicalTrialsGovConditions + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/ClinicalTrialsGovCondition' + type: array + description: OK + tags: + - clinical-trials-gov-condition-resource + x-accepts: '*/*' + /api/_search/cancer-types: + get: + operationId: searchCancerTypes + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/CancerType' + type: array + description: OK + tags: + - cancer-type-resource + x-accepts: '*/*' + /api/_search/articles: + get: + operationId: searchArticles + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Article' + type: array + description: OK + tags: + - article-resource + x-accepts: '*/*' + /api/_search/alterations: + get: + operationId: searchAlterations + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + - explode: true + in: query + name: pageable + required: true + schema: + $ref: '#/components/schemas/Pageable' + style: form + responses: + "200": + content: + '*/*': + schema: + items: + $ref: '#/components/schemas/Alteration' + type: array + description: OK + tags: + - alteration-resource + x-accepts: '*/*' + /api/_search/all: + get: + operationId: search + parameters: + - explode: true + in: query + name: query + required: true + schema: + type: string + style: form + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/SearchResultDTO' + description: OK + tags: + - search-controller + x-accepts: '*/*' +components: + schemas: + EnsemblGene: + example: + ensemblGeneId: ensemblGeneId + strand: 5 + transcripts: + - ensemblProteinId: ensemblProteinId + ensemblTranscriptId: ensemblTranscriptId + description: description + fragments: + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + id: 2 + canonical: true + referenceSequenceId: referenceSequenceId + sequences: + - sequence: sequence + id: 4 + sequenceType: PROTEIN + - sequence: sequence + id: 4 + sequenceType: PROTEIN + - ensemblProteinId: ensemblProteinId + ensemblTranscriptId: ensemblTranscriptId + description: description + fragments: + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + id: 2 + canonical: true + referenceSequenceId: referenceSequenceId + sequences: + - sequence: sequence + id: 4 + sequenceType: PROTEIN + - sequence: sequence + id: 4 + sequenceType: PROTEIN + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + chromosome: chromosome + start: 1 + end: 5 + id: 6 + canonical: true + referenceGenome: GRCh37 + properties: + id: + format: int64 + type: integer + referenceGenome: + enum: + - GRCh37 + - GRCh38 + type: string + ensemblGeneId: + type: string + canonical: + type: boolean + chromosome: + type: string + start: + format: int32 + type: integer + end: + format: int32 + type: integer + strand: + format: int32 + type: integer + transcripts: + items: + $ref: '#/components/schemas/Transcript' + type: array + uniqueItems: true + gene: + $ref: '#/components/schemas/Gene' + required: + - canonical + - chromosome + - end + - ensemblGeneId + - start + - strand + type: object + Gene: + example: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + properties: + id: + format: int64 + type: integer + entrezGeneId: + format: int32 + type: integer + hugoSymbol: + type: string + type: object + GenomeFragment: + example: + strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + properties: + id: + format: int64 + type: integer + chromosome: + type: string + start: + format: int32 + type: integer + end: + format: int32 + type: integer + strand: + format: int32 + type: integer + type: + enum: + - GENE + - EXON + - FIVE_PRIME_UTR + - THREE_PRIME_UTR + type: string + transcript: + $ref: '#/components/schemas/Transcript' + type: object + Sequence: + example: + sequence: sequence + id: 4 + sequenceType: PROTEIN + properties: + id: + format: int64 + type: integer + sequenceType: + enum: + - PROTEIN + - CDNA + type: string + sequence: + type: string + transcript: + $ref: '#/components/schemas/Transcript' + type: object + Transcript: + example: + ensemblProteinId: ensemblProteinId + ensemblTranscriptId: ensemblTranscriptId + description: description + fragments: + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + id: 2 + canonical: true + referenceSequenceId: referenceSequenceId + sequences: + - sequence: sequence + id: 4 + sequenceType: PROTEIN + - sequence: sequence + id: 4 + sequenceType: PROTEIN + properties: + id: + format: int64 + type: integer + ensemblTranscriptId: + type: string + canonical: + type: boolean + ensemblProteinId: + type: string + referenceSequenceId: + type: string + description: + type: string + fragments: + items: + $ref: '#/components/schemas/GenomeFragment' + type: array + uniqueItems: true + sequences: + items: + $ref: '#/components/schemas/Sequence' + type: array + uniqueItems: true + ensemblGene: + $ref: '#/components/schemas/EnsemblGene' + required: + - canonical + type: object + TranscriptDTO: + example: + ensemblProteinId: ensemblProteinId + ensemblTranscriptId: ensemblTranscriptId + ensemblGene: + ensemblGeneId: ensemblGeneId + strand: 5 + transcripts: + - ensemblProteinId: ensemblProteinId + ensemblTranscriptId: ensemblTranscriptId + description: description + fragments: + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + id: 2 + canonical: true + referenceSequenceId: referenceSequenceId + sequences: + - sequence: sequence + id: 4 + sequenceType: PROTEIN + - sequence: sequence + id: 4 + sequenceType: PROTEIN + - ensemblProteinId: ensemblProteinId + ensemblTranscriptId: ensemblTranscriptId + description: description + fragments: + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + id: 2 + canonical: true + referenceSequenceId: referenceSequenceId + sequences: + - sequence: sequence + id: 4 + sequenceType: PROTEIN + - sequence: sequence + id: 4 + sequenceType: PROTEIN + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + chromosome: chromosome + start: 1 + end: 5 + id: 6 + canonical: true + referenceGenome: GRCh37 + exons: + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + chromosome: chromosome + start: 1 + description: description + canonical: true + strand: 1 + utrs: + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + - strand: 2 + chromosome: chromosome + start: 9 + end: 3 + id: 7 + type: GENE + end: 6 + id: 0 + referenceSequenceId: referenceSequenceId + properties: + id: + format: int64 + type: integer + ensemblTranscriptId: + type: string + canonical: + type: boolean + ensemblProteinId: + type: string + referenceSequenceId: + type: string + description: + type: string + ensemblGene: + $ref: '#/components/schemas/EnsemblGene' + strand: + format: int32 + type: integer + chromosome: + type: string + start: + format: int32 + type: integer + end: + format: int32 + type: integer + exons: + items: + $ref: '#/components/schemas/GenomeFragment' + type: array + utrs: + items: + $ref: '#/components/schemas/GenomeFragment' + type: array + required: + - canonical + type: object + Alteration: + example: + consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + properties: + id: + format: int64 + type: integer + name: + type: string + alteration: + type: string + proteinStart: + format: int32 + type: integer + proteinEnd: + format: int32 + type: integer + refResidues: + type: string + variantResidues: + type: string + referenceGenomes: + items: + $ref: '#/components/schemas/AlterationReferenceGenome' + type: array + uniqueItems: true + genes: + items: + $ref: '#/components/schemas/Gene' + type: array + uniqueItems: true + consequence: + $ref: '#/components/schemas/Consequence' + biomarkerAssociations: + items: + $ref: '#/components/schemas/BiomarkerAssociation' + type: array + uniqueItems: true + required: + - alteration + - name + type: object + AlterationReferenceGenome: + example: + id: 3 + referenceGenome: GRCh37 + properties: + id: + format: int64 + type: integer + referenceGenome: + enum: + - GRCh37 + - GRCh38 + type: string + alteration: + $ref: '#/components/schemas/Alteration' + type: object + BiomarkerAssociation: + example: + fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + properties: + id: + format: int64 + type: integer + alterations: + items: + $ref: '#/components/schemas/Alteration' + type: array + uniqueItems: true + drugs: + items: + $ref: '#/components/schemas/Drug' + type: array + uniqueItems: true + fdaSubmissions: + items: + $ref: '#/components/schemas/FdaSubmission' + type: array + uniqueItems: true + cancerType: + $ref: '#/components/schemas/CancerType' + gene: + $ref: '#/components/schemas/Gene' + type: object + CancerType: + example: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + properties: + id: + format: int64 + type: integer + code: + type: string + color: + type: string + level: + format: int32 + type: integer + mainType: + type: string + subtype: + type: string + tissue: + type: string + tumorForm: + enum: + - SOLID + - LIQUID + - MIXED + type: string + required: + - level + - mainType + - tumorForm + type: object + CompanionDiagnosticDevice: + example: + fdaSubmissions: + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + indicationDetails: indicationDetails + name: name + id: 6 + specimenTypes: + - null + - null + manufacturer: manufacturer + properties: + id: + format: int64 + type: integer + name: + type: string + manufacturer: + type: string + indicationDetails: + type: string + fdaSubmissions: + items: + $ref: '#/components/schemas/FdaSubmission' + type: array + uniqueItems: true + specimenTypes: + items: + $ref: '#/components/schemas/SpecimenType' + type: array + uniqueItems: true + required: + - manufacturer + - name + type: object + Consequence: + example: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + properties: + id: + format: int64 + type: integer + type: + enum: + - MUTATION + - COPY_NUMBER_ALTERATION + - STRUCTURAL_VARIANT + - UNKNOWN + - NA + type: string + term: + type: string + name: + type: string + isGenerallyTruncating: + type: boolean + description: + type: string + required: + - isGenerallyTruncating + - name + - term + - type + type: object + Drug: + example: + code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + properties: + id: + format: int64 + type: integer + name: + type: string + code: + type: string + semanticType: + type: string + fdaDrug: + $ref: '#/components/schemas/FdaDrug' + synonyms: + items: + $ref: '#/components/schemas/DrugSynonym' + type: array + uniqueItems: true + brands: + items: + $ref: '#/components/schemas/DrugBrand' + type: array + uniqueItems: true + biomarkerAssociations: + items: + $ref: '#/components/schemas/BiomarkerAssociation' + type: array + uniqueItems: true + type: object + DrugBrand: + example: + name: name + id: 1 + region: US + properties: + id: + format: int64 + type: integer + name: + type: string + region: + enum: + - US + - EU + type: string + drug: + $ref: '#/components/schemas/Drug' + type: object + DrugSynonym: + example: + name: name + id: 1 + properties: + id: + format: int64 + type: integer + name: + type: string + drug: + $ref: '#/components/schemas/Drug' + type: object + FdaDrug: + example: + applicationNumber: applicationNumber + id: 7 + properties: + id: + format: int64 + type: integer + applicationNumber: + type: string + required: + - applicationNumber + type: object + FdaSubmission: + example: + genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + properties: + id: + format: int64 + type: integer + number: + type: string + supplementNumber: + type: string + deviceName: + type: string + genericName: + type: string + dateReceived: + format: date-time + type: string + decisionDate: + format: date-time + type: string + description: + type: string + platform: + type: string + curated: + type: boolean + genetic: + type: boolean + additionalInfo: + type: string + companionDiagnosticDevice: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + type: + $ref: '#/components/schemas/FdaSubmissionType' + biomarkerAssociations: + items: + $ref: '#/components/schemas/BiomarkerAssociation' + type: array + uniqueItems: true + required: + - curated + - deviceName + - genetic + - number + type: object + FdaSubmissionType: + example: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + properties: + id: + format: int64 + type: integer + type: + enum: + - PMA + - DE_NOVO + - HDE + - PMN + type: string + name: + type: string + shortName: + type: string + description: + type: string + required: + - name + - type + type: object + GeneAlias: + example: + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + id: 0 + properties: + id: + format: int64 + type: integer + name: + type: string + gene: + $ref: '#/components/schemas/Gene' + type: object + SpecimenType: + example: + companionDiagnosticDevices: + - fdaSubmissions: + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + indicationDetails: indicationDetails + name: name + id: 6 + specimenTypes: + - null + - null + manufacturer: manufacturer + - fdaSubmissions: + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + indicationDetails: indicationDetails + name: name + id: 6 + specimenTypes: + - null + - null + manufacturer: manufacturer + name: name + id: 0 + type: type + properties: + id: + format: int64 + type: integer + type: + type: string + name: + type: string + companionDiagnosticDevices: + items: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + type: array + uniqueItems: true + required: + - name + - type + type: object + Info: + example: + lastUpdated: 2000-01-23T04:56:07.000+00:00 + id: 0 + type: NCIT_VERSION + value: value + properties: + id: + format: int64 + type: integer + type: + enum: + - NCIT_VERSION + - GENE_LAST_UPDATED + type: string + value: + type: string + lastUpdated: + format: date-time + type: string + required: + - type + type: object + ClinicalTrialsGovCondition: + example: + name: name + id: 0 + cancerTypes: + - code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + properties: + id: + format: int64 + type: integer + name: + type: string + cancerTypes: + items: + $ref: '#/components/schemas/CancerType' + type: array + uniqueItems: true + required: + - name + type: object + CategoricalAlteration: + example: + name: name + id: 0 + alterationType: MUTATION + type: ONCOGENIC_MUTATIONS + properties: + id: + format: int64 + type: integer + name: + type: string + type: + enum: + - ONCOGENIC_MUTATIONS + - GAIN_OF_FUNCTION_MUTATIONS + - LOSS_OF_FUNCTION_MUTATIONS + - SWITCH_OF_FUNCTION_MUTATIONS + - VUS + - TRUNCATING_MUTATIONS + - FUSIONS + - AMPLIFICATION + - DELETION + - PROMOTER + - WILDTYPE + type: string + alterationType: + enum: + - MUTATION + - COPY_NUMBER_ALTERATION + - STRUCTURAL_VARIANT + - UNKNOWN + - NA + type: string + required: + - alterationType + - name + - type + type: object + Article: + example: + volume: volume + journal: journal + pages: pages + issue: issue + id: 0 + pmid: pmid + title: title + pubDate: pubDate + authors: authors + properties: + id: + format: int64 + type: integer + pmid: + type: string + title: + type: string + journal: + type: string + pubDate: + type: string + volume: + type: string + issue: + type: string + pages: + type: string + authors: + type: string + type: object + UserDTO: + example: + lastName: lastName + lastModifiedDate: 2000-01-23T04:56:07.000+00:00 + lastModifiedBy: lastModifiedBy + login: login + authorities: + - authorities + - authorities + firstName: firstName + createdDate: 2000-01-23T04:56:07.000+00:00 + langKey: langKey + createdBy: createdBy + imageUrl: imageUrl + id: 0 + email: email + activated: true + properties: + id: + format: int64 + type: integer + login: + maxLength: 50 + minLength: 1 + pattern: ^(?>[a-zA-Z0-9!$&*+=?^_`{|}~.-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*)|(?>[_.@A-Za-z0-9-]+)$ + type: string + firstName: + maxLength: 50 + minLength: 0 + type: string + lastName: + maxLength: 50 + minLength: 0 + type: string + email: + maxLength: 254 + minLength: 5 + type: string + imageUrl: + maxLength: 256 + minLength: 0 + type: string + activated: + type: boolean + langKey: + maxLength: 10 + minLength: 2 + type: string + createdBy: + type: string + createdDate: + format: date-time + type: string + lastModifiedBy: + type: string + lastModifiedDate: + format: date-time + type: string + authorities: + items: + type: string + type: array + uniqueItems: true + required: + - login + type: object + MatchTranscriptVM: + example: + targetReferenceGenome: GRCh37 + transcript: + transcript: transcript + referenceGenome: GRCh37 + properties: + transcript: + $ref: '#/components/schemas/TranscriptPairVM' + targetReferenceGenome: + enum: + - GRCh37 + - GRCh38 + type: string + type: object + TranscriptPairVM: + example: + transcript: transcript + referenceGenome: GRCh37 + properties: + referenceGenome: + enum: + - GRCh37 + - GRCh38 + type: string + transcript: + type: string + type: object + EnsemblTranscript: + example: + proteinLength: 0 + refseqMrnaId: refseqMrnaId + proteinId: proteinId + pfamDomains: + - pfamDomainStart: 6 + pfamDomainEnd: 1 + pfamDomainId: pfamDomainId + - pfamDomainStart: 6 + pfamDomainEnd: 1 + pfamDomainId: pfamDomainId + hugoSymbols: + - hugoSymbols + - hugoSymbols + geneId: geneId + exons: + - exonEnd: 5 + strand: 7 + exonId: exonId + rank: 2 + exonStart: 5 + version: 9 + - exonEnd: 5 + strand: 7 + exonId: exonId + rank: 2 + exonStart: 5 + version: 9 + utrs: + - strand: 4 + start: 3 + end: 2 + type: type + - strand: 4 + start: 3 + end: 2 + type: type + transcriptId: transcriptId + ccdsId: ccdsId + properties: + transcriptId: + type: string + geneId: + type: string + proteinId: + type: string + proteinLength: + format: int32 + type: integer + pfamDomains: + items: + $ref: '#/components/schemas/PfamDomainRange' + type: array + hugoSymbols: + items: + type: string + type: array + refseqMrnaId: + type: string + ccdsId: + type: string + exons: + items: + $ref: '#/components/schemas/Exon' + type: array + utrs: + items: + $ref: '#/components/schemas/UntranslatedRegion' + type: array + type: object + Exon: + example: + exonEnd: 5 + strand: 7 + exonId: exonId + rank: 2 + exonStart: 5 + version: 9 + properties: + exonId: + type: string + exonStart: + format: int32 + type: integer + exonEnd: + format: int32 + type: integer + rank: + format: int32 + type: integer + strand: + format: int32 + type: integer + version: + format: int32 + type: integer + type: object + PfamDomainRange: + example: + pfamDomainStart: 6 + pfamDomainEnd: 1 + pfamDomainId: pfamDomainId + properties: + pfamDomainId: + type: string + pfamDomainStart: + format: int32 + type: integer + pfamDomainEnd: + format: int32 + type: integer + type: object + TranscriptMatchResultVM: + example: + note: note + targetEnsemblTranscript: + proteinLength: 0 + refseqMrnaId: refseqMrnaId + proteinId: proteinId + pfamDomains: + - pfamDomainStart: 6 + pfamDomainEnd: 1 + pfamDomainId: pfamDomainId + - pfamDomainStart: 6 + pfamDomainEnd: 1 + pfamDomainId: pfamDomainId + hugoSymbols: + - hugoSymbols + - hugoSymbols + geneId: geneId + exons: + - exonEnd: 5 + strand: 7 + exonId: exonId + rank: 2 + exonStart: 5 + version: 9 + - exonEnd: 5 + strand: 7 + exonId: exonId + rank: 2 + exonStart: 5 + version: 9 + utrs: + - strand: 4 + start: 3 + end: 2 + type: type + - strand: 4 + start: 3 + end: 2 + type: type + transcriptId: transcriptId + ccdsId: ccdsId + originalEnsemblTranscript: + proteinLength: 0 + refseqMrnaId: refseqMrnaId + proteinId: proteinId + pfamDomains: + - pfamDomainStart: 6 + pfamDomainEnd: 1 + pfamDomainId: pfamDomainId + - pfamDomainStart: 6 + pfamDomainEnd: 1 + pfamDomainId: pfamDomainId + hugoSymbols: + - hugoSymbols + - hugoSymbols + geneId: geneId + exons: + - exonEnd: 5 + strand: 7 + exonId: exonId + rank: 2 + exonStart: 5 + version: 9 + - exonEnd: 5 + strand: 7 + exonId: exonId + rank: 2 + exonStart: 5 + version: 9 + utrs: + - strand: 4 + start: 3 + end: 2 + type: type + - strand: 4 + start: 3 + end: 2 + type: type + transcriptId: transcriptId + ccdsId: ccdsId + properties: + note: + type: string + originalEnsemblTranscript: + $ref: '#/components/schemas/EnsemblTranscript' + targetEnsemblTranscript: + $ref: '#/components/schemas/EnsemblTranscript' + type: object + UntranslatedRegion: + example: + strand: 4 + start: 3 + end: 2 + type: type + properties: + type: + type: string + start: + format: int32 + type: integer + end: + format: int32 + type: integer + strand: + format: int32 + type: integer + type: object + TranscriptComparisonVM: + example: + transcriptA: + transcript: transcript + referenceGenome: GRCh37 + transcriptB: + transcript: transcript + referenceGenome: GRCh37 + align: true + properties: + align: + type: boolean + transcriptA: + $ref: '#/components/schemas/TranscriptPairVM' + transcriptB: + $ref: '#/components/schemas/TranscriptPairVM' + type: object + TranscriptComparisonResultVM: + example: + match: true + sequenceA: sequenceA + sequenceB: sequenceB + properties: + match: + type: boolean + sequenceA: + type: string + sequenceB: + type: string + type: object + BiomarkerAssociationDTO: + example: + fdaSubmissions: + - 5 + - 5 + drugs: + - 1 + - 1 + gene: 2 + alterations: + - 6 + - 6 + id: 0 + cancerType: 5 + properties: + id: + format: int64 + type: integer + alterations: + items: + format: int64 + type: integer + type: array + uniqueItems: true + drugs: + items: + format: int64 + type: integer + type: array + uniqueItems: true + fdaSubmissions: + items: + format: int64 + type: integer + type: array + uniqueItems: true + cancerType: + format: int64 + type: integer + gene: + format: int64 + type: integer + type: object + User: + example: + firstName: firstName + lastName: lastName + langKey: langKey + imageUrl: imageUrl + id: 0 + login: login + email: email + activated: true + properties: + id: + format: int64 + type: integer + login: + maxLength: 50 + minLength: 1 + pattern: ^(?>[a-zA-Z0-9!$&*+=?^_`{|}~.-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*)|(?>[_.@A-Za-z0-9-]+)$ + type: string + firstName: + maxLength: 50 + minLength: 0 + type: string + lastName: + maxLength: 50 + minLength: 0 + type: string + email: + maxLength: 254 + minLength: 5 + type: string + activated: + type: boolean + langKey: + maxLength: 10 + minLength: 2 + type: string + imageUrl: + maxLength: 256 + minLength: 0 + type: string + required: + - activated + - login + type: object + AddTranscriptBody: + example: + ensemblTranscriptId: ensemblTranscriptId + entrezGeneId: 0 + canonical: true + referenceGenome: referenceGenome + properties: + entrezGeneId: + format: int32 + type: integer + referenceGenome: + type: string + ensemblTranscriptId: + type: string + canonical: + type: boolean + required: + - ensemblTranscriptId + - entrezGeneId + - referenceGenome + type: object + AddEnsemblGeneBody: + example: + ensemblGeneId: ensemblGeneId + entrezGeneId: 0 + canonical: true + referenceGenome: referenceGenome + properties: + referenceGenome: + type: string + entrezGeneId: + format: int32 + type: integer + ensemblGeneId: + type: string + canonical: + type: boolean + required: + - ensemblGeneId + - entrezGeneId + - referenceGenome + type: object + Pageable: + properties: + page: + format: int32 + minimum: 0 + type: integer + size: + format: int32 + minimum: 1 + type: integer + sort: + items: + type: string + type: array + type: object + AllReferenceTranscriptSuggestionVM: + example: + grch37: + note: note + suggestions: + - suggestions + - suggestions + referenceGenome: GRCh37 + grch38: + note: note + suggestions: + - suggestions + - suggestions + referenceGenome: GRCh37 + properties: + grch37: + $ref: '#/components/schemas/TranscriptSuggestionVM' + grch38: + $ref: '#/components/schemas/TranscriptSuggestionVM' + type: object + TranscriptSuggestionVM: + example: + note: note + suggestions: + - suggestions + - suggestions + referenceGenome: GRCh37 + properties: + referenceGenome: + enum: + - GRCh37 + - GRCh38 + type: string + note: + type: string + suggestions: + items: + type: string + type: array + type: object + GeneCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + entrezGeneId: + $ref: '#/components/schemas/IntegerFilter' + hugoSymbol: + $ref: '#/components/schemas/StringFilter' + geneAliasId: + $ref: '#/components/schemas/LongFilter' + ensemblGeneId: + $ref: '#/components/schemas/LongFilter' + alterationId: + $ref: '#/components/schemas/LongFilter' + distinct: + type: boolean + type: object + IntegerFilter: + properties: + equals: + format: int32 + type: integer + notEquals: + format: int32 + type: integer + specified: + type: boolean + in: + items: + format: int32 + type: integer + type: array + notIn: + items: + format: int32 + type: integer + type: array + greaterThan: + format: int32 + type: integer + lessThan: + format: int32 + type: integer + greaterThanOrEqual: + format: int32 + type: integer + lessThanOrEqual: + format: int32 + type: integer + type: object + LongFilter: + properties: + equals: + format: int64 + type: integer + notEquals: + format: int64 + type: integer + specified: + type: boolean + in: + items: + format: int64 + type: integer + type: array + notIn: + items: + format: int64 + type: integer + type: array + greaterThan: + format: int64 + type: integer + lessThan: + format: int64 + type: integer + greaterThanOrEqual: + format: int64 + type: integer + lessThanOrEqual: + format: int64 + type: integer + type: object + StringFilter: + properties: + equals: + type: string + notEquals: + type: string + specified: + type: boolean + in: + items: + type: string + type: array + notIn: + items: + type: string + type: array + contains: + type: string + doesNotContain: + type: string + type: object + BooleanFilter: + properties: + equals: + type: boolean + notEquals: + type: boolean + specified: + type: boolean + in: + items: + type: boolean + type: array + notIn: + items: + type: boolean + type: array + type: object + FdaSubmissionCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + number: + $ref: '#/components/schemas/StringFilter' + supplementNumber: + $ref: '#/components/schemas/StringFilter' + deviceName: + $ref: '#/components/schemas/StringFilter' + genericName: + $ref: '#/components/schemas/StringFilter' + dateReceived: + $ref: '#/components/schemas/InstantFilter' + decisionDate: + $ref: '#/components/schemas/InstantFilter' + curated: + $ref: '#/components/schemas/BooleanFilter' + genetic: + $ref: '#/components/schemas/BooleanFilter' + biomarkerAssociationId: + $ref: '#/components/schemas/LongFilter' + companionDiagnosticDeviceId: + $ref: '#/components/schemas/LongFilter' + typeId: + $ref: '#/components/schemas/LongFilter' + typeName: + $ref: '#/components/schemas/StringFilter' + typeShortName: + $ref: '#/components/schemas/StringFilter' + distinct: + type: boolean + type: object + InstantFilter: + properties: + equals: + format: date-time + type: string + notEquals: + format: date-time + type: string + specified: + type: boolean + in: + items: + format: date-time + type: string + type: array + notIn: + items: + format: date-time + type: string + type: array + greaterThan: + format: date-time + type: string + lessThan: + format: date-time + type: string + greaterThanOrEqual: + format: date-time + type: string + lessThanOrEqual: + format: date-time + type: string + type: object + DrugCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + name: + $ref: '#/components/schemas/StringFilter' + code: + $ref: '#/components/schemas/StringFilter' + synonymsId: + $ref: '#/components/schemas/LongFilter' + biomarkerAssociationId: + $ref: '#/components/schemas/LongFilter' + brandsId: + $ref: '#/components/schemas/LongFilter' + brandsName: + $ref: '#/components/schemas/StringFilter' + distinct: + type: boolean + type: object + CompanionDiagnosticDeviceCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + name: + $ref: '#/components/schemas/StringFilter' + manufacturer: + $ref: '#/components/schemas/StringFilter' + fdaSubmissionId: + $ref: '#/components/schemas/LongFilter' + specimenTypeId: + $ref: '#/components/schemas/LongFilter' + distinct: + type: boolean + type: object + ClinicalTrialsGovConditionCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + name: + $ref: '#/components/schemas/StringFilter' + cancerTypeId: + $ref: '#/components/schemas/LongFilter' + distinct: + type: boolean + type: object + CancerTypeCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + code: + $ref: '#/components/schemas/StringFilter' + color: + $ref: '#/components/schemas/StringFilter' + level: + $ref: '#/components/schemas/IntegerFilter' + mainType: + $ref: '#/components/schemas/StringFilter' + subtype: + $ref: '#/components/schemas/StringFilter' + tissue: + $ref: '#/components/schemas/StringFilter' + tumorForm: + $ref: '#/components/schemas/TumorFormFilter' + childrenId: + $ref: '#/components/schemas/LongFilter' + biomarkerAssociationId: + $ref: '#/components/schemas/LongFilter' + parentId: + $ref: '#/components/schemas/LongFilter' + distinct: + type: boolean + type: object + TumorFormFilter: + properties: + equals: + enum: + - SOLID + - LIQUID + - MIXED + type: string + notEquals: + enum: + - SOLID + - LIQUID + - MIXED + type: string + specified: + type: boolean + in: + items: + enum: + - SOLID + - LIQUID + - MIXED + type: string + type: array + notIn: + items: + enum: + - SOLID + - LIQUID + - MIXED + type: string + type: array + type: object + AuthInfoVM: + example: + clientId: clientId + issuer: issuer + properties: + issuer: + type: string + clientId: + type: string + type: object + ArticleCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + pmid: + $ref: '#/components/schemas/StringFilter' + journal: + $ref: '#/components/schemas/StringFilter' + pubDate: + $ref: '#/components/schemas/StringFilter' + volume: + $ref: '#/components/schemas/StringFilter' + issue: + $ref: '#/components/schemas/StringFilter' + pages: + $ref: '#/components/schemas/StringFilter' + authors: + $ref: '#/components/schemas/StringFilter' + distinct: + type: boolean + type: object + AlterationCriteria: + properties: + id: + $ref: '#/components/schemas/LongFilter' + name: + $ref: '#/components/schemas/StringFilter' + alteration: + $ref: '#/components/schemas/StringFilter' + proteinStart: + $ref: '#/components/schemas/IntegerFilter' + proteinEnd: + $ref: '#/components/schemas/IntegerFilter' + refResidues: + $ref: '#/components/schemas/StringFilter' + variantResidues: + $ref: '#/components/schemas/StringFilter' + biomarkerAssociationId: + $ref: '#/components/schemas/LongFilter' + referenceGenomesId: + $ref: '#/components/schemas/LongFilter' + geneId: + $ref: '#/components/schemas/LongFilter' + consequenceId: + $ref: '#/components/schemas/LongFilter' + distinct: + type: boolean + type: object + SearchResultDTO: + example: + fdaSubmissions: + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + companionDiagnosticDevices: + - fdaSubmissions: + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + indicationDetails: indicationDetails + name: name + id: 6 + specimenTypes: + - null + - null + manufacturer: manufacturer + - fdaSubmissions: + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - genetic: true + genericName: genericName + description: description + type: + name: name + description: description + id: 5 + type: PMA + shortName: shortName + deviceName: deviceName + supplementNumber: supplementNumber + platform: platform + decisionDate: 2000-01-23T04:56:07.000+00:00 + number: number + dateReceived: 2000-01-23T04:56:07.000+00:00 + curated: true + additionalInfo: additionalInfo + id: 1 + biomarkerAssociations: + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + - fdaSubmissions: + - null + - null + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + gene: + entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + id: 5 + cancerType: + code: code + color: color + level: 6 + subtype: subtype + tumorForm: SOLID + tissue: tissue + id: 1 + mainType: mainType + indicationDetails: indicationDetails + name: name + id: 6 + specimenTypes: + - null + - null + manufacturer: manufacturer + drugs: + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + - code: code + brands: + - name: name + id: 1 + region: US + - name: name + id: 1 + region: US + fdaDrug: + applicationNumber: applicationNumber + id: 7 + synonyms: + - name: name + id: 1 + - name: name + id: 1 + semanticType: semanticType + name: name + id: 4 + biomarkerAssociations: + - null + - null + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + alterations: + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + - consequence: + isGenerallyTruncating: true + name: name + description: description + term: term + id: 2 + type: MUTATION + proteinStart: 7 + refResidues: refResidues + genes: + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + - entrezGeneId: 1 + hugoSymbol: hugoSymbol + id: 7 + name: name + alteration: alteration + variantResidues: variantResidues + id: 2 + proteinEnd: 9 + referenceGenomes: + - id: 3 + referenceGenome: GRCh37 + - id: 3 + referenceGenome: GRCh37 + biomarkerAssociations: + - null + - null + articles: + - volume: volume + journal: journal + pages: pages + issue: issue + id: 0 + pmid: pmid + title: title + pubDate: pubDate + authors: authors + - volume: volume + journal: journal + pages: pages + issue: issue + id: 0 + pmid: pmid + title: title + pubDate: pubDate + authors: authors + properties: + fdaSubmissions: + items: + $ref: '#/components/schemas/FdaSubmission' + type: array + companionDiagnosticDevices: + items: + $ref: '#/components/schemas/CompanionDiagnosticDevice' + type: array + articles: + items: + $ref: '#/components/schemas/Article' + type: array + drugs: + items: + $ref: '#/components/schemas/Drug' + type: array + genes: + items: + $ref: '#/components/schemas/Gene' + type: array + alterations: + items: + $ref: '#/components/schemas/Alteration' + type: array + type: object + diff --git a/oncokbTranscriptApiClient/build.gradle b/oncokbCurationApiClient/build.gradle similarity index 97% rename from oncokbTranscriptApiClient/build.gradle rename to oncokbCurationApiClient/build.gradle index ffa47ba..1a53737 100644 --- a/oncokbTranscriptApiClient/build.gradle +++ b/oncokbCurationApiClient/build.gradle @@ -3,8 +3,8 @@ apply plugin: 'eclipse' apply plugin: 'java' apply plugin: 'com.diffplug.spotless' -group = 'org.oncokb.oncokb-transcript.client' -version = '0.0.1-SNAPSHOT' +group = 'org.oncokb.oncokb-curation.client' +version = '1.0.0-SNAPSHOT' buildscript { repositories { @@ -89,7 +89,7 @@ if(hasProperty('target') && target == 'android') { publishing { publications { maven(MavenPublication) { - artifactId = 'oncokbTranscriptApiClient' + artifactId = 'oncokbCurationApiClient' from components.java } } diff --git a/oncokbTranscriptApiClient/build.sbt b/oncokbCurationApiClient/build.sbt similarity index 89% rename from oncokbTranscriptApiClient/build.sbt rename to oncokbCurationApiClient/build.sbt index c38e9a0..9006b64 100644 --- a/oncokbTranscriptApiClient/build.sbt +++ b/oncokbCurationApiClient/build.sbt @@ -1,8 +1,8 @@ lazy val root = (project in file(".")). settings( - organization := "org.oncokb.oncokb-transcript.client", - name := "oncokbTranscriptApiClient", - version := "0.0.1-SNAPSHOT", + organization := "org.oncokb.oncokb-curation.client", + name := "oncokbCurationApiClient", + version := "1.0.0-SNAPSHOT", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/oncokbCurationApiClient/docs/AccountResourceApi.md b/oncokbCurationApiClient/docs/AccountResourceApi.md new file mode 100644 index 0000000..eda4ba1 --- /dev/null +++ b/oncokbCurationApiClient/docs/AccountResourceApi.md @@ -0,0 +1,179 @@ +# AccountResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAccount**](AccountResourceApi.md#getAccount) | **GET** /api/account | +[**getFirebaseToken**](AccountResourceApi.md#getFirebaseToken) | **GET** /api/account/firebase-token | +[**isAuthenticated**](AccountResourceApi.md#isAuthenticated) | **GET** /api/authenticate | + + + +# **getAccount** +> UserDTO getAccount() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AccountResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AccountResourceApi apiInstance = new AccountResourceApi(defaultClient); + try { + UserDTO result = apiInstance.getAccount(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountResourceApi#getAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UserDTO**](UserDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getFirebaseToken** +> String getFirebaseToken() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AccountResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AccountResourceApi apiInstance = new AccountResourceApi(defaultClient); + try { + String result = apiInstance.getFirebaseToken(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountResourceApi#getFirebaseToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**String** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **isAuthenticated** +> String isAuthenticated() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AccountResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AccountResourceApi apiInstance = new AccountResourceApi(defaultClient); + try { + String result = apiInstance.isAuthenticated(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AccountResourceApi#isAuthenticated"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**String** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/AddEnsemblGeneBody.md b/oncokbCurationApiClient/docs/AddEnsemblGeneBody.md similarity index 100% rename from oncokbTranscriptApiClient/docs/AddEnsemblGeneBody.md rename to oncokbCurationApiClient/docs/AddEnsemblGeneBody.md index fcfa0c7..8f91e7c 100644 --- a/oncokbTranscriptApiClient/docs/AddEnsemblGeneBody.md +++ b/oncokbCurationApiClient/docs/AddEnsemblGeneBody.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**canonical** | **Boolean** | | [optional] -**ensemblGeneId** | **String** | | -**entrezGeneId** | **Integer** | | **referenceGenome** | **String** | | +**entrezGeneId** | **Integer** | | +**ensemblGeneId** | **String** | | +**canonical** | **Boolean** | | [optional] ## Implemented Interfaces diff --git a/oncokbTranscriptApiClient/docs/AddTranscriptBody.md b/oncokbCurationApiClient/docs/AddTranscriptBody.md similarity index 100% rename from oncokbTranscriptApiClient/docs/AddTranscriptBody.md rename to oncokbCurationApiClient/docs/AddTranscriptBody.md index 2d5417f..0a48242 100644 --- a/oncokbTranscriptApiClient/docs/AddTranscriptBody.md +++ b/oncokbCurationApiClient/docs/AddTranscriptBody.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**canonical** | **Boolean** | | [optional] -**ensemblTranscriptId** | **String** | | **entrezGeneId** | **Integer** | | **referenceGenome** | **String** | | +**ensemblTranscriptId** | **String** | | +**canonical** | **Boolean** | | [optional] ## Implemented Interfaces diff --git a/oncokbTranscriptApiClient/docs/AllReferenceTranscriptSuggestionVM.md b/oncokbCurationApiClient/docs/AllReferenceTranscriptSuggestionVM.md similarity index 100% rename from oncokbTranscriptApiClient/docs/AllReferenceTranscriptSuggestionVM.md rename to oncokbCurationApiClient/docs/AllReferenceTranscriptSuggestionVM.md diff --git a/oncokbCurationApiClient/docs/Alteration.md b/oncokbCurationApiClient/docs/Alteration.md new file mode 100644 index 0000000..68066ee --- /dev/null +++ b/oncokbCurationApiClient/docs/Alteration.md @@ -0,0 +1,27 @@ + + +# Alteration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | +**alteration** | **String** | | +**proteinStart** | **Integer** | | [optional] +**proteinEnd** | **Integer** | | [optional] +**refResidues** | **String** | | [optional] +**variantResidues** | **String** | | [optional] +**referenceGenomes** | [**Set<AlterationReferenceGenome>**](AlterationReferenceGenome.md) | | [optional] +**genes** | [**Set<Gene>**](Gene.md) | | [optional] +**consequence** | [**Consequence**](Consequence.md) | | [optional] +**biomarkerAssociations** | [**Set<BiomarkerAssociation>**](BiomarkerAssociation.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/AlterationControllerApi.md b/oncokbCurationApiClient/docs/AlterationControllerApi.md new file mode 100644 index 0000000..d4d822c --- /dev/null +++ b/oncokbCurationApiClient/docs/AlterationControllerApi.md @@ -0,0 +1,69 @@ +# AlterationControllerApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**annotateAlteration**](AlterationControllerApi.md#annotateAlteration) | **POST** /api/annotate-alteration | + + + +# **annotateAlteration** +> Alteration annotateAlteration(alteration) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationControllerApi apiInstance = new AlterationControllerApi(defaultClient); + Alteration alteration = new Alteration(); // Alteration | + try { + Alteration result = apiInstance.annotateAlteration(alteration); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationControllerApi#annotateAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **alteration** | [**Alteration**](Alteration.md)| | + +### Return type + +[**Alteration**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/AlterationCriteria.md b/oncokbCurationApiClient/docs/AlterationCriteria.md new file mode 100644 index 0000000..dc9f495 --- /dev/null +++ b/oncokbCurationApiClient/docs/AlterationCriteria.md @@ -0,0 +1,28 @@ + + +# AlterationCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**name** | [**StringFilter**](StringFilter.md) | | [optional] +**alteration** | [**StringFilter**](StringFilter.md) | | [optional] +**proteinStart** | [**IntegerFilter**](IntegerFilter.md) | | [optional] +**proteinEnd** | [**IntegerFilter**](IntegerFilter.md) | | [optional] +**refResidues** | [**StringFilter**](StringFilter.md) | | [optional] +**variantResidues** | [**StringFilter**](StringFilter.md) | | [optional] +**biomarkerAssociationId** | [**LongFilter**](LongFilter.md) | | [optional] +**referenceGenomesId** | [**LongFilter**](LongFilter.md) | | [optional] +**geneId** | [**LongFilter**](LongFilter.md) | | [optional] +**consequenceId** | [**LongFilter**](LongFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/AlterationReferenceGenome.md b/oncokbCurationApiClient/docs/AlterationReferenceGenome.md new file mode 100644 index 0000000..dab3d57 --- /dev/null +++ b/oncokbCurationApiClient/docs/AlterationReferenceGenome.md @@ -0,0 +1,28 @@ + + +# AlterationReferenceGenome + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**referenceGenome** | [**ReferenceGenomeEnum**](#ReferenceGenomeEnum) | | [optional] +**alteration** | [**Alteration**](Alteration.md) | | [optional] + + + +## Enum: ReferenceGenomeEnum + +Name | Value +---- | ----- +GRCH37 | "GRCh37" +GRCH38 | "GRCh38" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/AlterationResourceApi.md b/oncokbCurationApiClient/docs/AlterationResourceApi.md new file mode 100644 index 0000000..6e1e893 --- /dev/null +++ b/oncokbCurationApiClient/docs/AlterationResourceApi.md @@ -0,0 +1,564 @@ +# AlterationResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countAlterations**](AlterationResourceApi.md#countAlterations) | **GET** /api/alterations/count | +[**createAlteration**](AlterationResourceApi.md#createAlteration) | **POST** /api/alterations | +[**deleteAlteration**](AlterationResourceApi.md#deleteAlteration) | **DELETE** /api/alterations/{id} | +[**findByGeneId**](AlterationResourceApi.md#findByGeneId) | **GET** /api/alterations/gene/{id} | +[**getAllAlterations**](AlterationResourceApi.md#getAllAlterations) | **GET** /api/alterations | +[**getAlteration**](AlterationResourceApi.md#getAlteration) | **GET** /api/alterations/{id} | +[**partialUpdateAlteration**](AlterationResourceApi.md#partialUpdateAlteration) | **PATCH** /api/alterations/{id} | +[**searchAlterations**](AlterationResourceApi.md#searchAlterations) | **GET** /api/_search/alterations | +[**updateAlteration**](AlterationResourceApi.md#updateAlteration) | **PUT** /api/alterations/{id} | + + + +# **countAlterations** +> Long countAlterations(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + AlterationCriteria criteria = new AlterationCriteria(); // AlterationCriteria | + try { + Long result = apiInstance.countAlterations(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#countAlterations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**AlterationCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createAlteration** +> Alteration createAlteration(alteration) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + Alteration alteration = new Alteration(); // Alteration | + try { + Alteration result = apiInstance.createAlteration(alteration); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#createAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **alteration** | [**Alteration**](Alteration.md)| | + +### Return type + +[**Alteration**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteAlteration** +> deleteAlteration(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteAlteration(id); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#deleteAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **findByGeneId** +> List<Alteration> findByGeneId(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + List result = apiInstance.findByGeneId(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#findByGeneId"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**List<Alteration>**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllAlterations** +> List<Alteration> getAllAlterations(criteria, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + AlterationCriteria criteria = new AlterationCriteria(); // AlterationCriteria | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllAlterations(criteria, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#getAllAlterations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**AlterationCriteria**](.md)| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Alteration>**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAlteration** +> Alteration getAlteration(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + Alteration result = apiInstance.getAlteration(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#getAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**Alteration**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateAlteration** +> Alteration partialUpdateAlteration(id, alteration) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + Long id = 56L; // Long | + Alteration alteration = new Alteration(); // Alteration | + try { + Alteration result = apiInstance.partialUpdateAlteration(id, alteration); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#partialUpdateAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **alteration** | [**Alteration**](Alteration.md)| | + +### Return type + +[**Alteration**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchAlterations** +> List<Alteration> searchAlterations(query, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + String query = "query_example"; // String | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.searchAlterations(query, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#searchAlterations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Alteration>**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateAlteration** +> Alteration updateAlteration(id, alteration) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AlterationResourceApi apiInstance = new AlterationResourceApi(defaultClient); + Long id = 56L; // Long | + Alteration alteration = new Alteration(); // Alteration | + try { + Alteration result = apiInstance.updateAlteration(id, alteration); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AlterationResourceApi#updateAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **alteration** | [**Alteration**](Alteration.md)| | + +### Return type + +[**Alteration**](Alteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/Article.md b/oncokbCurationApiClient/docs/Article.md new file mode 100644 index 0000000..448f069 --- /dev/null +++ b/oncokbCurationApiClient/docs/Article.md @@ -0,0 +1,25 @@ + + +# Article + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**pmid** | **String** | | [optional] +**title** | **String** | | [optional] +**journal** | **String** | | [optional] +**pubDate** | **String** | | [optional] +**volume** | **String** | | [optional] +**issue** | **String** | | [optional] +**pages** | **String** | | [optional] +**authors** | **String** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/ArticleCriteria.md b/oncokbCurationApiClient/docs/ArticleCriteria.md new file mode 100644 index 0000000..2513ac8 --- /dev/null +++ b/oncokbCurationApiClient/docs/ArticleCriteria.md @@ -0,0 +1,25 @@ + + +# ArticleCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**pmid** | [**StringFilter**](StringFilter.md) | | [optional] +**journal** | [**StringFilter**](StringFilter.md) | | [optional] +**pubDate** | [**StringFilter**](StringFilter.md) | | [optional] +**volume** | [**StringFilter**](StringFilter.md) | | [optional] +**issue** | [**StringFilter**](StringFilter.md) | | [optional] +**pages** | [**StringFilter**](StringFilter.md) | | [optional] +**authors** | [**StringFilter**](StringFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/ArticleResourceApi.md b/oncokbCurationApiClient/docs/ArticleResourceApi.md new file mode 100644 index 0000000..fda6036 --- /dev/null +++ b/oncokbCurationApiClient/docs/ArticleResourceApi.md @@ -0,0 +1,503 @@ +# ArticleResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countArticles**](ArticleResourceApi.md#countArticles) | **GET** /api/articles/count | +[**createArticle**](ArticleResourceApi.md#createArticle) | **POST** /api/articles | +[**deleteArticle**](ArticleResourceApi.md#deleteArticle) | **DELETE** /api/articles/{id} | +[**getAllArticles**](ArticleResourceApi.md#getAllArticles) | **GET** /api/articles | +[**getArticle**](ArticleResourceApi.md#getArticle) | **GET** /api/articles/{id} | +[**partialUpdateArticle**](ArticleResourceApi.md#partialUpdateArticle) | **PATCH** /api/articles/{id} | +[**searchArticles**](ArticleResourceApi.md#searchArticles) | **GET** /api/_search/articles | +[**updateArticle**](ArticleResourceApi.md#updateArticle) | **PUT** /api/articles/{id} | + + + +# **countArticles** +> Long countArticles(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + ArticleCriteria criteria = new ArticleCriteria(); // ArticleCriteria | + try { + Long result = apiInstance.countArticles(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#countArticles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**ArticleCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createArticle** +> Article createArticle(article) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + Article article = new Article(); // Article | + try { + Article result = apiInstance.createArticle(article); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#createArticle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **article** | [**Article**](Article.md)| | + +### Return type + +[**Article**](Article.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteArticle** +> deleteArticle(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteArticle(id); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#deleteArticle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllArticles** +> List<Article> getAllArticles(criteria, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + ArticleCriteria criteria = new ArticleCriteria(); // ArticleCriteria | + Pageable pageable = new Pageable(); // Pageable | + try { + List
result = apiInstance.getAllArticles(criteria, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#getAllArticles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**ArticleCriteria**](.md)| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Article>**](Article.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getArticle** +> Article getArticle(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + Long id = 56L; // Long | + try { + Article result = apiInstance.getArticle(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#getArticle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**Article**](Article.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateArticle** +> Article partialUpdateArticle(id, article) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + Long id = 56L; // Long | + Article article = new Article(); // Article | + try { + Article result = apiInstance.partialUpdateArticle(id, article); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#partialUpdateArticle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **article** | [**Article**](Article.md)| | + +### Return type + +[**Article**](Article.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchArticles** +> List<Article> searchArticles(query, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + String query = "query_example"; // String | + Pageable pageable = new Pageable(); // Pageable | + try { + List
result = apiInstance.searchArticles(query, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#searchArticles"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Article>**](Article.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateArticle** +> Article updateArticle(id, article) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ArticleResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ArticleResourceApi apiInstance = new ArticleResourceApi(defaultClient); + Long id = 56L; // Long | + Article article = new Article(); // Article | + try { + Article result = apiInstance.updateArticle(id, article); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArticleResourceApi#updateArticle"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **article** | [**Article**](Article.md)| | + +### Return type + +[**Article**](Article.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/AuthInfoResourceApi.md b/oncokbCurationApiClient/docs/AuthInfoResourceApi.md new file mode 100644 index 0000000..c7229e0 --- /dev/null +++ b/oncokbCurationApiClient/docs/AuthInfoResourceApi.md @@ -0,0 +1,65 @@ +# AuthInfoResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getAuthInfo**](AuthInfoResourceApi.md#getAuthInfo) | **GET** /api/auth-info | + + + +# **getAuthInfo** +> AuthInfoVM getAuthInfo() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.AuthInfoResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + AuthInfoResourceApi apiInstance = new AuthInfoResourceApi(defaultClient); + try { + AuthInfoVM result = apiInstance.getAuthInfo(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthInfoResourceApi#getAuthInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AuthInfoVM**](AuthInfoVM.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/UserVM.md b/oncokbCurationApiClient/docs/AuthInfoVM.md similarity index 51% rename from oncokbTranscriptApiClient/docs/UserVM.md rename to oncokbCurationApiClient/docs/AuthInfoVM.md index c64be51..894c8f1 100644 --- a/oncokbTranscriptApiClient/docs/UserVM.md +++ b/oncokbCurationApiClient/docs/AuthInfoVM.md @@ -1,15 +1,14 @@ -# UserVM +# AuthInfoVM ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**activated** | **Boolean** | | [optional] -**authorities** | **Set<String>** | | [optional] -**login** | **String** | | [optional] +**issuer** | **String** | | [optional] +**clientId** | **String** | | [optional] ## Implemented Interfaces diff --git a/oncokbCurationApiClient/docs/BiomarkerAssociation.md b/oncokbCurationApiClient/docs/BiomarkerAssociation.md new file mode 100644 index 0000000..cf178ec --- /dev/null +++ b/oncokbCurationApiClient/docs/BiomarkerAssociation.md @@ -0,0 +1,22 @@ + + +# BiomarkerAssociation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**alterations** | [**Set<Alteration>**](Alteration.md) | | [optional] +**drugs** | [**Set<Drug>**](Drug.md) | | [optional] +**fdaSubmissions** | [**Set<FdaSubmission>**](FdaSubmission.md) | | [optional] +**cancerType** | [**CancerType**](CancerType.md) | | [optional] +**gene** | [**Gene**](Gene.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/BiomarkerAssociationDTO.md b/oncokbCurationApiClient/docs/BiomarkerAssociationDTO.md new file mode 100644 index 0000000..4fa30ba --- /dev/null +++ b/oncokbCurationApiClient/docs/BiomarkerAssociationDTO.md @@ -0,0 +1,22 @@ + + +# BiomarkerAssociationDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**alterations** | **Set<Long>** | | [optional] +**drugs** | **Set<Long>** | | [optional] +**fdaSubmissions** | **Set<Long>** | | [optional] +**cancerType** | **Long** | | [optional] +**gene** | **Long** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/BiomarkerAssociationResourceApi.md b/oncokbCurationApiClient/docs/BiomarkerAssociationResourceApi.md new file mode 100644 index 0000000..fa51d1b --- /dev/null +++ b/oncokbCurationApiClient/docs/BiomarkerAssociationResourceApi.md @@ -0,0 +1,434 @@ +# BiomarkerAssociationResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createBiomarkerAssociation**](BiomarkerAssociationResourceApi.md#createBiomarkerAssociation) | **POST** /api/biomarker-associations | +[**deleteBiomarkerAssociation**](BiomarkerAssociationResourceApi.md#deleteBiomarkerAssociation) | **DELETE** /api/biomarker-associations/{id} | +[**getAllBiomarkerAssociations**](BiomarkerAssociationResourceApi.md#getAllBiomarkerAssociations) | **GET** /api/biomarker-associations | +[**getBiomarkerAssociation**](BiomarkerAssociationResourceApi.md#getBiomarkerAssociation) | **GET** /api/biomarker-associations/{id} | +[**getBiomarkerAssociationByCompanionDiagnosticDevice**](BiomarkerAssociationResourceApi.md#getBiomarkerAssociationByCompanionDiagnosticDevice) | **GET** /api/biomarker-associations/companion-diagnostic-device/{id} | +[**partialUpdateBiomarkerAssociation**](BiomarkerAssociationResourceApi.md#partialUpdateBiomarkerAssociation) | **PATCH** /api/biomarker-associations/{id} | +[**updateBiomarkerAssociation**](BiomarkerAssociationResourceApi.md#updateBiomarkerAssociation) | **PUT** /api/biomarker-associations/{id} | + + + +# **createBiomarkerAssociation** +> BiomarkerAssociation createBiomarkerAssociation(biomarkerAssociationDTO) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + BiomarkerAssociationResourceApi apiInstance = new BiomarkerAssociationResourceApi(defaultClient); + BiomarkerAssociationDTO biomarkerAssociationDTO = new BiomarkerAssociationDTO(); // BiomarkerAssociationDTO | + try { + BiomarkerAssociation result = apiInstance.createBiomarkerAssociation(biomarkerAssociationDTO); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BiomarkerAssociationResourceApi#createBiomarkerAssociation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **biomarkerAssociationDTO** | [**BiomarkerAssociationDTO**](BiomarkerAssociationDTO.md)| | + +### Return type + +[**BiomarkerAssociation**](BiomarkerAssociation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteBiomarkerAssociation** +> deleteBiomarkerAssociation(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + BiomarkerAssociationResourceApi apiInstance = new BiomarkerAssociationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteBiomarkerAssociation(id); + } catch (ApiException e) { + System.err.println("Exception when calling BiomarkerAssociationResourceApi#deleteBiomarkerAssociation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllBiomarkerAssociations** +> List<BiomarkerAssociation> getAllBiomarkerAssociations() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + BiomarkerAssociationResourceApi apiInstance = new BiomarkerAssociationResourceApi(defaultClient); + try { + List result = apiInstance.getAllBiomarkerAssociations(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BiomarkerAssociationResourceApi#getAllBiomarkerAssociations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<BiomarkerAssociation>**](BiomarkerAssociation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getBiomarkerAssociation** +> BiomarkerAssociation getBiomarkerAssociation(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + BiomarkerAssociationResourceApi apiInstance = new BiomarkerAssociationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + BiomarkerAssociation result = apiInstance.getBiomarkerAssociation(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BiomarkerAssociationResourceApi#getBiomarkerAssociation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**BiomarkerAssociation**](BiomarkerAssociation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getBiomarkerAssociationByCompanionDiagnosticDevice** +> List<BiomarkerAssociation> getBiomarkerAssociationByCompanionDiagnosticDevice(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + BiomarkerAssociationResourceApi apiInstance = new BiomarkerAssociationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + List result = apiInstance.getBiomarkerAssociationByCompanionDiagnosticDevice(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BiomarkerAssociationResourceApi#getBiomarkerAssociationByCompanionDiagnosticDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**List<BiomarkerAssociation>**](BiomarkerAssociation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateBiomarkerAssociation** +> BiomarkerAssociation partialUpdateBiomarkerAssociation(id, biomarkerAssociation) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + BiomarkerAssociationResourceApi apiInstance = new BiomarkerAssociationResourceApi(defaultClient); + Long id = 56L; // Long | + BiomarkerAssociation biomarkerAssociation = new BiomarkerAssociation(); // BiomarkerAssociation | + try { + BiomarkerAssociation result = apiInstance.partialUpdateBiomarkerAssociation(id, biomarkerAssociation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BiomarkerAssociationResourceApi#partialUpdateBiomarkerAssociation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **biomarkerAssociation** | [**BiomarkerAssociation**](BiomarkerAssociation.md)| | + +### Return type + +[**BiomarkerAssociation**](BiomarkerAssociation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateBiomarkerAssociation** +> BiomarkerAssociation updateBiomarkerAssociation(id, biomarkerAssociation) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + BiomarkerAssociationResourceApi apiInstance = new BiomarkerAssociationResourceApi(defaultClient); + Long id = 56L; // Long | + BiomarkerAssociation biomarkerAssociation = new BiomarkerAssociation(); // BiomarkerAssociation | + try { + BiomarkerAssociation result = apiInstance.updateBiomarkerAssociation(id, biomarkerAssociation); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BiomarkerAssociationResourceApi#updateBiomarkerAssociation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **biomarkerAssociation** | [**BiomarkerAssociation**](BiomarkerAssociation.md)| | + +### Return type + +[**BiomarkerAssociation**](BiomarkerAssociation.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/BooleanFilter.md b/oncokbCurationApiClient/docs/BooleanFilter.md new file mode 100644 index 0000000..3615a82 --- /dev/null +++ b/oncokbCurationApiClient/docs/BooleanFilter.md @@ -0,0 +1,21 @@ + + +# BooleanFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**equals** | **Boolean** | | [optional] +**notEquals** | **Boolean** | | [optional] +**specified** | **Boolean** | | [optional] +**in** | **List<Boolean>** | | [optional] +**notIn** | **List<Boolean>** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/CancerType.md b/oncokbCurationApiClient/docs/CancerType.md new file mode 100644 index 0000000..994477a --- /dev/null +++ b/oncokbCurationApiClient/docs/CancerType.md @@ -0,0 +1,34 @@ + + +# CancerType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**code** | **String** | | [optional] +**color** | **String** | | [optional] +**level** | **Integer** | | +**mainType** | **String** | | +**subtype** | **String** | | [optional] +**tissue** | **String** | | [optional] +**tumorForm** | [**TumorFormEnum**](#TumorFormEnum) | | + + + +## Enum: TumorFormEnum + +Name | Value +---- | ----- +SOLID | "SOLID" +LIQUID | "LIQUID" +MIXED | "MIXED" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/CancerTypeCriteria.md b/oncokbCurationApiClient/docs/CancerTypeCriteria.md new file mode 100644 index 0000000..f3cf2c8 --- /dev/null +++ b/oncokbCurationApiClient/docs/CancerTypeCriteria.md @@ -0,0 +1,28 @@ + + +# CancerTypeCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**code** | [**StringFilter**](StringFilter.md) | | [optional] +**color** | [**StringFilter**](StringFilter.md) | | [optional] +**level** | [**IntegerFilter**](IntegerFilter.md) | | [optional] +**mainType** | [**StringFilter**](StringFilter.md) | | [optional] +**subtype** | [**StringFilter**](StringFilter.md) | | [optional] +**tissue** | [**StringFilter**](StringFilter.md) | | [optional] +**tumorForm** | [**TumorFormFilter**](TumorFormFilter.md) | | [optional] +**childrenId** | [**LongFilter**](LongFilter.md) | | [optional] +**biomarkerAssociationId** | [**LongFilter**](LongFilter.md) | | [optional] +**parentId** | [**LongFilter**](LongFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/CancerTypeResourceApi.md b/oncokbCurationApiClient/docs/CancerTypeResourceApi.md new file mode 100644 index 0000000..e110244 --- /dev/null +++ b/oncokbCurationApiClient/docs/CancerTypeResourceApi.md @@ -0,0 +1,503 @@ +# CancerTypeResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countCancerTypes**](CancerTypeResourceApi.md#countCancerTypes) | **GET** /api/cancer-types/count | +[**createCancerType**](CancerTypeResourceApi.md#createCancerType) | **POST** /api/cancer-types | +[**deleteCancerType**](CancerTypeResourceApi.md#deleteCancerType) | **DELETE** /api/cancer-types/{id} | +[**getAllCancerTypes**](CancerTypeResourceApi.md#getAllCancerTypes) | **GET** /api/cancer-types | +[**getCancerType**](CancerTypeResourceApi.md#getCancerType) | **GET** /api/cancer-types/{id} | +[**partialUpdateCancerType**](CancerTypeResourceApi.md#partialUpdateCancerType) | **PATCH** /api/cancer-types/{id} | +[**searchCancerTypes**](CancerTypeResourceApi.md#searchCancerTypes) | **GET** /api/_search/cancer-types | +[**updateCancerType**](CancerTypeResourceApi.md#updateCancerType) | **PUT** /api/cancer-types/{id} | + + + +# **countCancerTypes** +> Long countCancerTypes(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + CancerTypeCriteria criteria = new CancerTypeCriteria(); // CancerTypeCriteria | + try { + Long result = apiInstance.countCancerTypes(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#countCancerTypes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**CancerTypeCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createCancerType** +> CancerType createCancerType(cancerType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + CancerType cancerType = new CancerType(); // CancerType | + try { + CancerType result = apiInstance.createCancerType(cancerType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#createCancerType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cancerType** | [**CancerType**](CancerType.md)| | + +### Return type + +[**CancerType**](CancerType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteCancerType** +> deleteCancerType(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteCancerType(id); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#deleteCancerType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllCancerTypes** +> List<CancerType> getAllCancerTypes(criteria, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + CancerTypeCriteria criteria = new CancerTypeCriteria(); // CancerTypeCriteria | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllCancerTypes(criteria, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#getAllCancerTypes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**CancerTypeCriteria**](.md)| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<CancerType>**](CancerType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getCancerType** +> CancerType getCancerType(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + Long id = 56L; // Long | + try { + CancerType result = apiInstance.getCancerType(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#getCancerType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**CancerType**](CancerType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateCancerType** +> CancerType partialUpdateCancerType(id, cancerType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + Long id = 56L; // Long | + CancerType cancerType = new CancerType(); // CancerType | + try { + CancerType result = apiInstance.partialUpdateCancerType(id, cancerType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#partialUpdateCancerType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **cancerType** | [**CancerType**](CancerType.md)| | + +### Return type + +[**CancerType**](CancerType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchCancerTypes** +> List<CancerType> searchCancerTypes(query, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + String query = "query_example"; // String | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.searchCancerTypes(query, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#searchCancerTypes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<CancerType>**](CancerType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateCancerType** +> CancerType updateCancerType(id, cancerType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CancerTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CancerTypeResourceApi apiInstance = new CancerTypeResourceApi(defaultClient); + Long id = 56L; // Long | + CancerType cancerType = new CancerType(); // CancerType | + try { + CancerType result = apiInstance.updateCancerType(id, cancerType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CancerTypeResourceApi#updateCancerType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **cancerType** | [**CancerType**](CancerType.md)| | + +### Return type + +[**CancerType**](CancerType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/CategoricalAlteration.md b/oncokbCurationApiClient/docs/CategoricalAlteration.md new file mode 100644 index 0000000..d2dcc39 --- /dev/null +++ b/oncokbCurationApiClient/docs/CategoricalAlteration.md @@ -0,0 +1,50 @@ + + +# CategoricalAlteration + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | +**type** | [**TypeEnum**](#TypeEnum) | | +**alterationType** | [**AlterationTypeEnum**](#AlterationTypeEnum) | | + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +ONCOGENIC_MUTATIONS | "ONCOGENIC_MUTATIONS" +GAIN_OF_FUNCTION_MUTATIONS | "GAIN_OF_FUNCTION_MUTATIONS" +LOSS_OF_FUNCTION_MUTATIONS | "LOSS_OF_FUNCTION_MUTATIONS" +SWITCH_OF_FUNCTION_MUTATIONS | "SWITCH_OF_FUNCTION_MUTATIONS" +VUS | "VUS" +TRUNCATING_MUTATIONS | "TRUNCATING_MUTATIONS" +FUSIONS | "FUSIONS" +AMPLIFICATION | "AMPLIFICATION" +DELETION | "DELETION" +PROMOTER | "PROMOTER" +WILDTYPE | "WILDTYPE" + + + +## Enum: AlterationTypeEnum + +Name | Value +---- | ----- +MUTATION | "MUTATION" +COPY_NUMBER_ALTERATION | "COPY_NUMBER_ALTERATION" +STRUCTURAL_VARIANT | "STRUCTURAL_VARIANT" +UNKNOWN | "UNKNOWN" +NA | "NA" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/CategoricalAlterationResourceApi.md b/oncokbCurationApiClient/docs/CategoricalAlterationResourceApi.md new file mode 100644 index 0000000..07f90e2 --- /dev/null +++ b/oncokbCurationApiClient/docs/CategoricalAlterationResourceApi.md @@ -0,0 +1,373 @@ +# CategoricalAlterationResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createCategoricalAlteration**](CategoricalAlterationResourceApi.md#createCategoricalAlteration) | **POST** /api/categorical-alterations | +[**deleteCategoricalAlteration**](CategoricalAlterationResourceApi.md#deleteCategoricalAlteration) | **DELETE** /api/categorical-alterations/{id} | +[**getAllCategoricalAlterations**](CategoricalAlterationResourceApi.md#getAllCategoricalAlterations) | **GET** /api/categorical-alterations | +[**getCategoricalAlteration**](CategoricalAlterationResourceApi.md#getCategoricalAlteration) | **GET** /api/categorical-alterations/{id} | +[**partialUpdateCategoricalAlteration**](CategoricalAlterationResourceApi.md#partialUpdateCategoricalAlteration) | **PATCH** /api/categorical-alterations/{id} | +[**updateCategoricalAlteration**](CategoricalAlterationResourceApi.md#updateCategoricalAlteration) | **PUT** /api/categorical-alterations/{id} | + + + +# **createCategoricalAlteration** +> CategoricalAlteration createCategoricalAlteration(categoricalAlteration) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CategoricalAlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CategoricalAlterationResourceApi apiInstance = new CategoricalAlterationResourceApi(defaultClient); + CategoricalAlteration categoricalAlteration = new CategoricalAlteration(); // CategoricalAlteration | + try { + CategoricalAlteration result = apiInstance.createCategoricalAlteration(categoricalAlteration); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CategoricalAlterationResourceApi#createCategoricalAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **categoricalAlteration** | [**CategoricalAlteration**](CategoricalAlteration.md)| | + +### Return type + +[**CategoricalAlteration**](CategoricalAlteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteCategoricalAlteration** +> deleteCategoricalAlteration(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CategoricalAlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CategoricalAlterationResourceApi apiInstance = new CategoricalAlterationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteCategoricalAlteration(id); + } catch (ApiException e) { + System.err.println("Exception when calling CategoricalAlterationResourceApi#deleteCategoricalAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllCategoricalAlterations** +> List<CategoricalAlteration> getAllCategoricalAlterations() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CategoricalAlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CategoricalAlterationResourceApi apiInstance = new CategoricalAlterationResourceApi(defaultClient); + try { + List result = apiInstance.getAllCategoricalAlterations(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CategoricalAlterationResourceApi#getAllCategoricalAlterations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<CategoricalAlteration>**](CategoricalAlteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getCategoricalAlteration** +> CategoricalAlteration getCategoricalAlteration(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CategoricalAlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CategoricalAlterationResourceApi apiInstance = new CategoricalAlterationResourceApi(defaultClient); + Long id = 56L; // Long | + try { + CategoricalAlteration result = apiInstance.getCategoricalAlteration(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CategoricalAlterationResourceApi#getCategoricalAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**CategoricalAlteration**](CategoricalAlteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateCategoricalAlteration** +> CategoricalAlteration partialUpdateCategoricalAlteration(id, categoricalAlteration) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CategoricalAlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CategoricalAlterationResourceApi apiInstance = new CategoricalAlterationResourceApi(defaultClient); + Long id = 56L; // Long | + CategoricalAlteration categoricalAlteration = new CategoricalAlteration(); // CategoricalAlteration | + try { + CategoricalAlteration result = apiInstance.partialUpdateCategoricalAlteration(id, categoricalAlteration); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CategoricalAlterationResourceApi#partialUpdateCategoricalAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **categoricalAlteration** | [**CategoricalAlteration**](CategoricalAlteration.md)| | + +### Return type + +[**CategoricalAlteration**](CategoricalAlteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateCategoricalAlteration** +> CategoricalAlteration updateCategoricalAlteration(id, categoricalAlteration) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CategoricalAlterationResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CategoricalAlterationResourceApi apiInstance = new CategoricalAlterationResourceApi(defaultClient); + Long id = 56L; // Long | + CategoricalAlteration categoricalAlteration = new CategoricalAlteration(); // CategoricalAlteration | + try { + CategoricalAlteration result = apiInstance.updateCategoricalAlteration(id, categoricalAlteration); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CategoricalAlterationResourceApi#updateCategoricalAlteration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **categoricalAlteration** | [**CategoricalAlteration**](CategoricalAlteration.md)| | + +### Return type + +[**CategoricalAlteration**](CategoricalAlteration.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/ClinicalTrialsGovCondition.md b/oncokbCurationApiClient/docs/ClinicalTrialsGovCondition.md new file mode 100644 index 0000000..044a9f1 --- /dev/null +++ b/oncokbCurationApiClient/docs/ClinicalTrialsGovCondition.md @@ -0,0 +1,19 @@ + + +# ClinicalTrialsGovCondition + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | +**cancerTypes** | [**Set<CancerType>**](CancerType.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/ClinicalTrialsGovConditionCriteria.md b/oncokbCurationApiClient/docs/ClinicalTrialsGovConditionCriteria.md new file mode 100644 index 0000000..da8e8e7 --- /dev/null +++ b/oncokbCurationApiClient/docs/ClinicalTrialsGovConditionCriteria.md @@ -0,0 +1,20 @@ + + +# ClinicalTrialsGovConditionCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**name** | [**StringFilter**](StringFilter.md) | | [optional] +**cancerTypeId** | [**LongFilter**](LongFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/ClinicalTrialsGovConditionResourceApi.md b/oncokbCurationApiClient/docs/ClinicalTrialsGovConditionResourceApi.md new file mode 100644 index 0000000..8a322fd --- /dev/null +++ b/oncokbCurationApiClient/docs/ClinicalTrialsGovConditionResourceApi.md @@ -0,0 +1,503 @@ +# ClinicalTrialsGovConditionResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countClinicalTrialsGovConditions**](ClinicalTrialsGovConditionResourceApi.md#countClinicalTrialsGovConditions) | **GET** /api/clinical-trials-gov-conditions/count | +[**createClinicalTrialsGovCondition**](ClinicalTrialsGovConditionResourceApi.md#createClinicalTrialsGovCondition) | **POST** /api/clinical-trials-gov-conditions | +[**deleteClinicalTrialsGovCondition**](ClinicalTrialsGovConditionResourceApi.md#deleteClinicalTrialsGovCondition) | **DELETE** /api/clinical-trials-gov-conditions/{id} | +[**getAllClinicalTrialsGovConditions**](ClinicalTrialsGovConditionResourceApi.md#getAllClinicalTrialsGovConditions) | **GET** /api/clinical-trials-gov-conditions | +[**getClinicalTrialsGovCondition**](ClinicalTrialsGovConditionResourceApi.md#getClinicalTrialsGovCondition) | **GET** /api/clinical-trials-gov-conditions/{id} | +[**partialUpdateClinicalTrialsGovCondition**](ClinicalTrialsGovConditionResourceApi.md#partialUpdateClinicalTrialsGovCondition) | **PATCH** /api/clinical-trials-gov-conditions/{id} | +[**searchClinicalTrialsGovConditions**](ClinicalTrialsGovConditionResourceApi.md#searchClinicalTrialsGovConditions) | **GET** /api/_search/clinical-trials-gov-conditions | +[**updateClinicalTrialsGovCondition**](ClinicalTrialsGovConditionResourceApi.md#updateClinicalTrialsGovCondition) | **PUT** /api/clinical-trials-gov-conditions/{id} | + + + +# **countClinicalTrialsGovConditions** +> Long countClinicalTrialsGovConditions(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + ClinicalTrialsGovConditionCriteria criteria = new ClinicalTrialsGovConditionCriteria(); // ClinicalTrialsGovConditionCriteria | + try { + Long result = apiInstance.countClinicalTrialsGovConditions(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#countClinicalTrialsGovConditions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**ClinicalTrialsGovConditionCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createClinicalTrialsGovCondition** +> ClinicalTrialsGovCondition createClinicalTrialsGovCondition(clinicalTrialsGovCondition) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + ClinicalTrialsGovCondition clinicalTrialsGovCondition = new ClinicalTrialsGovCondition(); // ClinicalTrialsGovCondition | + try { + ClinicalTrialsGovCondition result = apiInstance.createClinicalTrialsGovCondition(clinicalTrialsGovCondition); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#createClinicalTrialsGovCondition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clinicalTrialsGovCondition** | [**ClinicalTrialsGovCondition**](ClinicalTrialsGovCondition.md)| | + +### Return type + +[**ClinicalTrialsGovCondition**](ClinicalTrialsGovCondition.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteClinicalTrialsGovCondition** +> deleteClinicalTrialsGovCondition(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteClinicalTrialsGovCondition(id); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#deleteClinicalTrialsGovCondition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllClinicalTrialsGovConditions** +> List<ClinicalTrialsGovCondition> getAllClinicalTrialsGovConditions(criteria, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + ClinicalTrialsGovConditionCriteria criteria = new ClinicalTrialsGovConditionCriteria(); // ClinicalTrialsGovConditionCriteria | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllClinicalTrialsGovConditions(criteria, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#getAllClinicalTrialsGovConditions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**ClinicalTrialsGovConditionCriteria**](.md)| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<ClinicalTrialsGovCondition>**](ClinicalTrialsGovCondition.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getClinicalTrialsGovCondition** +> ClinicalTrialsGovCondition getClinicalTrialsGovCondition(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + Long id = 56L; // Long | + try { + ClinicalTrialsGovCondition result = apiInstance.getClinicalTrialsGovCondition(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#getClinicalTrialsGovCondition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**ClinicalTrialsGovCondition**](ClinicalTrialsGovCondition.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateClinicalTrialsGovCondition** +> ClinicalTrialsGovCondition partialUpdateClinicalTrialsGovCondition(id, clinicalTrialsGovCondition) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + Long id = 56L; // Long | + ClinicalTrialsGovCondition clinicalTrialsGovCondition = new ClinicalTrialsGovCondition(); // ClinicalTrialsGovCondition | + try { + ClinicalTrialsGovCondition result = apiInstance.partialUpdateClinicalTrialsGovCondition(id, clinicalTrialsGovCondition); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#partialUpdateClinicalTrialsGovCondition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **clinicalTrialsGovCondition** | [**ClinicalTrialsGovCondition**](ClinicalTrialsGovCondition.md)| | + +### Return type + +[**ClinicalTrialsGovCondition**](ClinicalTrialsGovCondition.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchClinicalTrialsGovConditions** +> List<ClinicalTrialsGovCondition> searchClinicalTrialsGovConditions(query, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + String query = "query_example"; // String | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.searchClinicalTrialsGovConditions(query, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#searchClinicalTrialsGovConditions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<ClinicalTrialsGovCondition>**](ClinicalTrialsGovCondition.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateClinicalTrialsGovCondition** +> ClinicalTrialsGovCondition updateClinicalTrialsGovCondition(id, clinicalTrialsGovCondition) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ClinicalTrialsGovConditionResourceApi apiInstance = new ClinicalTrialsGovConditionResourceApi(defaultClient); + Long id = 56L; // Long | + ClinicalTrialsGovCondition clinicalTrialsGovCondition = new ClinicalTrialsGovCondition(); // ClinicalTrialsGovCondition | + try { + ClinicalTrialsGovCondition result = apiInstance.updateClinicalTrialsGovCondition(id, clinicalTrialsGovCondition); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ClinicalTrialsGovConditionResourceApi#updateClinicalTrialsGovCondition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **clinicalTrialsGovCondition** | [**ClinicalTrialsGovCondition**](ClinicalTrialsGovCondition.md)| | + +### Return type + +[**ClinicalTrialsGovCondition**](ClinicalTrialsGovCondition.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/CompanionDiagnosticDevice.md b/oncokbCurationApiClient/docs/CompanionDiagnosticDevice.md new file mode 100644 index 0000000..b18c400 --- /dev/null +++ b/oncokbCurationApiClient/docs/CompanionDiagnosticDevice.md @@ -0,0 +1,22 @@ + + +# CompanionDiagnosticDevice + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | +**manufacturer** | **String** | | +**indicationDetails** | **String** | | [optional] +**fdaSubmissions** | [**Set<FdaSubmission>**](FdaSubmission.md) | | [optional] +**specimenTypes** | [**Set<SpecimenType>**](SpecimenType.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/CompanionDiagnosticDeviceCriteria.md b/oncokbCurationApiClient/docs/CompanionDiagnosticDeviceCriteria.md new file mode 100644 index 0000000..b3ba5cb --- /dev/null +++ b/oncokbCurationApiClient/docs/CompanionDiagnosticDeviceCriteria.md @@ -0,0 +1,22 @@ + + +# CompanionDiagnosticDeviceCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**name** | [**StringFilter**](StringFilter.md) | | [optional] +**manufacturer** | [**StringFilter**](StringFilter.md) | | [optional] +**fdaSubmissionId** | [**LongFilter**](LongFilter.md) | | [optional] +**specimenTypeId** | [**LongFilter**](LongFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/CompanionDiagnosticDeviceResourceApi.md b/oncokbCurationApiClient/docs/CompanionDiagnosticDeviceResourceApi.md new file mode 100644 index 0000000..2be17a1 --- /dev/null +++ b/oncokbCurationApiClient/docs/CompanionDiagnosticDeviceResourceApi.md @@ -0,0 +1,499 @@ +# CompanionDiagnosticDeviceResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countCompanionDiagnosticDevices**](CompanionDiagnosticDeviceResourceApi.md#countCompanionDiagnosticDevices) | **GET** /api/companion-diagnostic-devices/count | +[**createCompanionDiagnosticDevice**](CompanionDiagnosticDeviceResourceApi.md#createCompanionDiagnosticDevice) | **POST** /api/companion-diagnostic-devices | +[**deleteCompanionDiagnosticDevice**](CompanionDiagnosticDeviceResourceApi.md#deleteCompanionDiagnosticDevice) | **DELETE** /api/companion-diagnostic-devices/{id} | +[**getAllCompanionDiagnosticDevices**](CompanionDiagnosticDeviceResourceApi.md#getAllCompanionDiagnosticDevices) | **GET** /api/companion-diagnostic-devices | +[**getCompanionDiagnosticDevice**](CompanionDiagnosticDeviceResourceApi.md#getCompanionDiagnosticDevice) | **GET** /api/companion-diagnostic-devices/{id} | +[**partialUpdateCompanionDiagnosticDevice**](CompanionDiagnosticDeviceResourceApi.md#partialUpdateCompanionDiagnosticDevice) | **PATCH** /api/companion-diagnostic-devices/{id} | +[**searchCompanionDiagnosticDevices**](CompanionDiagnosticDeviceResourceApi.md#searchCompanionDiagnosticDevices) | **GET** /api/_search/companion-diagnostic-devices | +[**updateCompanionDiagnosticDevice**](CompanionDiagnosticDeviceResourceApi.md#updateCompanionDiagnosticDevice) | **PUT** /api/companion-diagnostic-devices/{id} | + + + +# **countCompanionDiagnosticDevices** +> Long countCompanionDiagnosticDevices(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + CompanionDiagnosticDeviceCriteria criteria = new CompanionDiagnosticDeviceCriteria(); // CompanionDiagnosticDeviceCriteria | + try { + Long result = apiInstance.countCompanionDiagnosticDevices(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#countCompanionDiagnosticDevices"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**CompanionDiagnosticDeviceCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createCompanionDiagnosticDevice** +> CompanionDiagnosticDevice createCompanionDiagnosticDevice(companionDiagnosticDevice) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + CompanionDiagnosticDevice companionDiagnosticDevice = new CompanionDiagnosticDevice(); // CompanionDiagnosticDevice | + try { + CompanionDiagnosticDevice result = apiInstance.createCompanionDiagnosticDevice(companionDiagnosticDevice); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#createCompanionDiagnosticDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **companionDiagnosticDevice** | [**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md)| | + +### Return type + +[**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteCompanionDiagnosticDevice** +> deleteCompanionDiagnosticDevice(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteCompanionDiagnosticDevice(id); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#deleteCompanionDiagnosticDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllCompanionDiagnosticDevices** +> List<CompanionDiagnosticDevice> getAllCompanionDiagnosticDevices(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + CompanionDiagnosticDeviceCriteria criteria = new CompanionDiagnosticDeviceCriteria(); // CompanionDiagnosticDeviceCriteria | + try { + List result = apiInstance.getAllCompanionDiagnosticDevices(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#getAllCompanionDiagnosticDevices"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**CompanionDiagnosticDeviceCriteria**](.md)| | + +### Return type + +[**List<CompanionDiagnosticDevice>**](CompanionDiagnosticDevice.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getCompanionDiagnosticDevice** +> CompanionDiagnosticDevice getCompanionDiagnosticDevice(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + Long id = 56L; // Long | + try { + CompanionDiagnosticDevice result = apiInstance.getCompanionDiagnosticDevice(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#getCompanionDiagnosticDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateCompanionDiagnosticDevice** +> CompanionDiagnosticDevice partialUpdateCompanionDiagnosticDevice(id, companionDiagnosticDevice) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + Long id = 56L; // Long | + CompanionDiagnosticDevice companionDiagnosticDevice = new CompanionDiagnosticDevice(); // CompanionDiagnosticDevice | + try { + CompanionDiagnosticDevice result = apiInstance.partialUpdateCompanionDiagnosticDevice(id, companionDiagnosticDevice); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#partialUpdateCompanionDiagnosticDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **companionDiagnosticDevice** | [**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md)| | + +### Return type + +[**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchCompanionDiagnosticDevices** +> List<CompanionDiagnosticDevice> searchCompanionDiagnosticDevices(query) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + String query = "query_example"; // String | + try { + List result = apiInstance.searchCompanionDiagnosticDevices(query); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#searchCompanionDiagnosticDevices"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + +### Return type + +[**List<CompanionDiagnosticDevice>**](CompanionDiagnosticDevice.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateCompanionDiagnosticDevice** +> CompanionDiagnosticDevice updateCompanionDiagnosticDevice(id, companionDiagnosticDevice) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + CompanionDiagnosticDeviceResourceApi apiInstance = new CompanionDiagnosticDeviceResourceApi(defaultClient); + Long id = 56L; // Long | + CompanionDiagnosticDevice companionDiagnosticDevice = new CompanionDiagnosticDevice(); // CompanionDiagnosticDevice | + try { + CompanionDiagnosticDevice result = apiInstance.updateCompanionDiagnosticDevice(id, companionDiagnosticDevice); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CompanionDiagnosticDeviceResourceApi#updateCompanionDiagnosticDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **companionDiagnosticDevice** | [**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md)| | + +### Return type + +[**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/Consequence.md b/oncokbCurationApiClient/docs/Consequence.md new file mode 100644 index 0000000..fa1bfe4 --- /dev/null +++ b/oncokbCurationApiClient/docs/Consequence.md @@ -0,0 +1,34 @@ + + +# Consequence + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**type** | [**TypeEnum**](#TypeEnum) | | +**term** | **String** | | +**name** | **String** | | +**isGenerallyTruncating** | **Boolean** | | +**description** | **String** | | [optional] + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +MUTATION | "MUTATION" +COPY_NUMBER_ALTERATION | "COPY_NUMBER_ALTERATION" +STRUCTURAL_VARIANT | "STRUCTURAL_VARIANT" +UNKNOWN | "UNKNOWN" +NA | "NA" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/ConsequenceResourceApi.md b/oncokbCurationApiClient/docs/ConsequenceResourceApi.md new file mode 100644 index 0000000..8b564d8 --- /dev/null +++ b/oncokbCurationApiClient/docs/ConsequenceResourceApi.md @@ -0,0 +1,373 @@ +# ConsequenceResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createConsequence**](ConsequenceResourceApi.md#createConsequence) | **POST** /api/consequences | +[**deleteConsequence**](ConsequenceResourceApi.md#deleteConsequence) | **DELETE** /api/consequences/{id} | +[**getAllConsequences**](ConsequenceResourceApi.md#getAllConsequences) | **GET** /api/consequences | +[**getConsequence**](ConsequenceResourceApi.md#getConsequence) | **GET** /api/consequences/{id} | +[**partialUpdateConsequence**](ConsequenceResourceApi.md#partialUpdateConsequence) | **PATCH** /api/consequences/{id} | +[**updateConsequence**](ConsequenceResourceApi.md#updateConsequence) | **PUT** /api/consequences/{id} | + + + +# **createConsequence** +> Consequence createConsequence(consequence) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ConsequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ConsequenceResourceApi apiInstance = new ConsequenceResourceApi(defaultClient); + Consequence consequence = new Consequence(); // Consequence | + try { + Consequence result = apiInstance.createConsequence(consequence); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ConsequenceResourceApi#createConsequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **consequence** | [**Consequence**](Consequence.md)| | + +### Return type + +[**Consequence**](Consequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteConsequence** +> deleteConsequence(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ConsequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ConsequenceResourceApi apiInstance = new ConsequenceResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteConsequence(id); + } catch (ApiException e) { + System.err.println("Exception when calling ConsequenceResourceApi#deleteConsequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllConsequences** +> List<Consequence> getAllConsequences() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ConsequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ConsequenceResourceApi apiInstance = new ConsequenceResourceApi(defaultClient); + try { + List result = apiInstance.getAllConsequences(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ConsequenceResourceApi#getAllConsequences"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<Consequence>**](Consequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getConsequence** +> Consequence getConsequence(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ConsequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ConsequenceResourceApi apiInstance = new ConsequenceResourceApi(defaultClient); + Long id = 56L; // Long | + try { + Consequence result = apiInstance.getConsequence(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ConsequenceResourceApi#getConsequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**Consequence**](Consequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateConsequence** +> Consequence partialUpdateConsequence(id, consequence) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ConsequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ConsequenceResourceApi apiInstance = new ConsequenceResourceApi(defaultClient); + Long id = 56L; // Long | + Consequence consequence = new Consequence(); // Consequence | + try { + Consequence result = apiInstance.partialUpdateConsequence(id, consequence); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ConsequenceResourceApi#partialUpdateConsequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **consequence** | [**Consequence**](Consequence.md)| | + +### Return type + +[**Consequence**](Consequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateConsequence** +> Consequence updateConsequence(id, consequence) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.ConsequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + ConsequenceResourceApi apiInstance = new ConsequenceResourceApi(defaultClient); + Long id = 56L; // Long | + Consequence consequence = new Consequence(); // Consequence | + try { + Consequence result = apiInstance.updateConsequence(id, consequence); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ConsequenceResourceApi#updateConsequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **consequence** | [**Consequence**](Consequence.md)| | + +### Return type + +[**Consequence**](Consequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/Drug.md b/oncokbCurationApiClient/docs/Drug.md similarity index 63% rename from oncokbTranscriptApiClient/docs/Drug.md rename to oncokbCurationApiClient/docs/Drug.md index ff767f4..a29aff3 100644 --- a/oncokbTranscriptApiClient/docs/Drug.md +++ b/oncokbCurationApiClient/docs/Drug.md @@ -7,11 +7,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**code** | **String** | | [optional] **id** | **Long** | | [optional] **name** | **String** | | [optional] +**code** | **String** | | [optional] **semanticType** | **String** | | [optional] +**fdaDrug** | [**FdaDrug**](FdaDrug.md) | | [optional] **synonyms** | [**Set<DrugSynonym>**](DrugSynonym.md) | | [optional] +**brands** | [**Set<DrugBrand>**](DrugBrand.md) | | [optional] +**biomarkerAssociations** | [**Set<BiomarkerAssociation>**](BiomarkerAssociation.md) | | [optional] ## Implemented Interfaces diff --git a/oncokbCurationApiClient/docs/DrugBrand.md b/oncokbCurationApiClient/docs/DrugBrand.md new file mode 100644 index 0000000..8e1124c --- /dev/null +++ b/oncokbCurationApiClient/docs/DrugBrand.md @@ -0,0 +1,29 @@ + + +# DrugBrand + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**name** | **String** | | [optional] +**region** | [**RegionEnum**](#RegionEnum) | | [optional] +**drug** | [**Drug**](Drug.md) | | [optional] + + + +## Enum: RegionEnum + +Name | Value +---- | ----- +US | "US" +EU | "EU" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/DrugBrandResourceApi.md b/oncokbCurationApiClient/docs/DrugBrandResourceApi.md new file mode 100644 index 0000000..649a733 --- /dev/null +++ b/oncokbCurationApiClient/docs/DrugBrandResourceApi.md @@ -0,0 +1,373 @@ +# DrugBrandResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDrugBrand**](DrugBrandResourceApi.md#createDrugBrand) | **POST** /api/drug-brands | +[**deleteDrugBrand**](DrugBrandResourceApi.md#deleteDrugBrand) | **DELETE** /api/drug-brands/{id} | +[**getAllDrugBrands**](DrugBrandResourceApi.md#getAllDrugBrands) | **GET** /api/drug-brands | +[**getDrugBrand**](DrugBrandResourceApi.md#getDrugBrand) | **GET** /api/drug-brands/{id} | +[**partialUpdateDrugBrand**](DrugBrandResourceApi.md#partialUpdateDrugBrand) | **PATCH** /api/drug-brands/{id} | +[**updateDrugBrand**](DrugBrandResourceApi.md#updateDrugBrand) | **PUT** /api/drug-brands/{id} | + + + +# **createDrugBrand** +> DrugBrand createDrugBrand(drugBrand) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugBrandResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugBrandResourceApi apiInstance = new DrugBrandResourceApi(defaultClient); + DrugBrand drugBrand = new DrugBrand(); // DrugBrand | + try { + DrugBrand result = apiInstance.createDrugBrand(drugBrand); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugBrandResourceApi#createDrugBrand"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drugBrand** | [**DrugBrand**](DrugBrand.md)| | + +### Return type + +[**DrugBrand**](DrugBrand.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteDrugBrand** +> deleteDrugBrand(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugBrandResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugBrandResourceApi apiInstance = new DrugBrandResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteDrugBrand(id); + } catch (ApiException e) { + System.err.println("Exception when calling DrugBrandResourceApi#deleteDrugBrand"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllDrugBrands** +> List<DrugBrand> getAllDrugBrands() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugBrandResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugBrandResourceApi apiInstance = new DrugBrandResourceApi(defaultClient); + try { + List result = apiInstance.getAllDrugBrands(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugBrandResourceApi#getAllDrugBrands"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<DrugBrand>**](DrugBrand.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getDrugBrand** +> DrugBrand getDrugBrand(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugBrandResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugBrandResourceApi apiInstance = new DrugBrandResourceApi(defaultClient); + Long id = 56L; // Long | + try { + DrugBrand result = apiInstance.getDrugBrand(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugBrandResourceApi#getDrugBrand"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**DrugBrand**](DrugBrand.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateDrugBrand** +> DrugBrand partialUpdateDrugBrand(id, drugBrand) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugBrandResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugBrandResourceApi apiInstance = new DrugBrandResourceApi(defaultClient); + Long id = 56L; // Long | + DrugBrand drugBrand = new DrugBrand(); // DrugBrand | + try { + DrugBrand result = apiInstance.partialUpdateDrugBrand(id, drugBrand); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugBrandResourceApi#partialUpdateDrugBrand"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **drugBrand** | [**DrugBrand**](DrugBrand.md)| | + +### Return type + +[**DrugBrand**](DrugBrand.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateDrugBrand** +> DrugBrand updateDrugBrand(id, drugBrand) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugBrandResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugBrandResourceApi apiInstance = new DrugBrandResourceApi(defaultClient); + Long id = 56L; // Long | + DrugBrand drugBrand = new DrugBrand(); // DrugBrand | + try { + DrugBrand result = apiInstance.updateDrugBrand(id, drugBrand); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugBrandResourceApi#updateDrugBrand"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **drugBrand** | [**DrugBrand**](DrugBrand.md)| | + +### Return type + +[**DrugBrand**](DrugBrand.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/DrugControllerApi.md b/oncokbCurationApiClient/docs/DrugControllerApi.md new file mode 100644 index 0000000..4a2e23f --- /dev/null +++ b/oncokbCurationApiClient/docs/DrugControllerApi.md @@ -0,0 +1,130 @@ +# DrugControllerApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**findDrugByCode**](DrugControllerApi.md#findDrugByCode) | **GET** /api/drugs/search-by-code/{code} | +[**findDrugs**](DrugControllerApi.md#findDrugs) | **GET** /api/drugs/search | + + + +# **findDrugByCode** +> Drug findDrugByCode(code) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugControllerApi apiInstance = new DrugControllerApi(defaultClient); + String code = "code_example"; // String | + try { + Drug result = apiInstance.findDrugByCode(code); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugControllerApi#findDrugByCode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **code** | **String**| | + +### Return type + +[**Drug**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **findDrugs** +> List<Drug> findDrugs(query) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugControllerApi apiInstance = new DrugControllerApi(defaultClient); + String query = "query_example"; // String | + try { + List result = apiInstance.findDrugs(query); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugControllerApi#findDrugs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + +### Return type + +[**List<Drug>**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/DrugCriteria.md b/oncokbCurationApiClient/docs/DrugCriteria.md new file mode 100644 index 0000000..cb304fe --- /dev/null +++ b/oncokbCurationApiClient/docs/DrugCriteria.md @@ -0,0 +1,24 @@ + + +# DrugCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**name** | [**StringFilter**](StringFilter.md) | | [optional] +**code** | [**StringFilter**](StringFilter.md) | | [optional] +**synonymsId** | [**LongFilter**](LongFilter.md) | | [optional] +**biomarkerAssociationId** | [**LongFilter**](LongFilter.md) | | [optional] +**brandsId** | [**LongFilter**](LongFilter.md) | | [optional] +**brandsName** | [**StringFilter**](StringFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/DrugResourceApi.md b/oncokbCurationApiClient/docs/DrugResourceApi.md new file mode 100644 index 0000000..3e9fe4a --- /dev/null +++ b/oncokbCurationApiClient/docs/DrugResourceApi.md @@ -0,0 +1,503 @@ +# DrugResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countDrugs**](DrugResourceApi.md#countDrugs) | **GET** /api/drugs/count | +[**createDrug**](DrugResourceApi.md#createDrug) | **POST** /api/drugs | +[**deleteDrug**](DrugResourceApi.md#deleteDrug) | **DELETE** /api/drugs/{id} | +[**getAllDrugs**](DrugResourceApi.md#getAllDrugs) | **GET** /api/drugs | +[**getDrug**](DrugResourceApi.md#getDrug) | **GET** /api/drugs/{id} | +[**partialUpdateDrug**](DrugResourceApi.md#partialUpdateDrug) | **PATCH** /api/drugs/{id} | +[**searchDrugs**](DrugResourceApi.md#searchDrugs) | **GET** /api/_search/drugs | +[**updateDrug**](DrugResourceApi.md#updateDrug) | **PUT** /api/drugs/{id} | + + + +# **countDrugs** +> Long countDrugs(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + DrugCriteria criteria = new DrugCriteria(); // DrugCriteria | + try { + Long result = apiInstance.countDrugs(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#countDrugs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**DrugCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createDrug** +> Drug createDrug(drug) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + Drug drug = new Drug(); // Drug | + try { + Drug result = apiInstance.createDrug(drug); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#createDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drug** | [**Drug**](Drug.md)| | + +### Return type + +[**Drug**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteDrug** +> deleteDrug(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteDrug(id); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#deleteDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllDrugs** +> List<Drug> getAllDrugs(criteria, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + DrugCriteria criteria = new DrugCriteria(); // DrugCriteria | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllDrugs(criteria, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#getAllDrugs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**DrugCriteria**](.md)| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Drug>**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getDrug** +> Drug getDrug(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + Long id = 56L; // Long | + try { + Drug result = apiInstance.getDrug(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#getDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**Drug**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateDrug** +> Drug partialUpdateDrug(id, drug) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + Long id = 56L; // Long | + Drug drug = new Drug(); // Drug | + try { + Drug result = apiInstance.partialUpdateDrug(id, drug); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#partialUpdateDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **drug** | [**Drug**](Drug.md)| | + +### Return type + +[**Drug**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchDrugs** +> List<Drug> searchDrugs(query, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + String query = "query_example"; // String | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.searchDrugs(query, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#searchDrugs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Drug>**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateDrug** +> Drug updateDrug(id, drug) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugResourceApi apiInstance = new DrugResourceApi(defaultClient); + Long id = 56L; // Long | + Drug drug = new Drug(); // Drug | + try { + Drug result = apiInstance.updateDrug(id, drug); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugResourceApi#updateDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **drug** | [**Drug**](Drug.md)| | + +### Return type + +[**Drug**](Drug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/DrugSynonym.md b/oncokbCurationApiClient/docs/DrugSynonym.md similarity index 100% rename from oncokbTranscriptApiClient/docs/DrugSynonym.md rename to oncokbCurationApiClient/docs/DrugSynonym.md index 59534e3..f34e1d2 100644 --- a/oncokbTranscriptApiClient/docs/DrugSynonym.md +++ b/oncokbCurationApiClient/docs/DrugSynonym.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**drug** | [**Drug**](Drug.md) | | [optional] **id** | **Long** | | [optional] **name** | **String** | | [optional] +**drug** | [**Drug**](Drug.md) | | [optional] ## Implemented Interfaces diff --git a/oncokbCurationApiClient/docs/DrugSynonymResourceApi.md b/oncokbCurationApiClient/docs/DrugSynonymResourceApi.md new file mode 100644 index 0000000..54723d5 --- /dev/null +++ b/oncokbCurationApiClient/docs/DrugSynonymResourceApi.md @@ -0,0 +1,373 @@ +# DrugSynonymResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDrugSynonym**](DrugSynonymResourceApi.md#createDrugSynonym) | **POST** /api/drug-synonyms | +[**deleteDrugSynonym**](DrugSynonymResourceApi.md#deleteDrugSynonym) | **DELETE** /api/drug-synonyms/{id} | +[**getAllDrugSynonyms**](DrugSynonymResourceApi.md#getAllDrugSynonyms) | **GET** /api/drug-synonyms | +[**getDrugSynonym**](DrugSynonymResourceApi.md#getDrugSynonym) | **GET** /api/drug-synonyms/{id} | +[**partialUpdateDrugSynonym**](DrugSynonymResourceApi.md#partialUpdateDrugSynonym) | **PATCH** /api/drug-synonyms/{id} | +[**updateDrugSynonym**](DrugSynonymResourceApi.md#updateDrugSynonym) | **PUT** /api/drug-synonyms/{id} | + + + +# **createDrugSynonym** +> DrugSynonym createDrugSynonym(drugSynonym) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugSynonymResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugSynonymResourceApi apiInstance = new DrugSynonymResourceApi(defaultClient); + DrugSynonym drugSynonym = new DrugSynonym(); // DrugSynonym | + try { + DrugSynonym result = apiInstance.createDrugSynonym(drugSynonym); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugSynonymResourceApi#createDrugSynonym"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **drugSynonym** | [**DrugSynonym**](DrugSynonym.md)| | + +### Return type + +[**DrugSynonym**](DrugSynonym.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteDrugSynonym** +> deleteDrugSynonym(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugSynonymResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugSynonymResourceApi apiInstance = new DrugSynonymResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteDrugSynonym(id); + } catch (ApiException e) { + System.err.println("Exception when calling DrugSynonymResourceApi#deleteDrugSynonym"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllDrugSynonyms** +> List<DrugSynonym> getAllDrugSynonyms() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugSynonymResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugSynonymResourceApi apiInstance = new DrugSynonymResourceApi(defaultClient); + try { + List result = apiInstance.getAllDrugSynonyms(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugSynonymResourceApi#getAllDrugSynonyms"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<DrugSynonym>**](DrugSynonym.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getDrugSynonym** +> DrugSynonym getDrugSynonym(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugSynonymResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugSynonymResourceApi apiInstance = new DrugSynonymResourceApi(defaultClient); + Long id = 56L; // Long | + try { + DrugSynonym result = apiInstance.getDrugSynonym(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugSynonymResourceApi#getDrugSynonym"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**DrugSynonym**](DrugSynonym.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateDrugSynonym** +> DrugSynonym partialUpdateDrugSynonym(id, drugSynonym) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugSynonymResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugSynonymResourceApi apiInstance = new DrugSynonymResourceApi(defaultClient); + Long id = 56L; // Long | + DrugSynonym drugSynonym = new DrugSynonym(); // DrugSynonym | + try { + DrugSynonym result = apiInstance.partialUpdateDrugSynonym(id, drugSynonym); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugSynonymResourceApi#partialUpdateDrugSynonym"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **drugSynonym** | [**DrugSynonym**](DrugSynonym.md)| | + +### Return type + +[**DrugSynonym**](DrugSynonym.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateDrugSynonym** +> DrugSynonym updateDrugSynonym(id, drugSynonym) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.DrugSynonymResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + DrugSynonymResourceApi apiInstance = new DrugSynonymResourceApi(defaultClient); + Long id = 56L; // Long | + DrugSynonym drugSynonym = new DrugSynonym(); // DrugSynonym | + try { + DrugSynonym result = apiInstance.updateDrugSynonym(id, drugSynonym); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DrugSynonymResourceApi#updateDrugSynonym"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **drugSynonym** | [**DrugSynonym**](DrugSynonym.md)| | + +### Return type + +[**DrugSynonym**](DrugSynonym.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/EnsemblGene.md b/oncokbCurationApiClient/docs/EnsemblGene.md similarity index 72% rename from oncokbTranscriptApiClient/docs/EnsemblGene.md rename to oncokbCurationApiClient/docs/EnsemblGene.md index 01537b7..f6dcc7d 100644 --- a/oncokbTranscriptApiClient/docs/EnsemblGene.md +++ b/oncokbCurationApiClient/docs/EnsemblGene.md @@ -7,16 +7,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**referenceGenome** | [**ReferenceGenomeEnum**](#ReferenceGenomeEnum) | | [optional] +**ensemblGeneId** | **String** | | **canonical** | **Boolean** | | **chromosome** | **String** | | -**end** | **Integer** | | -**ensemblGeneId** | **String** | | -**gene** | [**Gene**](Gene.md) | | [optional] -**id** | **Long** | | [optional] -**referenceGenome** | **String** | | **start** | **Integer** | | +**end** | **Integer** | | **strand** | **Integer** | | **transcripts** | [**Set<Transcript>**](Transcript.md) | | [optional] +**gene** | [**Gene**](Gene.md) | | [optional] + + + +## Enum: ReferenceGenomeEnum + +Name | Value +---- | ----- +GRCH37 | "GRCh37" +GRCH38 | "GRCh38" ## Implemented Interfaces diff --git a/oncokbTranscriptApiClient/docs/EnsemblGeneControllerApi.md b/oncokbCurationApiClient/docs/EnsemblGeneControllerApi.md similarity index 51% rename from oncokbTranscriptApiClient/docs/EnsemblGeneControllerApi.md rename to oncokbCurationApiClient/docs/EnsemblGeneControllerApi.md index 1672bfa..79dfef7 100644 --- a/oncokbTranscriptApiClient/docs/EnsemblGeneControllerApi.md +++ b/oncokbCurationApiClient/docs/EnsemblGeneControllerApi.md @@ -1,44 +1,39 @@ # EnsemblGeneControllerApi -All URIs are relative to *https://transcript.oncokb.org:443* +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addEnsemblGeneUsingPOST**](EnsemblGeneControllerApi.md#addEnsemblGeneUsingPOST) | **POST** /api/add-ensembl-gene | addEnsemblGene +[**addEnsemblGene**](EnsemblGeneControllerApi.md#addEnsemblGene) | **POST** /api/add-ensembl-gene | - -# **addEnsemblGeneUsingPOST** -> EnsemblGene addEnsemblGeneUsingPOST(addEnsemblGeneBody) + +# **addEnsemblGene** +> EnsemblGene addEnsemblGene(addEnsemblGeneBody) + -addEnsemblGene ### Example ```java // Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.EnsemblGeneControllerApi; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.EnsemblGeneControllerApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); EnsemblGeneControllerApi apiInstance = new EnsemblGeneControllerApi(defaultClient); AddEnsemblGeneBody addEnsemblGeneBody = new AddEnsemblGeneBody(); // AddEnsemblGeneBody | try { - EnsemblGene result = apiInstance.addEnsemblGeneUsingPOST(addEnsemblGeneBody); + EnsemblGene result = apiInstance.addEnsemblGene(addEnsemblGeneBody); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling EnsemblGeneControllerApi#addEnsemblGeneUsingPOST"); + System.err.println("Exception when calling EnsemblGeneControllerApi#addEnsemblGene"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -52,7 +47,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addEnsemblGeneBody** | [**AddEnsemblGeneBody**](AddEnsemblGeneBody.md)| | [optional] + **addEnsemblGeneBody** | [**AddEnsemblGeneBody**](AddEnsemblGeneBody.md)| | ### Return type @@ -60,7 +55,7 @@ Name | Type | Description | Notes ### Authorization -[Authorization](../README.md#Authorization) +No authorization required ### HTTP request headers @@ -71,8 +66,4 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | diff --git a/oncokbCurationApiClient/docs/EnsemblGeneResourceApi.md b/oncokbCurationApiClient/docs/EnsemblGeneResourceApi.md new file mode 100644 index 0000000..669112e --- /dev/null +++ b/oncokbCurationApiClient/docs/EnsemblGeneResourceApi.md @@ -0,0 +1,377 @@ +# EnsemblGeneResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createEnsemblGene**](EnsemblGeneResourceApi.md#createEnsemblGene) | **POST** /api/ensembl-genes | +[**deleteEnsemblGene**](EnsemblGeneResourceApi.md#deleteEnsemblGene) | **DELETE** /api/ensembl-genes/{id} | +[**getAllEnsemblGenes**](EnsemblGeneResourceApi.md#getAllEnsemblGenes) | **GET** /api/ensembl-genes | +[**getEnsemblGene**](EnsemblGeneResourceApi.md#getEnsemblGene) | **GET** /api/ensembl-genes/{id} | +[**partialUpdateEnsemblGene**](EnsemblGeneResourceApi.md#partialUpdateEnsemblGene) | **PATCH** /api/ensembl-genes/{id} | +[**updateEnsemblGene**](EnsemblGeneResourceApi.md#updateEnsemblGene) | **PUT** /api/ensembl-genes/{id} | + + + +# **createEnsemblGene** +> EnsemblGene createEnsemblGene(ensemblGene) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.EnsemblGeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + EnsemblGeneResourceApi apiInstance = new EnsemblGeneResourceApi(defaultClient); + EnsemblGene ensemblGene = new EnsemblGene(); // EnsemblGene | + try { + EnsemblGene result = apiInstance.createEnsemblGene(ensemblGene); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EnsemblGeneResourceApi#createEnsemblGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ensemblGene** | [**EnsemblGene**](EnsemblGene.md)| | + +### Return type + +[**EnsemblGene**](EnsemblGene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteEnsemblGene** +> deleteEnsemblGene(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.EnsemblGeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + EnsemblGeneResourceApi apiInstance = new EnsemblGeneResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteEnsemblGene(id); + } catch (ApiException e) { + System.err.println("Exception when calling EnsemblGeneResourceApi#deleteEnsemblGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllEnsemblGenes** +> List<EnsemblGene> getAllEnsemblGenes(pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.EnsemblGeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + EnsemblGeneResourceApi apiInstance = new EnsemblGeneResourceApi(defaultClient); + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllEnsemblGenes(pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EnsemblGeneResourceApi#getAllEnsemblGenes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<EnsemblGene>**](EnsemblGene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getEnsemblGene** +> EnsemblGene getEnsemblGene(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.EnsemblGeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + EnsemblGeneResourceApi apiInstance = new EnsemblGeneResourceApi(defaultClient); + Long id = 56L; // Long | + try { + EnsemblGene result = apiInstance.getEnsemblGene(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EnsemblGeneResourceApi#getEnsemblGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**EnsemblGene**](EnsemblGene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateEnsemblGene** +> EnsemblGene partialUpdateEnsemblGene(id, ensemblGene) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.EnsemblGeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + EnsemblGeneResourceApi apiInstance = new EnsemblGeneResourceApi(defaultClient); + Long id = 56L; // Long | + EnsemblGene ensemblGene = new EnsemblGene(); // EnsemblGene | + try { + EnsemblGene result = apiInstance.partialUpdateEnsemblGene(id, ensemblGene); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EnsemblGeneResourceApi#partialUpdateEnsemblGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **ensemblGene** | [**EnsemblGene**](EnsemblGene.md)| | + +### Return type + +[**EnsemblGene**](EnsemblGene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateEnsemblGene** +> EnsemblGene updateEnsemblGene(id, ensemblGene) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.EnsemblGeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + EnsemblGeneResourceApi apiInstance = new EnsemblGeneResourceApi(defaultClient); + Long id = 56L; // Long | + EnsemblGene ensemblGene = new EnsemblGene(); // EnsemblGene | + try { + EnsemblGene result = apiInstance.updateEnsemblGene(id, ensemblGene); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EnsemblGeneResourceApi#updateEnsemblGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **ensemblGene** | [**EnsemblGene**](EnsemblGene.md)| | + +### Return type + +[**EnsemblGene**](EnsemblGene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/EnsemblTranscript.md b/oncokbCurationApiClient/docs/EnsemblTranscript.md new file mode 100644 index 0000000..dcc687e --- /dev/null +++ b/oncokbCurationApiClient/docs/EnsemblTranscript.md @@ -0,0 +1,26 @@ + + +# EnsemblTranscript + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transcriptId** | **String** | | [optional] +**geneId** | **String** | | [optional] +**proteinId** | **String** | | [optional] +**proteinLength** | **Integer** | | [optional] +**pfamDomains** | [**List<PfamDomainRange>**](PfamDomainRange.md) | | [optional] +**hugoSymbols** | **List<String>** | | [optional] +**refseqMrnaId** | **String** | | [optional] +**ccdsId** | **String** | | [optional] +**exons** | [**List<Exon>**](Exon.md) | | [optional] +**utrs** | [**List<UntranslatedRegion>**](UntranslatedRegion.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/Exon.md b/oncokbCurationApiClient/docs/Exon.md new file mode 100644 index 0000000..484affe --- /dev/null +++ b/oncokbCurationApiClient/docs/Exon.md @@ -0,0 +1,22 @@ + + +# Exon + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exonId** | **String** | | [optional] +**exonStart** | **Integer** | | [optional] +**exonEnd** | **Integer** | | [optional] +**rank** | **Integer** | | [optional] +**strand** | **Integer** | | [optional] +**version** | **Integer** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/FdaDrug.md b/oncokbCurationApiClient/docs/FdaDrug.md new file mode 100644 index 0000000..e8bf9b9 --- /dev/null +++ b/oncokbCurationApiClient/docs/FdaDrug.md @@ -0,0 +1,18 @@ + + +# FdaDrug + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**applicationNumber** | **String** | | + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/FdaDrugResourceApi.md b/oncokbCurationApiClient/docs/FdaDrugResourceApi.md new file mode 100644 index 0000000..d4dcc4b --- /dev/null +++ b/oncokbCurationApiClient/docs/FdaDrugResourceApi.md @@ -0,0 +1,379 @@ +# FdaDrugResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createFdaDrug**](FdaDrugResourceApi.md#createFdaDrug) | **POST** /api/fda-drugs | +[**deleteFdaDrug**](FdaDrugResourceApi.md#deleteFdaDrug) | **DELETE** /api/fda-drugs/{id} | +[**getAllFdaDrugs**](FdaDrugResourceApi.md#getAllFdaDrugs) | **GET** /api/fda-drugs | +[**getFdaDrug**](FdaDrugResourceApi.md#getFdaDrug) | **GET** /api/fda-drugs/{id} | +[**partialUpdateFdaDrug**](FdaDrugResourceApi.md#partialUpdateFdaDrug) | **PATCH** /api/fda-drugs/{id} | +[**updateFdaDrug**](FdaDrugResourceApi.md#updateFdaDrug) | **PUT** /api/fda-drugs/{id} | + + + +# **createFdaDrug** +> FdaDrug createFdaDrug(fdaDrug) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaDrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaDrugResourceApi apiInstance = new FdaDrugResourceApi(defaultClient); + FdaDrug fdaDrug = new FdaDrug(); // FdaDrug | + try { + FdaDrug result = apiInstance.createFdaDrug(fdaDrug); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaDrugResourceApi#createFdaDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fdaDrug** | [**FdaDrug**](FdaDrug.md)| | + +### Return type + +[**FdaDrug**](FdaDrug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteFdaDrug** +> deleteFdaDrug(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaDrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaDrugResourceApi apiInstance = new FdaDrugResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteFdaDrug(id); + } catch (ApiException e) { + System.err.println("Exception when calling FdaDrugResourceApi#deleteFdaDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllFdaDrugs** +> List<FdaDrug> getAllFdaDrugs(pageable, filter) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaDrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaDrugResourceApi apiInstance = new FdaDrugResourceApi(defaultClient); + Pageable pageable = new Pageable(); // Pageable | + String filter = "filter_example"; // String | + try { + List result = apiInstance.getAllFdaDrugs(pageable, filter); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaDrugResourceApi#getAllFdaDrugs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageable** | [**Pageable**](.md)| | + **filter** | **String**| | [optional] + +### Return type + +[**List<FdaDrug>**](FdaDrug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getFdaDrug** +> FdaDrug getFdaDrug(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaDrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaDrugResourceApi apiInstance = new FdaDrugResourceApi(defaultClient); + Long id = 56L; // Long | + try { + FdaDrug result = apiInstance.getFdaDrug(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaDrugResourceApi#getFdaDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**FdaDrug**](FdaDrug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateFdaDrug** +> FdaDrug partialUpdateFdaDrug(id, fdaDrug) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaDrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaDrugResourceApi apiInstance = new FdaDrugResourceApi(defaultClient); + Long id = 56L; // Long | + FdaDrug fdaDrug = new FdaDrug(); // FdaDrug | + try { + FdaDrug result = apiInstance.partialUpdateFdaDrug(id, fdaDrug); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaDrugResourceApi#partialUpdateFdaDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **fdaDrug** | [**FdaDrug**](FdaDrug.md)| | + +### Return type + +[**FdaDrug**](FdaDrug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateFdaDrug** +> FdaDrug updateFdaDrug(id, fdaDrug) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaDrugResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaDrugResourceApi apiInstance = new FdaDrugResourceApi(defaultClient); + Long id = 56L; // Long | + FdaDrug fdaDrug = new FdaDrug(); // FdaDrug | + try { + FdaDrug result = apiInstance.updateFdaDrug(id, fdaDrug); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaDrugResourceApi#updateFdaDrug"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **fdaDrug** | [**FdaDrug**](FdaDrug.md)| | + +### Return type + +[**FdaDrug**](FdaDrug.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/FdaSubmission.md b/oncokbCurationApiClient/docs/FdaSubmission.md new file mode 100644 index 0000000..85b2d68 --- /dev/null +++ b/oncokbCurationApiClient/docs/FdaSubmission.md @@ -0,0 +1,31 @@ + + +# FdaSubmission + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**number** | **String** | | +**supplementNumber** | **String** | | [optional] +**deviceName** | **String** | | +**genericName** | **String** | | [optional] +**dateReceived** | **OffsetDateTime** | | [optional] +**decisionDate** | **OffsetDateTime** | | [optional] +**description** | **String** | | [optional] +**platform** | **String** | | [optional] +**curated** | **Boolean** | | +**genetic** | **Boolean** | | +**additionalInfo** | **String** | | [optional] +**companionDiagnosticDevice** | [**CompanionDiagnosticDevice**](CompanionDiagnosticDevice.md) | | [optional] +**type** | [**FdaSubmissionType**](FdaSubmissionType.md) | | [optional] +**biomarkerAssociations** | [**Set<BiomarkerAssociation>**](BiomarkerAssociation.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/FdaSubmissionCriteria.md b/oncokbCurationApiClient/docs/FdaSubmissionCriteria.md new file mode 100644 index 0000000..60bac50 --- /dev/null +++ b/oncokbCurationApiClient/docs/FdaSubmissionCriteria.md @@ -0,0 +1,31 @@ + + +# FdaSubmissionCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**number** | [**StringFilter**](StringFilter.md) | | [optional] +**supplementNumber** | [**StringFilter**](StringFilter.md) | | [optional] +**deviceName** | [**StringFilter**](StringFilter.md) | | [optional] +**genericName** | [**StringFilter**](StringFilter.md) | | [optional] +**dateReceived** | [**InstantFilter**](InstantFilter.md) | | [optional] +**decisionDate** | [**InstantFilter**](InstantFilter.md) | | [optional] +**curated** | [**BooleanFilter**](BooleanFilter.md) | | [optional] +**genetic** | [**BooleanFilter**](BooleanFilter.md) | | [optional] +**biomarkerAssociationId** | [**LongFilter**](LongFilter.md) | | [optional] +**companionDiagnosticDeviceId** | [**LongFilter**](LongFilter.md) | | [optional] +**typeId** | [**LongFilter**](LongFilter.md) | | [optional] +**typeName** | [**StringFilter**](StringFilter.md) | | [optional] +**typeShortName** | [**StringFilter**](StringFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/FdaSubmissionResourceApi.md b/oncokbCurationApiClient/docs/FdaSubmissionResourceApi.md new file mode 100644 index 0000000..5ed4420 --- /dev/null +++ b/oncokbCurationApiClient/docs/FdaSubmissionResourceApi.md @@ -0,0 +1,627 @@ +# FdaSubmissionResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countFdaSubmissions**](FdaSubmissionResourceApi.md#countFdaSubmissions) | **GET** /api/fda-submissions/count | +[**createFdaSubmission**](FdaSubmissionResourceApi.md#createFdaSubmission) | **POST** /api/fda-submissions | +[**deleteFdaSubmission**](FdaSubmissionResourceApi.md#deleteFdaSubmission) | **DELETE** /api/fda-submissions/{id} | +[**findFdaSubmissionsByCompanionDiagnosticDevice**](FdaSubmissionResourceApi.md#findFdaSubmissionsByCompanionDiagnosticDevice) | **GET** /api/fda-submissions/companion-diagnostic-device/{id} | +[**getAllFdaSubmissions**](FdaSubmissionResourceApi.md#getAllFdaSubmissions) | **GET** /api/fda-submissions | +[**getFdaSubmission**](FdaSubmissionResourceApi.md#getFdaSubmission) | **GET** /api/fda-submissions/{id} | +[**getFdaSubmissionByNumber**](FdaSubmissionResourceApi.md#getFdaSubmissionByNumber) | **GET** /api/fda-submissions/lookup | +[**partialUpdateFdaSubmission**](FdaSubmissionResourceApi.md#partialUpdateFdaSubmission) | **PATCH** /api/fda-submissions/{id} | +[**searchFdaSubmissions**](FdaSubmissionResourceApi.md#searchFdaSubmissions) | **GET** /api/_search/fda-submissions | +[**updateFdaSubmission**](FdaSubmissionResourceApi.md#updateFdaSubmission) | **PUT** /api/fda-submissions/{id} | + + + +# **countFdaSubmissions** +> Long countFdaSubmissions(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + FdaSubmissionCriteria criteria = new FdaSubmissionCriteria(); // FdaSubmissionCriteria | + try { + Long result = apiInstance.countFdaSubmissions(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#countFdaSubmissions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**FdaSubmissionCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createFdaSubmission** +> FdaSubmission createFdaSubmission(fdaSubmission) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + FdaSubmission fdaSubmission = new FdaSubmission(); // FdaSubmission | + try { + FdaSubmission result = apiInstance.createFdaSubmission(fdaSubmission); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#createFdaSubmission"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fdaSubmission** | [**FdaSubmission**](FdaSubmission.md)| | + +### Return type + +[**FdaSubmission**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteFdaSubmission** +> deleteFdaSubmission(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteFdaSubmission(id); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#deleteFdaSubmission"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **findFdaSubmissionsByCompanionDiagnosticDevice** +> List<FdaSubmission> findFdaSubmissionsByCompanionDiagnosticDevice(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + Long id = 56L; // Long | + try { + List result = apiInstance.findFdaSubmissionsByCompanionDiagnosticDevice(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#findFdaSubmissionsByCompanionDiagnosticDevice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**List<FdaSubmission>**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllFdaSubmissions** +> List<FdaSubmission> getAllFdaSubmissions(criteria, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + FdaSubmissionCriteria criteria = new FdaSubmissionCriteria(); // FdaSubmissionCriteria | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllFdaSubmissions(criteria, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#getAllFdaSubmissions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**FdaSubmissionCriteria**](.md)| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<FdaSubmission>**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getFdaSubmission** +> FdaSubmission getFdaSubmission(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + Long id = 56L; // Long | + try { + FdaSubmission result = apiInstance.getFdaSubmission(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#getFdaSubmission"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**FdaSubmission**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getFdaSubmissionByNumber** +> FdaSubmission getFdaSubmissionByNumber(number, supplementNumber) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + String number = "number_example"; // String | + String supplementNumber = "supplementNumber_example"; // String | + try { + FdaSubmission result = apiInstance.getFdaSubmissionByNumber(number, supplementNumber); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#getFdaSubmissionByNumber"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **number** | **String**| | + **supplementNumber** | **String**| | [optional] + +### Return type + +[**FdaSubmission**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateFdaSubmission** +> FdaSubmission partialUpdateFdaSubmission(id, fdaSubmission) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + Long id = 56L; // Long | + FdaSubmission fdaSubmission = new FdaSubmission(); // FdaSubmission | + try { + FdaSubmission result = apiInstance.partialUpdateFdaSubmission(id, fdaSubmission); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#partialUpdateFdaSubmission"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **fdaSubmission** | [**FdaSubmission**](FdaSubmission.md)| | + +### Return type + +[**FdaSubmission**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchFdaSubmissions** +> List<FdaSubmission> searchFdaSubmissions(query, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + String query = "query_example"; // String | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.searchFdaSubmissions(query, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#searchFdaSubmissions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<FdaSubmission>**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateFdaSubmission** +> FdaSubmission updateFdaSubmission(id, fdaSubmission) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionResourceApi apiInstance = new FdaSubmissionResourceApi(defaultClient); + Long id = 56L; // Long | + FdaSubmission fdaSubmission = new FdaSubmission(); // FdaSubmission | + try { + FdaSubmission result = apiInstance.updateFdaSubmission(id, fdaSubmission); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionResourceApi#updateFdaSubmission"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **fdaSubmission** | [**FdaSubmission**](FdaSubmission.md)| | + +### Return type + +[**FdaSubmission**](FdaSubmission.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/FdaSubmissionType.md b/oncokbCurationApiClient/docs/FdaSubmissionType.md new file mode 100644 index 0000000..c2ebdbf --- /dev/null +++ b/oncokbCurationApiClient/docs/FdaSubmissionType.md @@ -0,0 +1,32 @@ + + +# FdaSubmissionType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**type** | [**TypeEnum**](#TypeEnum) | | +**name** | **String** | | +**shortName** | **String** | | [optional] +**description** | **String** | | [optional] + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +PMA | "PMA" +DE_NOVO | "DE_NOVO" +HDE | "HDE" +PMN | "PMN" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/FdaSubmissionTypeResourceApi.md b/oncokbCurationApiClient/docs/FdaSubmissionTypeResourceApi.md new file mode 100644 index 0000000..02333b3 --- /dev/null +++ b/oncokbCurationApiClient/docs/FdaSubmissionTypeResourceApi.md @@ -0,0 +1,373 @@ +# FdaSubmissionTypeResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createFdaSubmissionType**](FdaSubmissionTypeResourceApi.md#createFdaSubmissionType) | **POST** /api/fda-submission-types | +[**deleteFdaSubmissionType**](FdaSubmissionTypeResourceApi.md#deleteFdaSubmissionType) | **DELETE** /api/fda-submission-types/{id} | +[**getAllFdaSubmissionTypes**](FdaSubmissionTypeResourceApi.md#getAllFdaSubmissionTypes) | **GET** /api/fda-submission-types | +[**getFdaSubmissionType**](FdaSubmissionTypeResourceApi.md#getFdaSubmissionType) | **GET** /api/fda-submission-types/{id} | +[**partialUpdateFdaSubmissionType**](FdaSubmissionTypeResourceApi.md#partialUpdateFdaSubmissionType) | **PATCH** /api/fda-submission-types/{id} | +[**updateFdaSubmissionType**](FdaSubmissionTypeResourceApi.md#updateFdaSubmissionType) | **PUT** /api/fda-submission-types/{id} | + + + +# **createFdaSubmissionType** +> FdaSubmissionType createFdaSubmissionType(fdaSubmissionType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionTypeResourceApi apiInstance = new FdaSubmissionTypeResourceApi(defaultClient); + FdaSubmissionType fdaSubmissionType = new FdaSubmissionType(); // FdaSubmissionType | + try { + FdaSubmissionType result = apiInstance.createFdaSubmissionType(fdaSubmissionType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionTypeResourceApi#createFdaSubmissionType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fdaSubmissionType** | [**FdaSubmissionType**](FdaSubmissionType.md)| | + +### Return type + +[**FdaSubmissionType**](FdaSubmissionType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteFdaSubmissionType** +> deleteFdaSubmissionType(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionTypeResourceApi apiInstance = new FdaSubmissionTypeResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteFdaSubmissionType(id); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionTypeResourceApi#deleteFdaSubmissionType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllFdaSubmissionTypes** +> List<FdaSubmissionType> getAllFdaSubmissionTypes() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionTypeResourceApi apiInstance = new FdaSubmissionTypeResourceApi(defaultClient); + try { + List result = apiInstance.getAllFdaSubmissionTypes(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionTypeResourceApi#getAllFdaSubmissionTypes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<FdaSubmissionType>**](FdaSubmissionType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getFdaSubmissionType** +> FdaSubmissionType getFdaSubmissionType(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionTypeResourceApi apiInstance = new FdaSubmissionTypeResourceApi(defaultClient); + Long id = 56L; // Long | + try { + FdaSubmissionType result = apiInstance.getFdaSubmissionType(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionTypeResourceApi#getFdaSubmissionType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**FdaSubmissionType**](FdaSubmissionType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateFdaSubmissionType** +> FdaSubmissionType partialUpdateFdaSubmissionType(id, fdaSubmissionType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionTypeResourceApi apiInstance = new FdaSubmissionTypeResourceApi(defaultClient); + Long id = 56L; // Long | + FdaSubmissionType fdaSubmissionType = new FdaSubmissionType(); // FdaSubmissionType | + try { + FdaSubmissionType result = apiInstance.partialUpdateFdaSubmissionType(id, fdaSubmissionType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionTypeResourceApi#partialUpdateFdaSubmissionType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **fdaSubmissionType** | [**FdaSubmissionType**](FdaSubmissionType.md)| | + +### Return type + +[**FdaSubmissionType**](FdaSubmissionType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateFdaSubmissionType** +> FdaSubmissionType updateFdaSubmissionType(id, fdaSubmissionType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.FdaSubmissionTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + FdaSubmissionTypeResourceApi apiInstance = new FdaSubmissionTypeResourceApi(defaultClient); + Long id = 56L; // Long | + FdaSubmissionType fdaSubmissionType = new FdaSubmissionType(); // FdaSubmissionType | + try { + FdaSubmissionType result = apiInstance.updateFdaSubmissionType(id, fdaSubmissionType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FdaSubmissionTypeResourceApi#updateFdaSubmissionType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **fdaSubmissionType** | [**FdaSubmissionType**](FdaSubmissionType.md)| | + +### Return type + +[**FdaSubmissionType**](FdaSubmissionType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/Gene.md b/oncokbCurationApiClient/docs/Gene.md similarity index 65% rename from oncokbTranscriptApiClient/docs/Gene.md rename to oncokbCurationApiClient/docs/Gene.md index b309d2c..20b7c26 100644 --- a/oncokbTranscriptApiClient/docs/Gene.md +++ b/oncokbCurationApiClient/docs/Gene.md @@ -7,11 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ensemblGenes** | [**Set<EnsemblGene>**](EnsemblGene.md) | | [optional] +**id** | **Long** | | [optional] **entrezGeneId** | **Integer** | | [optional] -**geneAliases** | [**Set<GeneAlias>**](GeneAlias.md) | | [optional] **hugoSymbol** | **String** | | [optional] -**id** | **Long** | | [optional] ## Implemented Interfaces diff --git a/oncokbTranscriptApiClient/docs/GeneAlias.md b/oncokbCurationApiClient/docs/GeneAlias.md similarity index 100% rename from oncokbTranscriptApiClient/docs/GeneAlias.md rename to oncokbCurationApiClient/docs/GeneAlias.md index 6574c34..cfb2e02 100644 --- a/oncokbTranscriptApiClient/docs/GeneAlias.md +++ b/oncokbCurationApiClient/docs/GeneAlias.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**gene** | [**Gene**](Gene.md) | | [optional] **id** | **Long** | | [optional] **name** | **String** | | [optional] +**gene** | [**Gene**](Gene.md) | | [optional] ## Implemented Interfaces diff --git a/oncokbCurationApiClient/docs/GeneAliasResourceApi.md b/oncokbCurationApiClient/docs/GeneAliasResourceApi.md new file mode 100644 index 0000000..73f4368 --- /dev/null +++ b/oncokbCurationApiClient/docs/GeneAliasResourceApi.md @@ -0,0 +1,373 @@ +# GeneAliasResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createGeneAlias**](GeneAliasResourceApi.md#createGeneAlias) | **POST** /api/gene-aliases | +[**deleteGeneAlias**](GeneAliasResourceApi.md#deleteGeneAlias) | **DELETE** /api/gene-aliases/{id} | +[**getAllGeneAliases**](GeneAliasResourceApi.md#getAllGeneAliases) | **GET** /api/gene-aliases | +[**getGeneAlias**](GeneAliasResourceApi.md#getGeneAlias) | **GET** /api/gene-aliases/{id} | +[**partialUpdateGeneAlias**](GeneAliasResourceApi.md#partialUpdateGeneAlias) | **PATCH** /api/gene-aliases/{id} | +[**updateGeneAlias**](GeneAliasResourceApi.md#updateGeneAlias) | **PUT** /api/gene-aliases/{id} | + + + +# **createGeneAlias** +> GeneAlias createGeneAlias(geneAlias) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneAliasResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneAliasResourceApi apiInstance = new GeneAliasResourceApi(defaultClient); + GeneAlias geneAlias = new GeneAlias(); // GeneAlias | + try { + GeneAlias result = apiInstance.createGeneAlias(geneAlias); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneAliasResourceApi#createGeneAlias"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **geneAlias** | [**GeneAlias**](GeneAlias.md)| | + +### Return type + +[**GeneAlias**](GeneAlias.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteGeneAlias** +> deleteGeneAlias(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneAliasResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneAliasResourceApi apiInstance = new GeneAliasResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteGeneAlias(id); + } catch (ApiException e) { + System.err.println("Exception when calling GeneAliasResourceApi#deleteGeneAlias"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllGeneAliases** +> List<GeneAlias> getAllGeneAliases() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneAliasResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneAliasResourceApi apiInstance = new GeneAliasResourceApi(defaultClient); + try { + List result = apiInstance.getAllGeneAliases(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneAliasResourceApi#getAllGeneAliases"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<GeneAlias>**](GeneAlias.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getGeneAlias** +> GeneAlias getGeneAlias(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneAliasResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneAliasResourceApi apiInstance = new GeneAliasResourceApi(defaultClient); + Long id = 56L; // Long | + try { + GeneAlias result = apiInstance.getGeneAlias(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneAliasResourceApi#getGeneAlias"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**GeneAlias**](GeneAlias.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateGeneAlias** +> GeneAlias partialUpdateGeneAlias(id, geneAlias) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneAliasResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneAliasResourceApi apiInstance = new GeneAliasResourceApi(defaultClient); + Long id = 56L; // Long | + GeneAlias geneAlias = new GeneAlias(); // GeneAlias | + try { + GeneAlias result = apiInstance.partialUpdateGeneAlias(id, geneAlias); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneAliasResourceApi#partialUpdateGeneAlias"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **geneAlias** | [**GeneAlias**](GeneAlias.md)| | + +### Return type + +[**GeneAlias**](GeneAlias.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateGeneAlias** +> GeneAlias updateGeneAlias(id, geneAlias) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneAliasResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneAliasResourceApi apiInstance = new GeneAliasResourceApi(defaultClient); + Long id = 56L; // Long | + GeneAlias geneAlias = new GeneAlias(); // GeneAlias | + try { + GeneAlias result = apiInstance.updateGeneAlias(id, geneAlias); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneAliasResourceApi#updateGeneAlias"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **geneAlias** | [**GeneAlias**](GeneAlias.md)| | + +### Return type + +[**GeneAlias**](GeneAlias.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/GeneControllerApi.md b/oncokbCurationApiClient/docs/GeneControllerApi.md new file mode 100644 index 0000000..88e0b33 --- /dev/null +++ b/oncokbCurationApiClient/docs/GeneControllerApi.md @@ -0,0 +1,130 @@ +# GeneControllerApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**findGeneBySymbol**](GeneControllerApi.md#findGeneBySymbol) | **GET** /api/find-genes | +[**findGenesBySymbols**](GeneControllerApi.md#findGenesBySymbols) | **POST** /api/find-genes | + + + +# **findGeneBySymbol** +> Gene findGeneBySymbol(symbol) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneControllerApi apiInstance = new GeneControllerApi(defaultClient); + String symbol = "symbol_example"; // String | + try { + Gene result = apiInstance.findGeneBySymbol(symbol); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneControllerApi#findGeneBySymbol"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **symbol** | **String**| | + +### Return type + +[**Gene**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **findGenesBySymbols** +> Set<Gene> findGenesBySymbols(requestBody) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneControllerApi apiInstance = new GeneControllerApi(defaultClient); + List requestBody = Arrays.asList(); // List | + try { + Set result = apiInstance.findGenesBySymbols(requestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneControllerApi#findGenesBySymbols"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **requestBody** | [**List<String>**](String.md)| | + +### Return type + +[**Set<Gene>**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/GeneCriteria.md b/oncokbCurationApiClient/docs/GeneCriteria.md new file mode 100644 index 0000000..1933c6e --- /dev/null +++ b/oncokbCurationApiClient/docs/GeneCriteria.md @@ -0,0 +1,23 @@ + + +# GeneCriteria + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**LongFilter**](LongFilter.md) | | [optional] +**entrezGeneId** | [**IntegerFilter**](IntegerFilter.md) | | [optional] +**hugoSymbol** | [**StringFilter**](StringFilter.md) | | [optional] +**geneAliasId** | [**LongFilter**](LongFilter.md) | | [optional] +**ensemblGeneId** | [**LongFilter**](LongFilter.md) | | [optional] +**alterationId** | [**LongFilter**](LongFilter.md) | | [optional] +**distinct** | **Boolean** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/GeneResourceApi.md b/oncokbCurationApiClient/docs/GeneResourceApi.md new file mode 100644 index 0000000..b94cf53 --- /dev/null +++ b/oncokbCurationApiClient/docs/GeneResourceApi.md @@ -0,0 +1,503 @@ +# GeneResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**countGenes**](GeneResourceApi.md#countGenes) | **GET** /api/genes/count | +[**createGene**](GeneResourceApi.md#createGene) | **POST** /api/genes | +[**deleteGene**](GeneResourceApi.md#deleteGene) | **DELETE** /api/genes/{id} | +[**getAllGenes**](GeneResourceApi.md#getAllGenes) | **GET** /api/genes | +[**getGene**](GeneResourceApi.md#getGene) | **GET** /api/genes/{id} | +[**partialUpdateGene**](GeneResourceApi.md#partialUpdateGene) | **PATCH** /api/genes/{id} | +[**searchGenes**](GeneResourceApi.md#searchGenes) | **GET** /api/_search/genes | +[**updateGene**](GeneResourceApi.md#updateGene) | **PUT** /api/genes/{id} | + + + +# **countGenes** +> Long countGenes(criteria) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + GeneCriteria criteria = new GeneCriteria(); // GeneCriteria | + try { + Long result = apiInstance.countGenes(criteria); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#countGenes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**GeneCriteria**](.md)| | + +### Return type + +**Long** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **createGene** +> Gene createGene(gene) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + Gene gene = new Gene(); // Gene | + try { + Gene result = apiInstance.createGene(gene); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#createGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gene** | [**Gene**](Gene.md)| | + +### Return type + +[**Gene**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteGene** +> deleteGene(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteGene(id); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#deleteGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllGenes** +> List<Gene> getAllGenes(criteria, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + GeneCriteria criteria = new GeneCriteria(); // GeneCriteria | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllGenes(criteria, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#getAllGenes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **criteria** | [**GeneCriteria**](.md)| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Gene>**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getGene** +> Gene getGene(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + Long id = 56L; // Long | + try { + Gene result = apiInstance.getGene(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#getGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**Gene**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateGene** +> Gene partialUpdateGene(id, gene) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + Long id = 56L; // Long | + Gene gene = new Gene(); // Gene | + try { + Gene result = apiInstance.partialUpdateGene(id, gene); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#partialUpdateGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **gene** | [**Gene**](Gene.md)| | + +### Return type + +[**Gene**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **searchGenes** +> List<Gene> searchGenes(query, pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + String query = "query_example"; // String | + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.searchGenes(query, pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#searchGenes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Gene>**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateGene** +> Gene updateGene(id, gene) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GeneResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); + Long id = 56L; // Long | + Gene gene = new Gene(); // Gene | + try { + Gene result = apiInstance.updateGene(id, gene); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GeneResourceApi#updateGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **gene** | [**Gene**](Gene.md)| | + +### Return type + +[**Gene**](Gene.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/GenomeFragment.md b/oncokbCurationApiClient/docs/GenomeFragment.md similarity index 100% rename from oncokbTranscriptApiClient/docs/GenomeFragment.md rename to oncokbCurationApiClient/docs/GenomeFragment.md index a8024e1..d6efad7 100644 --- a/oncokbTranscriptApiClient/docs/GenomeFragment.md +++ b/oncokbCurationApiClient/docs/GenomeFragment.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**chromosome** | **String** | | [optional] -**end** | **Integer** | | [optional] **id** | **Long** | | [optional] +**chromosome** | **String** | | [optional] **start** | **Integer** | | [optional] +**end** | **Integer** | | [optional] **strand** | **Integer** | | [optional] -**transcript** | [**Transcript**](Transcript.md) | | [optional] **type** | [**TypeEnum**](#TypeEnum) | | [optional] +**transcript** | [**Transcript**](Transcript.md) | | [optional] @@ -21,9 +21,9 @@ Name | Type | Description | Notes Name | Value ---- | ----- +GENE | "GENE" EXON | "EXON" FIVE_PRIME_UTR | "FIVE_PRIME_UTR" -GENE | "GENE" THREE_PRIME_UTR | "THREE_PRIME_UTR" diff --git a/oncokbCurationApiClient/docs/GenomeFragmentResourceApi.md b/oncokbCurationApiClient/docs/GenomeFragmentResourceApi.md new file mode 100644 index 0000000..401a424 --- /dev/null +++ b/oncokbCurationApiClient/docs/GenomeFragmentResourceApi.md @@ -0,0 +1,377 @@ +# GenomeFragmentResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createGenomeFragment**](GenomeFragmentResourceApi.md#createGenomeFragment) | **POST** /api/genome-fragments | +[**deleteGenomeFragment**](GenomeFragmentResourceApi.md#deleteGenomeFragment) | **DELETE** /api/genome-fragments/{id} | +[**getAllGenomeFragments**](GenomeFragmentResourceApi.md#getAllGenomeFragments) | **GET** /api/genome-fragments | +[**getGenomeFragment**](GenomeFragmentResourceApi.md#getGenomeFragment) | **GET** /api/genome-fragments/{id} | +[**partialUpdateGenomeFragment**](GenomeFragmentResourceApi.md#partialUpdateGenomeFragment) | **PATCH** /api/genome-fragments/{id} | +[**updateGenomeFragment**](GenomeFragmentResourceApi.md#updateGenomeFragment) | **PUT** /api/genome-fragments/{id} | + + + +# **createGenomeFragment** +> GenomeFragment createGenomeFragment(genomeFragment) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GenomeFragmentResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GenomeFragmentResourceApi apiInstance = new GenomeFragmentResourceApi(defaultClient); + GenomeFragment genomeFragment = new GenomeFragment(); // GenomeFragment | + try { + GenomeFragment result = apiInstance.createGenomeFragment(genomeFragment); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GenomeFragmentResourceApi#createGenomeFragment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **genomeFragment** | [**GenomeFragment**](GenomeFragment.md)| | + +### Return type + +[**GenomeFragment**](GenomeFragment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteGenomeFragment** +> deleteGenomeFragment(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GenomeFragmentResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GenomeFragmentResourceApi apiInstance = new GenomeFragmentResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteGenomeFragment(id); + } catch (ApiException e) { + System.err.println("Exception when calling GenomeFragmentResourceApi#deleteGenomeFragment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllGenomeFragments** +> List<GenomeFragment> getAllGenomeFragments(pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GenomeFragmentResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GenomeFragmentResourceApi apiInstance = new GenomeFragmentResourceApi(defaultClient); + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllGenomeFragments(pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GenomeFragmentResourceApi#getAllGenomeFragments"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<GenomeFragment>**](GenomeFragment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getGenomeFragment** +> GenomeFragment getGenomeFragment(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GenomeFragmentResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GenomeFragmentResourceApi apiInstance = new GenomeFragmentResourceApi(defaultClient); + Long id = 56L; // Long | + try { + GenomeFragment result = apiInstance.getGenomeFragment(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GenomeFragmentResourceApi#getGenomeFragment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**GenomeFragment**](GenomeFragment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateGenomeFragment** +> GenomeFragment partialUpdateGenomeFragment(id, genomeFragment) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GenomeFragmentResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GenomeFragmentResourceApi apiInstance = new GenomeFragmentResourceApi(defaultClient); + Long id = 56L; // Long | + GenomeFragment genomeFragment = new GenomeFragment(); // GenomeFragment | + try { + GenomeFragment result = apiInstance.partialUpdateGenomeFragment(id, genomeFragment); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GenomeFragmentResourceApi#partialUpdateGenomeFragment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **genomeFragment** | [**GenomeFragment**](GenomeFragment.md)| | + +### Return type + +[**GenomeFragment**](GenomeFragment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateGenomeFragment** +> GenomeFragment updateGenomeFragment(id, genomeFragment) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.GenomeFragmentResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + GenomeFragmentResourceApi apiInstance = new GenomeFragmentResourceApi(defaultClient); + Long id = 56L; // Long | + GenomeFragment genomeFragment = new GenomeFragment(); // GenomeFragment | + try { + GenomeFragment result = apiInstance.updateGenomeFragment(id, genomeFragment); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GenomeFragmentResourceApi#updateGenomeFragment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **genomeFragment** | [**GenomeFragment**](GenomeFragment.md)| | + +### Return type + +[**GenomeFragment**](GenomeFragment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/Info.md b/oncokbCurationApiClient/docs/Info.md new file mode 100644 index 0000000..e82b516 --- /dev/null +++ b/oncokbCurationApiClient/docs/Info.md @@ -0,0 +1,29 @@ + + +# Info + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**type** | [**TypeEnum**](#TypeEnum) | | +**value** | **String** | | [optional] +**lastUpdated** | **OffsetDateTime** | | [optional] + + + +## Enum: TypeEnum + +Name | Value +---- | ----- +NCIT_VERSION | "NCIT_VERSION" +GENE_LAST_UPDATED | "GENE_LAST_UPDATED" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/InfoResourceApi.md b/oncokbCurationApiClient/docs/InfoResourceApi.md new file mode 100644 index 0000000..e37e89f --- /dev/null +++ b/oncokbCurationApiClient/docs/InfoResourceApi.md @@ -0,0 +1,373 @@ +# InfoResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createInfo**](InfoResourceApi.md#createInfo) | **POST** /api/infos | +[**deleteInfo**](InfoResourceApi.md#deleteInfo) | **DELETE** /api/infos/{id} | +[**getAllInfos**](InfoResourceApi.md#getAllInfos) | **GET** /api/infos | +[**getInfo**](InfoResourceApi.md#getInfo) | **GET** /api/infos/{id} | +[**partialUpdateInfo**](InfoResourceApi.md#partialUpdateInfo) | **PATCH** /api/infos/{id} | +[**updateInfo**](InfoResourceApi.md#updateInfo) | **PUT** /api/infos/{id} | + + + +# **createInfo** +> Info createInfo(info) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.InfoResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + InfoResourceApi apiInstance = new InfoResourceApi(defaultClient); + Info info = new Info(); // Info | + try { + Info result = apiInstance.createInfo(info); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InfoResourceApi#createInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **info** | [**Info**](Info.md)| | + +### Return type + +[**Info**](Info.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteInfo** +> deleteInfo(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.InfoResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + InfoResourceApi apiInstance = new InfoResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteInfo(id); + } catch (ApiException e) { + System.err.println("Exception when calling InfoResourceApi#deleteInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllInfos** +> List<Info> getAllInfos() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.InfoResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + InfoResourceApi apiInstance = new InfoResourceApi(defaultClient); + try { + List result = apiInstance.getAllInfos(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InfoResourceApi#getAllInfos"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<Info>**](Info.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getInfo** +> Info getInfo(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.InfoResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + InfoResourceApi apiInstance = new InfoResourceApi(defaultClient); + Long id = 56L; // Long | + try { + Info result = apiInstance.getInfo(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InfoResourceApi#getInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**Info**](Info.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateInfo** +> Info partialUpdateInfo(id, info) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.InfoResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + InfoResourceApi apiInstance = new InfoResourceApi(defaultClient); + Long id = 56L; // Long | + Info info = new Info(); // Info | + try { + Info result = apiInstance.partialUpdateInfo(id, info); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InfoResourceApi#partialUpdateInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **info** | [**Info**](Info.md)| | + +### Return type + +[**Info**](Info.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateInfo** +> Info updateInfo(id, info) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.InfoResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + InfoResourceApi apiInstance = new InfoResourceApi(defaultClient); + Long id = 56L; // Long | + Info info = new Info(); // Info | + try { + Info result = apiInstance.updateInfo(id, info); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InfoResourceApi#updateInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **info** | [**Info**](Info.md)| | + +### Return type + +[**Info**](Info.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/InstantFilter.md b/oncokbCurationApiClient/docs/InstantFilter.md new file mode 100644 index 0000000..0fc9eaa --- /dev/null +++ b/oncokbCurationApiClient/docs/InstantFilter.md @@ -0,0 +1,25 @@ + + +# InstantFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**equals** | **OffsetDateTime** | | [optional] +**notEquals** | **OffsetDateTime** | | [optional] +**specified** | **Boolean** | | [optional] +**in** | **List<OffsetDateTime>** | | [optional] +**notIn** | **List<OffsetDateTime>** | | [optional] +**greaterThan** | **OffsetDateTime** | | [optional] +**lessThan** | **OffsetDateTime** | | [optional] +**greaterThanOrEqual** | **OffsetDateTime** | | [optional] +**lessThanOrEqual** | **OffsetDateTime** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/IntegerFilter.md b/oncokbCurationApiClient/docs/IntegerFilter.md new file mode 100644 index 0000000..b7ba138 --- /dev/null +++ b/oncokbCurationApiClient/docs/IntegerFilter.md @@ -0,0 +1,25 @@ + + +# IntegerFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**equals** | **Integer** | | [optional] +**notEquals** | **Integer** | | [optional] +**specified** | **Boolean** | | [optional] +**in** | **List<Integer>** | | [optional] +**notIn** | **List<Integer>** | | [optional] +**greaterThan** | **Integer** | | [optional] +**lessThan** | **Integer** | | [optional] +**greaterThanOrEqual** | **Integer** | | [optional] +**lessThanOrEqual** | **Integer** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/LogoutResourceApi.md b/oncokbCurationApiClient/docs/LogoutResourceApi.md new file mode 100644 index 0000000..6f7018e --- /dev/null +++ b/oncokbCurationApiClient/docs/LogoutResourceApi.md @@ -0,0 +1,65 @@ +# LogoutResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**logout**](LogoutResourceApi.md#logout) | **POST** /api/logout | + + + +# **logout** +> Object logout() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.LogoutResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + LogoutResourceApi apiInstance = new LogoutResourceApi(defaultClient); + try { + Object result = apiInstance.logout(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling LogoutResourceApi#logout"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/LongFilter.md b/oncokbCurationApiClient/docs/LongFilter.md new file mode 100644 index 0000000..333360e --- /dev/null +++ b/oncokbCurationApiClient/docs/LongFilter.md @@ -0,0 +1,25 @@ + + +# LongFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**equals** | **Long** | | [optional] +**notEquals** | **Long** | | [optional] +**specified** | **Boolean** | | [optional] +**in** | **List<Long>** | | [optional] +**notIn** | **List<Long>** | | [optional] +**greaterThan** | **Long** | | [optional] +**lessThan** | **Long** | | [optional] +**greaterThanOrEqual** | **Long** | | [optional] +**lessThanOrEqual** | **Long** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbTranscriptApiClient/docs/MatchTranscriptVM.md b/oncokbCurationApiClient/docs/MatchTranscriptVM.md similarity index 100% rename from oncokbTranscriptApiClient/docs/MatchTranscriptVM.md rename to oncokbCurationApiClient/docs/MatchTranscriptVM.md index 9e815af..a20356b 100644 --- a/oncokbTranscriptApiClient/docs/MatchTranscriptVM.md +++ b/oncokbCurationApiClient/docs/MatchTranscriptVM.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**targetReferenceGenome** | [**TargetReferenceGenomeEnum**](#TargetReferenceGenomeEnum) | | [optional] **transcript** | [**TranscriptPairVM**](TranscriptPairVM.md) | | [optional] +**targetReferenceGenome** | [**TargetReferenceGenomeEnum**](#TargetReferenceGenomeEnum) | | [optional] diff --git a/oncokbCurationApiClient/docs/Pageable.md b/oncokbCurationApiClient/docs/Pageable.md new file mode 100644 index 0000000..673427c --- /dev/null +++ b/oncokbCurationApiClient/docs/Pageable.md @@ -0,0 +1,19 @@ + + +# Pageable + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page** | **Integer** | | [optional] +**size** | **Integer** | | [optional] +**sort** | **List<String>** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/PfamDomainRange.md b/oncokbCurationApiClient/docs/PfamDomainRange.md new file mode 100644 index 0000000..299bce2 --- /dev/null +++ b/oncokbCurationApiClient/docs/PfamDomainRange.md @@ -0,0 +1,19 @@ + + +# PfamDomainRange + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pfamDomainId** | **String** | | [optional] +**pfamDomainStart** | **Integer** | | [optional] +**pfamDomainEnd** | **Integer** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/PipelineControllerApi.md b/oncokbCurationApiClient/docs/PipelineControllerApi.md new file mode 100644 index 0000000..5d75329 --- /dev/null +++ b/oncokbCurationApiClient/docs/PipelineControllerApi.md @@ -0,0 +1,120 @@ +# PipelineControllerApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**updateNcit**](PipelineControllerApi.md#updateNcit) | **POST** /api/pipeline/update-ncit | +[**updatePortalGene**](PipelineControllerApi.md#updatePortalGene) | **POST** /api/pipeline/update-gene | + + + +# **updateNcit** +> updateNcit() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.PipelineControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + PipelineControllerApi apiInstance = new PipelineControllerApi(defaultClient); + try { + apiInstance.updateNcit(); + } catch (ApiException e) { + System.err.println("Exception when calling PipelineControllerApi#updateNcit"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updatePortalGene** +> updatePortalGene() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.PipelineControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + PipelineControllerApi apiInstance = new PipelineControllerApi(defaultClient); + try { + apiInstance.updatePortalGene(); + } catch (ApiException e) { + System.err.println("Exception when calling PipelineControllerApi#updatePortalGene"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/SearchControllerApi.md b/oncokbCurationApiClient/docs/SearchControllerApi.md new file mode 100644 index 0000000..4fd7a6e --- /dev/null +++ b/oncokbCurationApiClient/docs/SearchControllerApi.md @@ -0,0 +1,69 @@ +# SearchControllerApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**search**](SearchControllerApi.md#search) | **GET** /api/_search/all | + + + +# **search** +> SearchResultDTO search(query) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SearchControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SearchControllerApi apiInstance = new SearchControllerApi(defaultClient); + String query = "query_example"; // String | + try { + SearchResultDTO result = apiInstance.search(query); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SearchControllerApi#search"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **String**| | + +### Return type + +[**SearchResultDTO**](SearchResultDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/SearchResultDTO.md b/oncokbCurationApiClient/docs/SearchResultDTO.md new file mode 100644 index 0000000..d68f3cf --- /dev/null +++ b/oncokbCurationApiClient/docs/SearchResultDTO.md @@ -0,0 +1,22 @@ + + +# SearchResultDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fdaSubmissions** | [**List<FdaSubmission>**](FdaSubmission.md) | | [optional] +**companionDiagnosticDevices** | [**List<CompanionDiagnosticDevice>**](CompanionDiagnosticDevice.md) | | [optional] +**articles** | [**List<Article>**](Article.md) | | [optional] +**drugs** | [**List<Drug>**](Drug.md) | | [optional] +**genes** | [**List<Gene>**](Gene.md) | | [optional] +**alterations** | [**List<Alteration>**](Alteration.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbTranscriptApiClient/docs/Sequence.md b/oncokbCurationApiClient/docs/Sequence.md similarity index 100% rename from oncokbTranscriptApiClient/docs/Sequence.md rename to oncokbCurationApiClient/docs/Sequence.md index b3be038..9afdc35 100644 --- a/oncokbTranscriptApiClient/docs/Sequence.md +++ b/oncokbCurationApiClient/docs/Sequence.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Long** | | [optional] -**sequence** | **String** | | [optional] **sequenceType** | [**SequenceTypeEnum**](#SequenceTypeEnum) | | [optional] +**sequence** | **String** | | [optional] **transcript** | [**Transcript**](Transcript.md) | | [optional] @@ -18,8 +18,8 @@ Name | Type | Description | Notes Name | Value ---- | ----- -CDNA | "CDNA" PROTEIN | "PROTEIN" +CDNA | "CDNA" ## Implemented Interfaces diff --git a/oncokbCurationApiClient/docs/SequenceControllerApi.md b/oncokbCurationApiClient/docs/SequenceControllerApi.md new file mode 100644 index 0000000..debe663 --- /dev/null +++ b/oncokbCurationApiClient/docs/SequenceControllerApi.md @@ -0,0 +1,138 @@ +# SequenceControllerApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**findCanonicalSequence**](SequenceControllerApi.md#findCanonicalSequence) | **GET** /api/find-canonical-sequences | +[**findCanonicalSequences**](SequenceControllerApi.md#findCanonicalSequences) | **POST** /api/find-canonical-sequences | + + + +# **findCanonicalSequence** +> Sequence findCanonicalSequence(referenceGenome, entrezGeneId, sequenceType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceControllerApi apiInstance = new SequenceControllerApi(defaultClient); + String referenceGenome = "GRCh37"; // String | + Integer entrezGeneId = 56; // Integer | + String sequenceType = "PROTEIN"; // String | + try { + Sequence result = apiInstance.findCanonicalSequence(referenceGenome, entrezGeneId, sequenceType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceControllerApi#findCanonicalSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **referenceGenome** | **String**| | [enum: GRCh37, GRCh38] + **entrezGeneId** | **Integer**| | + **sequenceType** | **String**| | [optional] [default to PROTEIN] [enum: PROTEIN, CDNA] + +### Return type + +[**Sequence**](Sequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **findCanonicalSequences** +> List<Sequence> findCanonicalSequences(referenceGenome, requestBody, sequenceType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceControllerApi apiInstance = new SequenceControllerApi(defaultClient); + String referenceGenome = "GRCh37"; // String | + List requestBody = Arrays.asList(); // List | + String sequenceType = "PROTEIN"; // String | + try { + List result = apiInstance.findCanonicalSequences(referenceGenome, requestBody, sequenceType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceControllerApi#findCanonicalSequences"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **referenceGenome** | **String**| | [enum: GRCh37, GRCh38] + **requestBody** | [**List<Integer>**](Integer.md)| | + **sequenceType** | **String**| | [optional] [default to PROTEIN] [enum: PROTEIN, CDNA] + +### Return type + +[**List<Sequence>**](Sequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/SequenceResourceApi.md b/oncokbCurationApiClient/docs/SequenceResourceApi.md new file mode 100644 index 0000000..f3c7e1a --- /dev/null +++ b/oncokbCurationApiClient/docs/SequenceResourceApi.md @@ -0,0 +1,377 @@ +# SequenceResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createSequence**](SequenceResourceApi.md#createSequence) | **POST** /api/sequences | +[**deleteSequence**](SequenceResourceApi.md#deleteSequence) | **DELETE** /api/sequences/{id} | +[**getAllSequences**](SequenceResourceApi.md#getAllSequences) | **GET** /api/sequences | +[**getSequence**](SequenceResourceApi.md#getSequence) | **GET** /api/sequences/{id} | +[**partialUpdateSequence**](SequenceResourceApi.md#partialUpdateSequence) | **PATCH** /api/sequences/{id} | +[**updateSequence**](SequenceResourceApi.md#updateSequence) | **PUT** /api/sequences/{id} | + + + +# **createSequence** +> Sequence createSequence(sequence) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceResourceApi apiInstance = new SequenceResourceApi(defaultClient); + Sequence sequence = new Sequence(); // Sequence | + try { + Sequence result = apiInstance.createSequence(sequence); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceResourceApi#createSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sequence** | [**Sequence**](Sequence.md)| | + +### Return type + +[**Sequence**](Sequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteSequence** +> deleteSequence(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceResourceApi apiInstance = new SequenceResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteSequence(id); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceResourceApi#deleteSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllSequences** +> List<Sequence> getAllSequences(pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceResourceApi apiInstance = new SequenceResourceApi(defaultClient); + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllSequences(pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceResourceApi#getAllSequences"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<Sequence>**](Sequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getSequence** +> Sequence getSequence(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceResourceApi apiInstance = new SequenceResourceApi(defaultClient); + Long id = 56L; // Long | + try { + Sequence result = apiInstance.getSequence(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceResourceApi#getSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**Sequence**](Sequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateSequence** +> Sequence partialUpdateSequence(id, sequence) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceResourceApi apiInstance = new SequenceResourceApi(defaultClient); + Long id = 56L; // Long | + Sequence sequence = new Sequence(); // Sequence | + try { + Sequence result = apiInstance.partialUpdateSequence(id, sequence); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceResourceApi#partialUpdateSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **sequence** | [**Sequence**](Sequence.md)| | + +### Return type + +[**Sequence**](Sequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateSequence** +> Sequence updateSequence(id, sequence) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SequenceResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SequenceResourceApi apiInstance = new SequenceResourceApi(defaultClient); + Long id = 56L; // Long | + Sequence sequence = new Sequence(); // Sequence | + try { + Sequence result = apiInstance.updateSequence(id, sequence); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SequenceResourceApi#updateSequence"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **sequence** | [**Sequence**](Sequence.md)| | + +### Return type + +[**Sequence**](Sequence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/SpecimenType.md b/oncokbCurationApiClient/docs/SpecimenType.md new file mode 100644 index 0000000..f2dae0d --- /dev/null +++ b/oncokbCurationApiClient/docs/SpecimenType.md @@ -0,0 +1,20 @@ + + +# SpecimenType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**type** | **String** | | +**name** | **String** | | +**companionDiagnosticDevices** | [**Set<CompanionDiagnosticDevice>**](CompanionDiagnosticDevice.md) | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/SpecimenTypeResourceApi.md b/oncokbCurationApiClient/docs/SpecimenTypeResourceApi.md new file mode 100644 index 0000000..5401d1a --- /dev/null +++ b/oncokbCurationApiClient/docs/SpecimenTypeResourceApi.md @@ -0,0 +1,373 @@ +# SpecimenTypeResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createSpecimenType**](SpecimenTypeResourceApi.md#createSpecimenType) | **POST** /api/specimen-types | +[**deleteSpecimenType**](SpecimenTypeResourceApi.md#deleteSpecimenType) | **DELETE** /api/specimen-types/{id} | +[**getAllSpecimenTypes**](SpecimenTypeResourceApi.md#getAllSpecimenTypes) | **GET** /api/specimen-types | +[**getSpecimenType**](SpecimenTypeResourceApi.md#getSpecimenType) | **GET** /api/specimen-types/{id} | +[**partialUpdateSpecimenType**](SpecimenTypeResourceApi.md#partialUpdateSpecimenType) | **PATCH** /api/specimen-types/{id} | +[**updateSpecimenType**](SpecimenTypeResourceApi.md#updateSpecimenType) | **PUT** /api/specimen-types/{id} | + + + +# **createSpecimenType** +> SpecimenType createSpecimenType(specimenType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SpecimenTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SpecimenTypeResourceApi apiInstance = new SpecimenTypeResourceApi(defaultClient); + SpecimenType specimenType = new SpecimenType(); // SpecimenType | + try { + SpecimenType result = apiInstance.createSpecimenType(specimenType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpecimenTypeResourceApi#createSpecimenType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **specimenType** | [**SpecimenType**](SpecimenType.md)| | + +### Return type + +[**SpecimenType**](SpecimenType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteSpecimenType** +> deleteSpecimenType(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SpecimenTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SpecimenTypeResourceApi apiInstance = new SpecimenTypeResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteSpecimenType(id); + } catch (ApiException e) { + System.err.println("Exception when calling SpecimenTypeResourceApi#deleteSpecimenType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllSpecimenTypes** +> List<SpecimenType> getAllSpecimenTypes() + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SpecimenTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SpecimenTypeResourceApi apiInstance = new SpecimenTypeResourceApi(defaultClient); + try { + List result = apiInstance.getAllSpecimenTypes(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpecimenTypeResourceApi#getAllSpecimenTypes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<SpecimenType>**](SpecimenType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getSpecimenType** +> SpecimenType getSpecimenType(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SpecimenTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SpecimenTypeResourceApi apiInstance = new SpecimenTypeResourceApi(defaultClient); + Long id = 56L; // Long | + try { + SpecimenType result = apiInstance.getSpecimenType(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpecimenTypeResourceApi#getSpecimenType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**SpecimenType**](SpecimenType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateSpecimenType** +> SpecimenType partialUpdateSpecimenType(id, specimenType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SpecimenTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SpecimenTypeResourceApi apiInstance = new SpecimenTypeResourceApi(defaultClient); + Long id = 56L; // Long | + SpecimenType specimenType = new SpecimenType(); // SpecimenType | + try { + SpecimenType result = apiInstance.partialUpdateSpecimenType(id, specimenType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpecimenTypeResourceApi#partialUpdateSpecimenType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **specimenType** | [**SpecimenType**](SpecimenType.md)| | + +### Return type + +[**SpecimenType**](SpecimenType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateSpecimenType** +> SpecimenType updateSpecimenType(id, specimenType) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.SpecimenTypeResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + SpecimenTypeResourceApi apiInstance = new SpecimenTypeResourceApi(defaultClient); + Long id = 56L; // Long | + SpecimenType specimenType = new SpecimenType(); // SpecimenType | + try { + SpecimenType result = apiInstance.updateSpecimenType(id, specimenType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SpecimenTypeResourceApi#updateSpecimenType"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **specimenType** | [**SpecimenType**](SpecimenType.md)| | + +### Return type + +[**SpecimenType**](SpecimenType.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbCurationApiClient/docs/StringFilter.md b/oncokbCurationApiClient/docs/StringFilter.md new file mode 100644 index 0000000..82ad283 --- /dev/null +++ b/oncokbCurationApiClient/docs/StringFilter.md @@ -0,0 +1,23 @@ + + +# StringFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**equals** | **String** | | [optional] +**notEquals** | **String** | | [optional] +**specified** | **Boolean** | | [optional] +**in** | **List<String>** | | [optional] +**notIn** | **List<String>** | | [optional] +**contains** | **String** | | [optional] +**doesNotContain** | **String** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbTranscriptApiClient/docs/Transcript.md b/oncokbCurationApiClient/docs/Transcript.md similarity index 100% rename from oncokbTranscriptApiClient/docs/Transcript.md rename to oncokbCurationApiClient/docs/Transcript.md index 145d789..b7173ed 100644 --- a/oncokbTranscriptApiClient/docs/Transcript.md +++ b/oncokbCurationApiClient/docs/Transcript.md @@ -7,15 +7,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**ensemblTranscriptId** | **String** | | [optional] **canonical** | **Boolean** | | -**description** | **String** | | [optional] -**ensemblGene** | [**EnsemblGene**](EnsemblGene.md) | | [optional] **ensemblProteinId** | **String** | | [optional] -**ensemblTranscriptId** | **String** | | [optional] -**fragments** | [**Set<GenomeFragment>**](GenomeFragment.md) | | [optional] -**id** | **Long** | | [optional] **referenceSequenceId** | **String** | | [optional] +**description** | **String** | | [optional] +**fragments** | [**Set<GenomeFragment>**](GenomeFragment.md) | | [optional] **sequences** | [**Set<Sequence>**](Sequence.md) | | [optional] +**ensemblGene** | [**EnsemblGene**](EnsemblGene.md) | | [optional] ## Implemented Interfaces diff --git a/oncokbTranscriptApiClient/docs/TranscriptComparisonResultVM.md b/oncokbCurationApiClient/docs/TranscriptComparisonResultVM.md similarity index 100% rename from oncokbTranscriptApiClient/docs/TranscriptComparisonResultVM.md rename to oncokbCurationApiClient/docs/TranscriptComparisonResultVM.md diff --git a/oncokbTranscriptApiClient/docs/TranscriptComparisonVM.md b/oncokbCurationApiClient/docs/TranscriptComparisonVM.md similarity index 100% rename from oncokbTranscriptApiClient/docs/TranscriptComparisonVM.md rename to oncokbCurationApiClient/docs/TranscriptComparisonVM.md diff --git a/oncokbCurationApiClient/docs/TranscriptControllerApi.md b/oncokbCurationApiClient/docs/TranscriptControllerApi.md new file mode 100644 index 0000000..791c7aa --- /dev/null +++ b/oncokbCurationApiClient/docs/TranscriptControllerApi.md @@ -0,0 +1,327 @@ +# TranscriptControllerApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**addTranscript**](TranscriptControllerApi.md#addTranscript) | **POST** /api/add-transcript | +[**compareTranscript**](TranscriptControllerApi.md#compareTranscript) | **POST** /api/compare-transcript/{hugoSymbol} | +[**findTranscriptsByEnsemblIds**](TranscriptControllerApi.md#findTranscriptsByEnsemblIds) | **POST** /api/find-transcripts-by-ensembl-ids | +[**matchTranscript**](TranscriptControllerApi.md#matchTranscript) | **POST** /api/match-transcript/{hugoSymbol} | +[**suggestVariant**](TranscriptControllerApi.md#suggestVariant) | **GET** /api/suggest-variant/{hugoSymbol} | + + + +# **addTranscript** +> TranscriptDTO addTranscript(addTranscriptBody) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); + AddTranscriptBody addTranscriptBody = new AddTranscriptBody(); // AddTranscriptBody | + try { + TranscriptDTO result = apiInstance.addTranscript(addTranscriptBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptControllerApi#addTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addTranscriptBody** | [**AddTranscriptBody**](AddTranscriptBody.md)| | + +### Return type + +[**TranscriptDTO**](TranscriptDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **compareTranscript** +> TranscriptComparisonResultVM compareTranscript(hugoSymbol, transcriptComparisonVM) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); + String hugoSymbol = "hugoSymbol_example"; // String | + TranscriptComparisonVM transcriptComparisonVM = new TranscriptComparisonVM(); // TranscriptComparisonVM | + try { + TranscriptComparisonResultVM result = apiInstance.compareTranscript(hugoSymbol, transcriptComparisonVM); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptControllerApi#compareTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hugoSymbol** | **String**| | + **transcriptComparisonVM** | [**TranscriptComparisonVM**](TranscriptComparisonVM.md)| | + +### Return type + +[**TranscriptComparisonResultVM**](TranscriptComparisonResultVM.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **findTranscriptsByEnsemblIds** +> List<TranscriptDTO> findTranscriptsByEnsemblIds(referenceGenome, requestBody) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); + String referenceGenome = "GRCh37"; // String | + List requestBody = Arrays.asList(); // List | + try { + List result = apiInstance.findTranscriptsByEnsemblIds(referenceGenome, requestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptControllerApi#findTranscriptsByEnsemblIds"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **referenceGenome** | **String**| | [enum: GRCh37, GRCh38] + **requestBody** | [**List<String>**](String.md)| | + +### Return type + +[**List<TranscriptDTO>**](TranscriptDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **matchTranscript** +> TranscriptMatchResultVM matchTranscript(hugoSymbol, matchTranscriptVM) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); + String hugoSymbol = "hugoSymbol_example"; // String | + MatchTranscriptVM matchTranscriptVM = new MatchTranscriptVM(); // MatchTranscriptVM | + try { + TranscriptMatchResultVM result = apiInstance.matchTranscript(hugoSymbol, matchTranscriptVM); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptControllerApi#matchTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hugoSymbol** | **String**| | + **matchTranscriptVM** | [**MatchTranscriptVM**](MatchTranscriptVM.md)| | + +### Return type + +[**TranscriptMatchResultVM**](TranscriptMatchResultVM.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **suggestVariant** +> AllReferenceTranscriptSuggestionVM suggestVariant(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptControllerApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); + String hugoSymbol = "hugoSymbol_example"; // String | + Integer proteinPosition = 56; // Integer | + String curatedResidue = "curatedResidue_example"; // String | + String grch37Transcript = "grch37Transcript_example"; // String | + String grch38Transcript = "grch38Transcript_example"; // String | + try { + AllReferenceTranscriptSuggestionVM result = apiInstance.suggestVariant(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptControllerApi#suggestVariant"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hugoSymbol** | **String**| | + **proteinPosition** | **Integer**| | + **curatedResidue** | **String**| | + **grch37Transcript** | **String**| | + **grch38Transcript** | **String**| | + +### Return type + +[**AllReferenceTranscriptSuggestionVM**](AllReferenceTranscriptSuggestionVM.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/TranscriptDTO.md b/oncokbCurationApiClient/docs/TranscriptDTO.md similarity index 100% rename from oncokbTranscriptApiClient/docs/TranscriptDTO.md rename to oncokbCurationApiClient/docs/TranscriptDTO.md index e99b1e5..509f4e1 100644 --- a/oncokbTranscriptApiClient/docs/TranscriptDTO.md +++ b/oncokbCurationApiClient/docs/TranscriptDTO.md @@ -7,18 +7,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**ensemblTranscriptId** | **String** | | [optional] **canonical** | **Boolean** | | -**chromosome** | **String** | | [optional] -**description** | **String** | | [optional] -**end** | **Integer** | | [optional] -**ensemblGene** | [**EnsemblGene**](EnsemblGene.md) | | [optional] **ensemblProteinId** | **String** | | [optional] -**ensemblTranscriptId** | **String** | | [optional] -**exons** | [**List<GenomeFragment>**](GenomeFragment.md) | | [optional] -**id** | **Long** | | [optional] **referenceSequenceId** | **String** | | [optional] -**start** | **Integer** | | [optional] +**description** | **String** | | [optional] +**ensemblGene** | [**EnsemblGene**](EnsemblGene.md) | | [optional] **strand** | **Integer** | | [optional] +**chromosome** | **String** | | [optional] +**start** | **Integer** | | [optional] +**end** | **Integer** | | [optional] +**exons** | [**List<GenomeFragment>**](GenomeFragment.md) | | [optional] **utrs** | [**List<GenomeFragment>**](GenomeFragment.md) | | [optional] diff --git a/oncokbTranscriptApiClient/docs/TranscriptMatchResultVM.md b/oncokbCurationApiClient/docs/TranscriptMatchResultVM.md similarity index 100% rename from oncokbTranscriptApiClient/docs/TranscriptMatchResultVM.md rename to oncokbCurationApiClient/docs/TranscriptMatchResultVM.md diff --git a/oncokbTranscriptApiClient/docs/TranscriptPairVM.md b/oncokbCurationApiClient/docs/TranscriptPairVM.md similarity index 100% rename from oncokbTranscriptApiClient/docs/TranscriptPairVM.md rename to oncokbCurationApiClient/docs/TranscriptPairVM.md diff --git a/oncokbCurationApiClient/docs/TranscriptResourceApi.md b/oncokbCurationApiClient/docs/TranscriptResourceApi.md new file mode 100644 index 0000000..2df38d5 --- /dev/null +++ b/oncokbCurationApiClient/docs/TranscriptResourceApi.md @@ -0,0 +1,377 @@ +# TranscriptResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createTranscript**](TranscriptResourceApi.md#createTranscript) | **POST** /api/transcripts | +[**deleteTranscript**](TranscriptResourceApi.md#deleteTranscript) | **DELETE** /api/transcripts/{id} | +[**getAllTranscripts**](TranscriptResourceApi.md#getAllTranscripts) | **GET** /api/transcripts | +[**getTranscript**](TranscriptResourceApi.md#getTranscript) | **GET** /api/transcripts/{id} | +[**partialUpdateTranscript**](TranscriptResourceApi.md#partialUpdateTranscript) | **PATCH** /api/transcripts/{id} | +[**updateTranscript**](TranscriptResourceApi.md#updateTranscript) | **PUT** /api/transcripts/{id} | + + + +# **createTranscript** +> TranscriptDTO createTranscript(transcriptDTO) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptResourceApi apiInstance = new TranscriptResourceApi(defaultClient); + TranscriptDTO transcriptDTO = new TranscriptDTO(); // TranscriptDTO | + try { + TranscriptDTO result = apiInstance.createTranscript(transcriptDTO); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptResourceApi#createTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transcriptDTO** | [**TranscriptDTO**](TranscriptDTO.md)| | + +### Return type + +[**TranscriptDTO**](TranscriptDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteTranscript** +> deleteTranscript(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptResourceApi apiInstance = new TranscriptResourceApi(defaultClient); + Long id = 56L; // Long | + try { + apiInstance.deleteTranscript(id); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptResourceApi#deleteTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllTranscripts** +> List<TranscriptDTO> getAllTranscripts(pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptResourceApi apiInstance = new TranscriptResourceApi(defaultClient); + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllTranscripts(pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptResourceApi#getAllTranscripts"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<TranscriptDTO>**](TranscriptDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getTranscript** +> TranscriptDTO getTranscript(id) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptResourceApi apiInstance = new TranscriptResourceApi(defaultClient); + Long id = 56L; // Long | + try { + TranscriptDTO result = apiInstance.getTranscript(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptResourceApi#getTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + +### Return type + +[**TranscriptDTO**](TranscriptDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **partialUpdateTranscript** +> TranscriptDTO partialUpdateTranscript(id, transcriptDTO) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptResourceApi apiInstance = new TranscriptResourceApi(defaultClient); + Long id = 56L; // Long | + TranscriptDTO transcriptDTO = new TranscriptDTO(); // TranscriptDTO | + try { + TranscriptDTO result = apiInstance.partialUpdateTranscript(id, transcriptDTO); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptResourceApi#partialUpdateTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **transcriptDTO** | [**TranscriptDTO**](TranscriptDTO.md)| | + +### Return type + +[**TranscriptDTO**](TranscriptDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/merge-patch+json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateTranscript** +> TranscriptDTO updateTranscript(id, transcriptDTO) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.TranscriptResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + TranscriptResourceApi apiInstance = new TranscriptResourceApi(defaultClient); + Long id = 56L; // Long | + TranscriptDTO transcriptDTO = new TranscriptDTO(); // TranscriptDTO | + try { + TranscriptDTO result = apiInstance.updateTranscript(id, transcriptDTO); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TranscriptResourceApi#updateTranscript"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **transcriptDTO** | [**TranscriptDTO**](TranscriptDTO.md)| | + +### Return type + +[**TranscriptDTO**](TranscriptDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/docs/TranscriptSuggestionVM.md b/oncokbCurationApiClient/docs/TranscriptSuggestionVM.md similarity index 100% rename from oncokbTranscriptApiClient/docs/TranscriptSuggestionVM.md rename to oncokbCurationApiClient/docs/TranscriptSuggestionVM.md index 36da91f..148833a 100644 --- a/oncokbTranscriptApiClient/docs/TranscriptSuggestionVM.md +++ b/oncokbCurationApiClient/docs/TranscriptSuggestionVM.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**note** | **String** | | [optional] **referenceGenome** | [**ReferenceGenomeEnum**](#ReferenceGenomeEnum) | | [optional] +**note** | **String** | | [optional] **suggestions** | **List<String>** | | [optional] diff --git a/oncokbCurationApiClient/docs/TumorFormFilter.md b/oncokbCurationApiClient/docs/TumorFormFilter.md new file mode 100644 index 0000000..238f14d --- /dev/null +++ b/oncokbCurationApiClient/docs/TumorFormFilter.md @@ -0,0 +1,61 @@ + + +# TumorFormFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**equals** | [**EqualsEnum**](#EqualsEnum) | | [optional] +**notEquals** | [**NotEqualsEnum**](#NotEqualsEnum) | | [optional] +**specified** | **Boolean** | | [optional] +**in** | [**List<InEnum>**](#List<InEnum>) | | [optional] +**notIn** | [**List<NotInEnum>**](#List<NotInEnum>) | | [optional] + + + +## Enum: EqualsEnum + +Name | Value +---- | ----- +SOLID | "SOLID" +LIQUID | "LIQUID" +MIXED | "MIXED" + + + +## Enum: NotEqualsEnum + +Name | Value +---- | ----- +SOLID | "SOLID" +LIQUID | "LIQUID" +MIXED | "MIXED" + + + +## Enum: List<InEnum> + +Name | Value +---- | ----- +SOLID | "SOLID" +LIQUID | "LIQUID" +MIXED | "MIXED" + + + +## Enum: List<NotInEnum> + +Name | Value +---- | ----- +SOLID | "SOLID" +LIQUID | "LIQUID" +MIXED | "MIXED" + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/UntranslatedRegion.md b/oncokbCurationApiClient/docs/UntranslatedRegion.md new file mode 100644 index 0000000..52e171a --- /dev/null +++ b/oncokbCurationApiClient/docs/UntranslatedRegion.md @@ -0,0 +1,20 @@ + + +# UntranslatedRegion + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | | [optional] +**start** | **Integer** | | [optional] +**end** | **Integer** | | [optional] +**strand** | **Integer** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/User.md b/oncokbCurationApiClient/docs/User.md new file mode 100644 index 0000000..60ad752 --- /dev/null +++ b/oncokbCurationApiClient/docs/User.md @@ -0,0 +1,24 @@ + + +# User + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**login** | **String** | | +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] +**email** | **String** | | [optional] +**activated** | **Boolean** | | +**langKey** | **String** | | [optional] +**imageUrl** | **String** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/UserDTO.md b/oncokbCurationApiClient/docs/UserDTO.md new file mode 100644 index 0000000..b3157d6 --- /dev/null +++ b/oncokbCurationApiClient/docs/UserDTO.md @@ -0,0 +1,29 @@ + + +# UserDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Long** | | [optional] +**login** | **String** | | +**firstName** | **String** | | [optional] +**lastName** | **String** | | [optional] +**email** | **String** | | [optional] +**imageUrl** | **String** | | [optional] +**activated** | **Boolean** | | [optional] +**langKey** | **String** | | [optional] +**createdBy** | **String** | | [optional] +**createdDate** | **OffsetDateTime** | | [optional] +**lastModifiedBy** | **String** | | [optional] +**lastModifiedDate** | **OffsetDateTime** | | [optional] +**authorities** | **Set<String>** | | [optional] + + +## Implemented Interfaces + +* Serializable + + diff --git a/oncokbCurationApiClient/docs/UserResourceApi.md b/oncokbCurationApiClient/docs/UserResourceApi.md new file mode 100644 index 0000000..c4229b2 --- /dev/null +++ b/oncokbCurationApiClient/docs/UserResourceApi.md @@ -0,0 +1,314 @@ +# UserResourceApi + +All URIs are relative to *http://beta.curation.oncokb.dev.aws.mskcc.org* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createUser**](UserResourceApi.md#createUser) | **POST** /api/admin/users | +[**deleteUser**](UserResourceApi.md#deleteUser) | **DELETE** /api/admin/users/{login} | +[**getAllUsers**](UserResourceApi.md#getAllUsers) | **GET** /api/admin/users | +[**getUser**](UserResourceApi.md#getUser) | **GET** /api/admin/users/{login} | +[**updateUser**](UserResourceApi.md#updateUser) | **PUT** /api/admin/users/{id} | + + + +# **createUser** +> User createUser(userDTO) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.UserResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + UserResourceApi apiInstance = new UserResourceApi(defaultClient); + UserDTO userDTO = new UserDTO(); // UserDTO | + try { + User result = apiInstance.createUser(userDTO); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserResourceApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userDTO** | [**UserDTO**](UserDTO.md)| | + +### Return type + +[**User**](User.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **deleteUser** +> deleteUser(login) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.UserResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + UserResourceApi apiInstance = new UserResourceApi(defaultClient); + String login = "login_example"; // String | + try { + apiInstance.deleteUser(login); + } catch (ApiException e) { + System.err.println("Exception when calling UserResourceApi#deleteUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **login** | **String**| | + +### Return type + +null (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getAllUsers** +> List<UserDTO> getAllUsers(pageable) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.UserResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + UserResourceApi apiInstance = new UserResourceApi(defaultClient); + Pageable pageable = new Pageable(); // Pageable | + try { + List result = apiInstance.getAllUsers(pageable); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserResourceApi#getAllUsers"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageable** | [**Pageable**](.md)| | + +### Return type + +[**List<UserDTO>**](UserDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **getUser** +> UserDTO getUser(login) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.UserResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + UserResourceApi apiInstance = new UserResourceApi(defaultClient); + String login = "login_example"; // String | + try { + UserDTO result = apiInstance.getUser(login); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserResourceApi#getUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **login** | **String**| | + +### Return type + +[**UserDTO**](UserDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + + +# **updateUser** +> UserDTO updateUser(id, userDTO) + + + +### Example +```java +// Import classes: +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.models.*; +import org.oncokb.oncokb_curation.client.UserResourceApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://beta.curation.oncokb.dev.aws.mskcc.org"); + + UserResourceApi apiInstance = new UserResourceApi(defaultClient); + Long id = 56L; // Long | + UserDTO userDTO = new UserDTO(); // UserDTO | + try { + UserDTO result = apiInstance.updateUser(id, userDTO); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserResourceApi#updateUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Long**| | + **userDTO** | [**UserDTO**](UserDTO.md)| | + +### Return type + +[**UserDTO**](UserDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: */* + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + diff --git a/oncokbTranscriptApiClient/git_push.sh b/oncokbCurationApiClient/git_push.sh similarity index 100% rename from oncokbTranscriptApiClient/git_push.sh rename to oncokbCurationApiClient/git_push.sh diff --git a/oncokbTranscriptApiClient/gradle.properties b/oncokbCurationApiClient/gradle.properties similarity index 100% rename from oncokbTranscriptApiClient/gradle.properties rename to oncokbCurationApiClient/gradle.properties diff --git a/oncokbTranscriptApiClient/gradle/wrapper/gradle-wrapper.jar b/oncokbCurationApiClient/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from oncokbTranscriptApiClient/gradle/wrapper/gradle-wrapper.jar rename to oncokbCurationApiClient/gradle/wrapper/gradle-wrapper.jar diff --git a/oncokbTranscriptApiClient/gradle/wrapper/gradle-wrapper.properties b/oncokbCurationApiClient/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from oncokbTranscriptApiClient/gradle/wrapper/gradle-wrapper.properties rename to oncokbCurationApiClient/gradle/wrapper/gradle-wrapper.properties diff --git a/oncokbTranscriptApiClient/gradlew b/oncokbCurationApiClient/gradlew similarity index 100% rename from oncokbTranscriptApiClient/gradlew rename to oncokbCurationApiClient/gradlew diff --git a/oncokbTranscriptApiClient/gradlew.bat b/oncokbCurationApiClient/gradlew.bat similarity index 100% rename from oncokbTranscriptApiClient/gradlew.bat rename to oncokbCurationApiClient/gradlew.bat diff --git a/oncokbTranscriptApiClient/pom.xml b/oncokbCurationApiClient/pom.xml similarity index 98% rename from oncokbTranscriptApiClient/pom.xml rename to oncokbCurationApiClient/pom.xml index 0331c71..842755b 100644 --- a/oncokbTranscriptApiClient/pom.xml +++ b/oncokbCurationApiClient/pom.xml @@ -1,11 +1,11 @@ 4.0.0 - org.oncokb.oncokb-transcript.client - oncokbTranscriptApiClient + org.oncokb.oncokb-curation.client + oncokbCurationApiClient jar - oncokbTranscriptApiClient - 0.0.1-SNAPSHOT + oncokbCurationApiClient + 1.0.0-SNAPSHOT https://github.com/openapitools/openapi-generator OpenAPI Java diff --git a/oncokbCurationApiClient/settings.gradle b/oncokbCurationApiClient/settings.gradle new file mode 100644 index 0000000..dd6408e --- /dev/null +++ b/oncokbCurationApiClient/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "oncokbCurationApiClient" \ No newline at end of file diff --git a/oncokbCurationApiClient/src/main/AndroidManifest.xml b/oncokbCurationApiClient/src/main/AndroidManifest.xml new file mode 100644 index 0000000..ef3801f --- /dev/null +++ b/oncokbCurationApiClient/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + + diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiCallback.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiCallback.java similarity index 88% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiCallback.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiCallback.java index 45c126c..bc36b1b 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiCallback.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiCallback.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import java.io.IOException; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiClient.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiClient.java similarity index 97% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiClient.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiClient.java index c67dc20..34af6b8 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiClient.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiClient.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import okhttp3.*; import okhttp3.internal.http.HttpMethod; @@ -50,17 +50,17 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import org.oncokb.oncokb_transcript.auth.Authentication; -import org.oncokb.oncokb_transcript.auth.HttpBasicAuth; -import org.oncokb.oncokb_transcript.auth.HttpBearerAuth; -import org.oncokb.oncokb_transcript.auth.ApiKeyAuth; +import org.oncokb.oncokb_curation.auth.Authentication; +import org.oncokb.oncokb_curation.auth.HttpBasicAuth; +import org.oncokb.oncokb_curation.auth.HttpBearerAuth; +import org.oncokb.oncokb_curation.auth.ApiKeyAuth; /** *

ApiClient class.

*/ public class ApiClient { - private String basePath = "https://transcript.oncokb.org:443"; + private String basePath = "http://beta.curation.oncokb.dev.aws.mskcc.org"; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private Map defaultCookieMap = new HashMap(); @@ -90,7 +90,6 @@ public ApiClient() { initHttpClient(); // Setup authentications (key: authentication name, value: authentication). - authentications.put("Authorization", new HttpBearerAuth("bearer")); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); } @@ -106,7 +105,6 @@ public ApiClient(OkHttpClient client) { httpClient = client; // Setup authentications (key: authentication name, value: authentication). - authentications.put("Authorization", new HttpBearerAuth("bearer")); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); } @@ -131,7 +129,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.0.1-SNAPSHOT/java"); + setUserAgent("OpenAPI-Generator/1.0.0-SNAPSHOT/java"); authentications = new HashMap(); } @@ -148,7 +146,7 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g https://transcript.oncokb.org:443 + * @param basePath Base path of the URL (e.g http://beta.curation.oncokb.dev.aws.mskcc.org * @return An instance of OkHttpClient */ public ApiClient setBasePath(String basePath) { @@ -347,19 +345,6 @@ public Authentication getAuthentication(String authName) { return authentications.get(authName); } - /** - * Helper method to set access token for the first Bearer authentication. - * @param bearerToken Bearer token - */ - public void setBearerToken(String bearerToken) { - for (Authentication auth : authentications.values()) { - if (auth instanceof HttpBearerAuth) { - ((HttpBearerAuth) auth).setBearerToken(bearerToken); - return; - } - } - throw new RuntimeException("No Bearer authentication configured!"); - } /** * Helper method to set username for the first HTTP basic authentication. diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiException.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiException.java similarity index 95% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiException.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiException.java index 5881351..e56c204 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiException.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiException.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import java.util.Map; import java.util.List; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiResponse.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiResponse.java similarity index 88% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiResponse.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiResponse.java index 4e76240..002e703 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ApiResponse.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ApiResponse.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import java.util.List; import java.util.Map; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/Configuration.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/Configuration.java similarity index 81% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/Configuration.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/Configuration.java index 5310894..fbfa667 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/Configuration.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/Configuration.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/GzipRequestInterceptor.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/GzipRequestInterceptor.java similarity index 92% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/GzipRequestInterceptor.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/GzipRequestInterceptor.java index d39fdab..734a4bb 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/GzipRequestInterceptor.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/GzipRequestInterceptor.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import okhttp3.*; import okio.Buffer; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/JSON.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/JSON.java similarity index 98% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/JSON.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/JSON.java index 2971370..cfe4c72 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/JSON.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/JSON.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -27,7 +27,7 @@ import org.threeten.bp.OffsetDateTime; import org.threeten.bp.format.DateTimeFormatter; -import org.oncokb.oncokb_transcript.client.*; +import org.oncokb.oncokb_curation.client.*; import okio.ByteString; import java.io.IOException; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/Pair.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/Pair.java similarity index 83% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/Pair.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/Pair.java index 04e9d2e..2c62b90 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/Pair.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/Pair.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Pair { diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ProgressRequestBody.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ProgressRequestBody.java similarity index 89% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ProgressRequestBody.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ProgressRequestBody.java index 9103d55..35273e2 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ProgressRequestBody.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ProgressRequestBody.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import okhttp3.MediaType; import okhttp3.RequestBody; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ProgressResponseBody.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ProgressResponseBody.java similarity index 89% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ProgressResponseBody.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ProgressResponseBody.java index 69a88ce..8b36559 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ProgressResponseBody.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ProgressResponseBody.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import okhttp3.MediaType; import okhttp3.ResponseBody; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ServerConfiguration.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ServerConfiguration.java similarity index 98% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ServerConfiguration.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ServerConfiguration.java index c04634a..59d9b4b 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ServerConfiguration.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ServerConfiguration.java @@ -1,4 +1,4 @@ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import java.util.Map; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ServerVariable.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ServerVariable.java similarity index 95% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ServerVariable.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ServerVariable.java index 7948134..fdd4fd6 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/ServerVariable.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/ServerVariable.java @@ -1,4 +1,4 @@ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import java.util.HashSet; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/StringUtil.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/StringUtil.java similarity index 90% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/StringUtil.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/StringUtil.java index 72396fb..e829348 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/StringUtil.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/StringUtil.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript; +package org.oncokb.oncokb_curation; import java.util.Collection; import java.util.Iterator; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/ApiKeyAuth.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/ApiKeyAuth.java similarity index 84% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/ApiKeyAuth.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/ApiKeyAuth.java index 0788f90..cb98e95 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/ApiKeyAuth.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/ApiKeyAuth.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package org.oncokb.oncokb_transcript.auth; +package org.oncokb.oncokb_curation.auth; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Pair; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Pair; import java.net.URI; import java.util.Map; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/Authentication.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/Authentication.java similarity index 73% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/Authentication.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/Authentication.java index 23b28c6..aa04f43 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/Authentication.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/Authentication.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package org.oncokb.oncokb_transcript.auth; +package org.oncokb.oncokb_curation.auth; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ApiException; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ApiException; import java.net.URI; import java.util.Map; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/HttpBasicAuth.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/HttpBasicAuth.java similarity index 80% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/HttpBasicAuth.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/HttpBasicAuth.java index f986eb2..e6ea2ea 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/HttpBasicAuth.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/HttpBasicAuth.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package org.oncokb.oncokb_transcript.auth; +package org.oncokb.oncokb_curation.auth; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ApiException; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ApiException; import okhttp3.Credentials; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/HttpBearerAuth.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/HttpBearerAuth.java similarity index 83% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/HttpBearerAuth.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/HttpBearerAuth.java index 38ad522..01b241b 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/auth/HttpBearerAuth.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/auth/HttpBearerAuth.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package org.oncokb.oncokb_transcript.auth; +package org.oncokb.oncokb_curation.auth; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Pair; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.Pair; import java.net.URI; import java.util.Map; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AccountResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AccountResourceApi.java similarity index 54% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AccountResourceApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AccountResourceApi.java index 59f3f7a..525c504 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AccountResourceApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AccountResourceApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.UserVM; +import org.oncokb.oncokb_curation.client.UserDTO; import java.lang.reflect.Type; import java.util.ArrayList; @@ -73,7 +73,7 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for getAccountUsingGET + * Build call for getAccount * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -81,12 +81,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call getAccountUsingGETCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -128,60 +125,54 @@ public okhttp3.Call getAccountUsingGETCall(final ApiCallback _callback) throws A localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAccountUsingGETValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAccountValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAccountUsingGETCall(_callback); + okhttp3.Call localVarCall = getAccountCall(_callback); return localVarCall; } /** - * getAccount * - * @return UserVM + * + * @return UserDTO * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public UserVM getAccountUsingGET() throws ApiException { - ApiResponse localVarResp = getAccountUsingGETWithHttpInfo(); + public UserDTO getAccount() throws ApiException { + ApiResponse localVarResp = getAccountWithHttpInfo(); return localVarResp.getData(); } /** - * getAccount * - * @return ApiResponse<UserVM> + * + * @return ApiResponse<UserDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse getAccountUsingGETWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAccountUsingGETValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getAccountWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAccountValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * getAccount (asynchronously) + * (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -190,20 +181,17 @@ public ApiResponse getAccountUsingGETWithHttpInfo() throws ApiException - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call getAccountUsingGETAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAccountAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAccountUsingGETValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getAccountValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for isAuthenticatedUsingGET + * Build call for getFirebaseToken * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -211,12 +199,127 @@ public okhttp3.Call getAccountUsingGETAsync(final ApiCallback _callback) - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call isAuthenticatedUsingGETCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getFirebaseTokenCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/account/firebase-token"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFirebaseTokenValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getFirebaseTokenCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public String getFirebaseToken() throws ApiException { + ApiResponse localVarResp = getFirebaseTokenWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getFirebaseTokenWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getFirebaseTokenValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFirebaseTokenAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFirebaseTokenValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for isAuthenticated + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call isAuthenticatedCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -258,21 +361,21 @@ public okhttp3.Call isAuthenticatedUsingGETCall(final ApiCallback _callback) thr localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call isAuthenticatedUsingGETValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call isAuthenticatedValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = isAuthenticatedUsingGETCall(_callback); + okhttp3.Call localVarCall = isAuthenticatedCall(_callback); return localVarCall; } /** - * isAuthenticated + * * * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -280,18 +383,15 @@ private okhttp3.Call isAuthenticatedUsingGETValidateBeforeCall(final ApiCallback - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public String isAuthenticatedUsingGET() throws ApiException { - ApiResponse localVarResp = isAuthenticatedUsingGETWithHttpInfo(); + public String isAuthenticated() throws ApiException { + ApiResponse localVarResp = isAuthenticatedWithHttpInfo(); return localVarResp.getData(); } /** - * isAuthenticated + * * * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -299,19 +399,16 @@ public String isAuthenticatedUsingGET() throws ApiException { - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse isAuthenticatedUsingGETWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = isAuthenticatedUsingGETValidateBeforeCall(null); + public ApiResponse isAuthenticatedWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = isAuthenticatedValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * isAuthenticated (asynchronously) + * (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -320,14 +417,11 @@ public ApiResponse isAuthenticatedUsingGETWithHttpInfo() throws ApiExcep - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call isAuthenticatedUsingGETAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call isAuthenticatedAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = isAuthenticatedUsingGETValidateBeforeCall(_callback); + okhttp3.Call localVarCall = isAuthenticatedValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBody.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBody.java similarity index 90% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBody.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBody.java index 12e378f..0caac80 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBody.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBody.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -32,114 +32,114 @@ public class AddEnsemblGeneBody implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_CANONICAL = "canonical"; - @SerializedName(SERIALIZED_NAME_CANONICAL) - private Boolean canonical; - - public static final String SERIALIZED_NAME_ENSEMBL_GENE_ID = "ensemblGeneId"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE_ID) - private String ensemblGeneId; + public static final String SERIALIZED_NAME_REFERENCE_GENOME = "referenceGenome"; + @SerializedName(SERIALIZED_NAME_REFERENCE_GENOME) + private String referenceGenome; public static final String SERIALIZED_NAME_ENTREZ_GENE_ID = "entrezGeneId"; @SerializedName(SERIALIZED_NAME_ENTREZ_GENE_ID) private Integer entrezGeneId; - public static final String SERIALIZED_NAME_REFERENCE_GENOME = "referenceGenome"; - @SerializedName(SERIALIZED_NAME_REFERENCE_GENOME) - private String referenceGenome; + public static final String SERIALIZED_NAME_ENSEMBL_GENE_ID = "ensemblGeneId"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE_ID) + private String ensemblGeneId; + + public static final String SERIALIZED_NAME_CANONICAL = "canonical"; + @SerializedName(SERIALIZED_NAME_CANONICAL) + private Boolean canonical; public AddEnsemblGeneBody() { } - public AddEnsemblGeneBody canonical(Boolean canonical) { + public AddEnsemblGeneBody referenceGenome(String referenceGenome) { - this.canonical = canonical; + this.referenceGenome = referenceGenome; return this; } /** - * Get canonical - * @return canonical + * Get referenceGenome + * @return referenceGenome **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") - public Boolean getCanonical() { - return canonical; + public String getReferenceGenome() { + return referenceGenome; } - public void setCanonical(Boolean canonical) { - this.canonical = canonical; + public void setReferenceGenome(String referenceGenome) { + this.referenceGenome = referenceGenome; } - public AddEnsemblGeneBody ensemblGeneId(String ensemblGeneId) { + public AddEnsemblGeneBody entrezGeneId(Integer entrezGeneId) { - this.ensemblGeneId = ensemblGeneId; + this.entrezGeneId = entrezGeneId; return this; } /** - * Get ensemblGeneId - * @return ensemblGeneId + * Get entrezGeneId + * @return entrezGeneId **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public String getEnsemblGeneId() { - return ensemblGeneId; + public Integer getEntrezGeneId() { + return entrezGeneId; } - public void setEnsemblGeneId(String ensemblGeneId) { - this.ensemblGeneId = ensemblGeneId; + public void setEntrezGeneId(Integer entrezGeneId) { + this.entrezGeneId = entrezGeneId; } - public AddEnsemblGeneBody entrezGeneId(Integer entrezGeneId) { + public AddEnsemblGeneBody ensemblGeneId(String ensemblGeneId) { - this.entrezGeneId = entrezGeneId; + this.ensemblGeneId = ensemblGeneId; return this; } /** - * Get entrezGeneId - * @return entrezGeneId + * Get ensemblGeneId + * @return ensemblGeneId **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public Integer getEntrezGeneId() { - return entrezGeneId; + public String getEnsemblGeneId() { + return ensemblGeneId; } - public void setEntrezGeneId(Integer entrezGeneId) { - this.entrezGeneId = entrezGeneId; + public void setEnsemblGeneId(String ensemblGeneId) { + this.ensemblGeneId = ensemblGeneId; } - public AddEnsemblGeneBody referenceGenome(String referenceGenome) { + public AddEnsemblGeneBody canonical(Boolean canonical) { - this.referenceGenome = referenceGenome; + this.canonical = canonical; return this; } /** - * Get referenceGenome - * @return referenceGenome + * Get canonical + * @return canonical **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getReferenceGenome() { - return referenceGenome; + public Boolean getCanonical() { + return canonical; } - public void setReferenceGenome(String referenceGenome) { - this.referenceGenome = referenceGenome; + public void setCanonical(Boolean canonical) { + this.canonical = canonical; } @@ -152,25 +152,25 @@ public boolean equals(Object o) { return false; } AddEnsemblGeneBody addEnsemblGeneBody = (AddEnsemblGeneBody) o; - return Objects.equals(this.canonical, addEnsemblGeneBody.canonical) && - Objects.equals(this.ensemblGeneId, addEnsemblGeneBody.ensemblGeneId) && + return Objects.equals(this.referenceGenome, addEnsemblGeneBody.referenceGenome) && Objects.equals(this.entrezGeneId, addEnsemblGeneBody.entrezGeneId) && - Objects.equals(this.referenceGenome, addEnsemblGeneBody.referenceGenome); + Objects.equals(this.ensemblGeneId, addEnsemblGeneBody.ensemblGeneId) && + Objects.equals(this.canonical, addEnsemblGeneBody.canonical); } @Override public int hashCode() { - return Objects.hash(canonical, ensemblGeneId, entrezGeneId, referenceGenome); + return Objects.hash(referenceGenome, entrezGeneId, ensemblGeneId, canonical); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddEnsemblGeneBody {\n"); - sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); - sb.append(" ensemblGeneId: ").append(toIndentedString(ensemblGeneId)).append("\n"); - sb.append(" entrezGeneId: ").append(toIndentedString(entrezGeneId)).append("\n"); sb.append(" referenceGenome: ").append(toIndentedString(referenceGenome)).append("\n"); + sb.append(" entrezGeneId: ").append(toIndentedString(entrezGeneId)).append("\n"); + sb.append(" ensemblGeneId: ").append(toIndentedString(ensemblGeneId)).append("\n"); + sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AddTranscriptBody.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AddTranscriptBody.java similarity index 90% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AddTranscriptBody.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AddTranscriptBody.java index 79fee50..a392025 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AddTranscriptBody.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AddTranscriptBody.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -32,14 +32,6 @@ public class AddTranscriptBody implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_CANONICAL = "canonical"; - @SerializedName(SERIALIZED_NAME_CANONICAL) - private Boolean canonical; - - public static final String SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID = "ensemblTranscriptId"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID) - private String ensemblTranscriptId; - public static final String SERIALIZED_NAME_ENTREZ_GENE_ID = "entrezGeneId"; @SerializedName(SERIALIZED_NAME_ENTREZ_GENE_ID) private Integer entrezGeneId; @@ -48,98 +40,106 @@ public class AddTranscriptBody implements Serializable { @SerializedName(SERIALIZED_NAME_REFERENCE_GENOME) private String referenceGenome; + public static final String SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID = "ensemblTranscriptId"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID) + private String ensemblTranscriptId; + + public static final String SERIALIZED_NAME_CANONICAL = "canonical"; + @SerializedName(SERIALIZED_NAME_CANONICAL) + private Boolean canonical; + public AddTranscriptBody() { } - public AddTranscriptBody canonical(Boolean canonical) { + public AddTranscriptBody entrezGeneId(Integer entrezGeneId) { - this.canonical = canonical; + this.entrezGeneId = entrezGeneId; return this; } /** - * Get canonical - * @return canonical + * Get entrezGeneId + * @return entrezGeneId **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") - public Boolean getCanonical() { - return canonical; + public Integer getEntrezGeneId() { + return entrezGeneId; } - public void setCanonical(Boolean canonical) { - this.canonical = canonical; + public void setEntrezGeneId(Integer entrezGeneId) { + this.entrezGeneId = entrezGeneId; } - public AddTranscriptBody ensemblTranscriptId(String ensemblTranscriptId) { + public AddTranscriptBody referenceGenome(String referenceGenome) { - this.ensemblTranscriptId = ensemblTranscriptId; + this.referenceGenome = referenceGenome; return this; } /** - * Get ensemblTranscriptId - * @return ensemblTranscriptId + * Get referenceGenome + * @return referenceGenome **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public String getEnsemblTranscriptId() { - return ensemblTranscriptId; + public String getReferenceGenome() { + return referenceGenome; } - public void setEnsemblTranscriptId(String ensemblTranscriptId) { - this.ensemblTranscriptId = ensemblTranscriptId; + public void setReferenceGenome(String referenceGenome) { + this.referenceGenome = referenceGenome; } - public AddTranscriptBody entrezGeneId(Integer entrezGeneId) { + public AddTranscriptBody ensemblTranscriptId(String ensemblTranscriptId) { - this.entrezGeneId = entrezGeneId; + this.ensemblTranscriptId = ensemblTranscriptId; return this; } /** - * Get entrezGeneId - * @return entrezGeneId + * Get ensemblTranscriptId + * @return ensemblTranscriptId **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public Integer getEntrezGeneId() { - return entrezGeneId; + public String getEnsemblTranscriptId() { + return ensemblTranscriptId; } - public void setEntrezGeneId(Integer entrezGeneId) { - this.entrezGeneId = entrezGeneId; + public void setEnsemblTranscriptId(String ensemblTranscriptId) { + this.ensemblTranscriptId = ensemblTranscriptId; } - public AddTranscriptBody referenceGenome(String referenceGenome) { + public AddTranscriptBody canonical(Boolean canonical) { - this.referenceGenome = referenceGenome; + this.canonical = canonical; return this; } /** - * Get referenceGenome - * @return referenceGenome + * Get canonical + * @return canonical **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getReferenceGenome() { - return referenceGenome; + public Boolean getCanonical() { + return canonical; } - public void setReferenceGenome(String referenceGenome) { - this.referenceGenome = referenceGenome; + public void setCanonical(Boolean canonical) { + this.canonical = canonical; } @@ -152,25 +152,25 @@ public boolean equals(Object o) { return false; } AddTranscriptBody addTranscriptBody = (AddTranscriptBody) o; - return Objects.equals(this.canonical, addTranscriptBody.canonical) && + return Objects.equals(this.entrezGeneId, addTranscriptBody.entrezGeneId) && + Objects.equals(this.referenceGenome, addTranscriptBody.referenceGenome) && Objects.equals(this.ensemblTranscriptId, addTranscriptBody.ensemblTranscriptId) && - Objects.equals(this.entrezGeneId, addTranscriptBody.entrezGeneId) && - Objects.equals(this.referenceGenome, addTranscriptBody.referenceGenome); + Objects.equals(this.canonical, addTranscriptBody.canonical); } @Override public int hashCode() { - return Objects.hash(canonical, ensemblTranscriptId, entrezGeneId, referenceGenome); + return Objects.hash(entrezGeneId, referenceGenome, ensemblTranscriptId, canonical); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AddTranscriptBody {\n"); - sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); - sb.append(" ensemblTranscriptId: ").append(toIndentedString(ensemblTranscriptId)).append("\n"); sb.append(" entrezGeneId: ").append(toIndentedString(entrezGeneId)).append("\n"); sb.append(" referenceGenome: ").append(toIndentedString(referenceGenome)).append("\n"); + sb.append(" ensemblTranscriptId: ").append(toIndentedString(ensemblTranscriptId)).append("\n"); + sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVM.java similarity index 91% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVM.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVM.java index 9ed0e0f..d03433c 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVM.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVM.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.TranscriptSuggestionVM; +import org.oncokb.oncokb_curation.client.TranscriptSuggestionVM; import java.io.Serializable; /** diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Alteration.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Alteration.java new file mode 100644 index 0000000..3f811c7 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Alteration.java @@ -0,0 +1,424 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.AlterationReferenceGenome; +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.Consequence; +import org.oncokb.oncokb_curation.client.Gene; +import java.io.Serializable; + +/** + * Alteration + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Alteration implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_ALTERATION = "alteration"; + @SerializedName(SERIALIZED_NAME_ALTERATION) + private String alteration; + + public static final String SERIALIZED_NAME_PROTEIN_START = "proteinStart"; + @SerializedName(SERIALIZED_NAME_PROTEIN_START) + private Integer proteinStart; + + public static final String SERIALIZED_NAME_PROTEIN_END = "proteinEnd"; + @SerializedName(SERIALIZED_NAME_PROTEIN_END) + private Integer proteinEnd; + + public static final String SERIALIZED_NAME_REF_RESIDUES = "refResidues"; + @SerializedName(SERIALIZED_NAME_REF_RESIDUES) + private String refResidues; + + public static final String SERIALIZED_NAME_VARIANT_RESIDUES = "variantResidues"; + @SerializedName(SERIALIZED_NAME_VARIANT_RESIDUES) + private String variantResidues; + + public static final String SERIALIZED_NAME_REFERENCE_GENOMES = "referenceGenomes"; + @SerializedName(SERIALIZED_NAME_REFERENCE_GENOMES) + private Set referenceGenomes = null; + + public static final String SERIALIZED_NAME_GENES = "genes"; + @SerializedName(SERIALIZED_NAME_GENES) + private Set genes = null; + + public static final String SERIALIZED_NAME_CONSEQUENCE = "consequence"; + @SerializedName(SERIALIZED_NAME_CONSEQUENCE) + private Consequence consequence; + + public static final String SERIALIZED_NAME_BIOMARKER_ASSOCIATIONS = "biomarkerAssociations"; + @SerializedName(SERIALIZED_NAME_BIOMARKER_ASSOCIATIONS) + private Set biomarkerAssociations = null; + + public Alteration() { + } + + public Alteration id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public Alteration name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public Alteration alteration(String alteration) { + + this.alteration = alteration; + return this; + } + + /** + * Get alteration + * @return alteration + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getAlteration() { + return alteration; + } + + + public void setAlteration(String alteration) { + this.alteration = alteration; + } + + + public Alteration proteinStart(Integer proteinStart) { + + this.proteinStart = proteinStart; + return this; + } + + /** + * Get proteinStart + * @return proteinStart + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getProteinStart() { + return proteinStart; + } + + + public void setProteinStart(Integer proteinStart) { + this.proteinStart = proteinStart; + } + + + public Alteration proteinEnd(Integer proteinEnd) { + + this.proteinEnd = proteinEnd; + return this; + } + + /** + * Get proteinEnd + * @return proteinEnd + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getProteinEnd() { + return proteinEnd; + } + + + public void setProteinEnd(Integer proteinEnd) { + this.proteinEnd = proteinEnd; + } + + + public Alteration refResidues(String refResidues) { + + this.refResidues = refResidues; + return this; + } + + /** + * Get refResidues + * @return refResidues + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getRefResidues() { + return refResidues; + } + + + public void setRefResidues(String refResidues) { + this.refResidues = refResidues; + } + + + public Alteration variantResidues(String variantResidues) { + + this.variantResidues = variantResidues; + return this; + } + + /** + * Get variantResidues + * @return variantResidues + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getVariantResidues() { + return variantResidues; + } + + + public void setVariantResidues(String variantResidues) { + this.variantResidues = variantResidues; + } + + + public Alteration referenceGenomes(Set referenceGenomes) { + + this.referenceGenomes = referenceGenomes; + return this; + } + + public Alteration addReferenceGenomesItem(AlterationReferenceGenome referenceGenomesItem) { + if (this.referenceGenomes == null) { + this.referenceGenomes = new LinkedHashSet(); + } + this.referenceGenomes.add(referenceGenomesItem); + return this; + } + + /** + * Get referenceGenomes + * @return referenceGenomes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getReferenceGenomes() { + return referenceGenomes; + } + + + public void setReferenceGenomes(Set referenceGenomes) { + this.referenceGenomes = referenceGenomes; + } + + + public Alteration genes(Set genes) { + + this.genes = genes; + return this; + } + + public Alteration addGenesItem(Gene genesItem) { + if (this.genes == null) { + this.genes = new LinkedHashSet(); + } + this.genes.add(genesItem); + return this; + } + + /** + * Get genes + * @return genes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getGenes() { + return genes; + } + + + public void setGenes(Set genes) { + this.genes = genes; + } + + + public Alteration consequence(Consequence consequence) { + + this.consequence = consequence; + return this; + } + + /** + * Get consequence + * @return consequence + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Consequence getConsequence() { + return consequence; + } + + + public void setConsequence(Consequence consequence) { + this.consequence = consequence; + } + + + public Alteration biomarkerAssociations(Set biomarkerAssociations) { + + this.biomarkerAssociations = biomarkerAssociations; + return this; + } + + public Alteration addBiomarkerAssociationsItem(BiomarkerAssociation biomarkerAssociationsItem) { + if (this.biomarkerAssociations == null) { + this.biomarkerAssociations = new LinkedHashSet(); + } + this.biomarkerAssociations.add(biomarkerAssociationsItem); + return this; + } + + /** + * Get biomarkerAssociations + * @return biomarkerAssociations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getBiomarkerAssociations() { + return biomarkerAssociations; + } + + + public void setBiomarkerAssociations(Set biomarkerAssociations) { + this.biomarkerAssociations = biomarkerAssociations; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Alteration alteration = (Alteration) o; + return Objects.equals(this.id, alteration.id) && + Objects.equals(this.name, alteration.name) && + Objects.equals(this.alteration, alteration.alteration) && + Objects.equals(this.proteinStart, alteration.proteinStart) && + Objects.equals(this.proteinEnd, alteration.proteinEnd) && + Objects.equals(this.refResidues, alteration.refResidues) && + Objects.equals(this.variantResidues, alteration.variantResidues) && + Objects.equals(this.referenceGenomes, alteration.referenceGenomes) && + Objects.equals(this.genes, alteration.genes) && + Objects.equals(this.consequence, alteration.consequence) && + Objects.equals(this.biomarkerAssociations, alteration.biomarkerAssociations); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, alteration, proteinStart, proteinEnd, refResidues, variantResidues, referenceGenomes, genes, consequence, biomarkerAssociations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Alteration {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" alteration: ").append(toIndentedString(alteration)).append("\n"); + sb.append(" proteinStart: ").append(toIndentedString(proteinStart)).append("\n"); + sb.append(" proteinEnd: ").append(toIndentedString(proteinEnd)).append("\n"); + sb.append(" refResidues: ").append(toIndentedString(refResidues)).append("\n"); + sb.append(" variantResidues: ").append(toIndentedString(variantResidues)).append("\n"); + sb.append(" referenceGenomes: ").append(toIndentedString(referenceGenomes)).append("\n"); + sb.append(" genes: ").append(toIndentedString(genes)).append("\n"); + sb.append(" consequence: ").append(toIndentedString(consequence)).append("\n"); + sb.append(" biomarkerAssociations: ").append(toIndentedString(biomarkerAssociations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationControllerApi.java new file mode 100644 index 0000000..4fac25d --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationControllerApi.java @@ -0,0 +1,202 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Alteration; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AlterationControllerApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AlterationControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public AlterationControllerApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for annotateAlteration + * @param alteration (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call annotateAlterationCall(Alteration alteration, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = alteration; + + // create path and map variables + String localVarPath = "/api/annotate-alteration"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call annotateAlterationValidateBeforeCall(Alteration alteration, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'alteration' is set + if (alteration == null) { + throw new ApiException("Missing the required parameter 'alteration' when calling annotateAlteration(Async)"); + } + + + okhttp3.Call localVarCall = annotateAlterationCall(alteration, _callback); + return localVarCall; + + } + + /** + * + * + * @param alteration (required) + * @return Alteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Alteration annotateAlteration(Alteration alteration) throws ApiException { + ApiResponse localVarResp = annotateAlterationWithHttpInfo(alteration); + return localVarResp.getData(); + } + + /** + * + * + * @param alteration (required) + * @return ApiResponse<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse annotateAlterationWithHttpInfo(Alteration alteration) throws ApiException { + okhttp3.Call localVarCall = annotateAlterationValidateBeforeCall(alteration, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param alteration (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call annotateAlterationAsync(Alteration alteration, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = annotateAlterationValidateBeforeCall(alteration, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationCriteria.java new file mode 100644 index 0000000..eb70fa4 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationCriteria.java @@ -0,0 +1,425 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.IntegerFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import java.io.Serializable; + +/** + * AlterationCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AlterationCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private StringFilter name; + + public static final String SERIALIZED_NAME_ALTERATION = "alteration"; + @SerializedName(SERIALIZED_NAME_ALTERATION) + private StringFilter alteration; + + public static final String SERIALIZED_NAME_PROTEIN_START = "proteinStart"; + @SerializedName(SERIALIZED_NAME_PROTEIN_START) + private IntegerFilter proteinStart; + + public static final String SERIALIZED_NAME_PROTEIN_END = "proteinEnd"; + @SerializedName(SERIALIZED_NAME_PROTEIN_END) + private IntegerFilter proteinEnd; + + public static final String SERIALIZED_NAME_REF_RESIDUES = "refResidues"; + @SerializedName(SERIALIZED_NAME_REF_RESIDUES) + private StringFilter refResidues; + + public static final String SERIALIZED_NAME_VARIANT_RESIDUES = "variantResidues"; + @SerializedName(SERIALIZED_NAME_VARIANT_RESIDUES) + private StringFilter variantResidues; + + public static final String SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID = "biomarkerAssociationId"; + @SerializedName(SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID) + private LongFilter biomarkerAssociationId; + + public static final String SERIALIZED_NAME_REFERENCE_GENOMES_ID = "referenceGenomesId"; + @SerializedName(SERIALIZED_NAME_REFERENCE_GENOMES_ID) + private LongFilter referenceGenomesId; + + public static final String SERIALIZED_NAME_GENE_ID = "geneId"; + @SerializedName(SERIALIZED_NAME_GENE_ID) + private LongFilter geneId; + + public static final String SERIALIZED_NAME_CONSEQUENCE_ID = "consequenceId"; + @SerializedName(SERIALIZED_NAME_CONSEQUENCE_ID) + private LongFilter consequenceId; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public AlterationCriteria() { + } + + public AlterationCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public AlterationCriteria name(StringFilter name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getName() { + return name; + } + + + public void setName(StringFilter name) { + this.name = name; + } + + + public AlterationCriteria alteration(StringFilter alteration) { + + this.alteration = alteration; + return this; + } + + /** + * Get alteration + * @return alteration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getAlteration() { + return alteration; + } + + + public void setAlteration(StringFilter alteration) { + this.alteration = alteration; + } + + + public AlterationCriteria proteinStart(IntegerFilter proteinStart) { + + this.proteinStart = proteinStart; + return this; + } + + /** + * Get proteinStart + * @return proteinStart + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public IntegerFilter getProteinStart() { + return proteinStart; + } + + + public void setProteinStart(IntegerFilter proteinStart) { + this.proteinStart = proteinStart; + } + + + public AlterationCriteria proteinEnd(IntegerFilter proteinEnd) { + + this.proteinEnd = proteinEnd; + return this; + } + + /** + * Get proteinEnd + * @return proteinEnd + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public IntegerFilter getProteinEnd() { + return proteinEnd; + } + + + public void setProteinEnd(IntegerFilter proteinEnd) { + this.proteinEnd = proteinEnd; + } + + + public AlterationCriteria refResidues(StringFilter refResidues) { + + this.refResidues = refResidues; + return this; + } + + /** + * Get refResidues + * @return refResidues + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getRefResidues() { + return refResidues; + } + + + public void setRefResidues(StringFilter refResidues) { + this.refResidues = refResidues; + } + + + public AlterationCriteria variantResidues(StringFilter variantResidues) { + + this.variantResidues = variantResidues; + return this; + } + + /** + * Get variantResidues + * @return variantResidues + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getVariantResidues() { + return variantResidues; + } + + + public void setVariantResidues(StringFilter variantResidues) { + this.variantResidues = variantResidues; + } + + + public AlterationCriteria biomarkerAssociationId(LongFilter biomarkerAssociationId) { + + this.biomarkerAssociationId = biomarkerAssociationId; + return this; + } + + /** + * Get biomarkerAssociationId + * @return biomarkerAssociationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getBiomarkerAssociationId() { + return biomarkerAssociationId; + } + + + public void setBiomarkerAssociationId(LongFilter biomarkerAssociationId) { + this.biomarkerAssociationId = biomarkerAssociationId; + } + + + public AlterationCriteria referenceGenomesId(LongFilter referenceGenomesId) { + + this.referenceGenomesId = referenceGenomesId; + return this; + } + + /** + * Get referenceGenomesId + * @return referenceGenomesId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getReferenceGenomesId() { + return referenceGenomesId; + } + + + public void setReferenceGenomesId(LongFilter referenceGenomesId) { + this.referenceGenomesId = referenceGenomesId; + } + + + public AlterationCriteria geneId(LongFilter geneId) { + + this.geneId = geneId; + return this; + } + + /** + * Get geneId + * @return geneId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getGeneId() { + return geneId; + } + + + public void setGeneId(LongFilter geneId) { + this.geneId = geneId; + } + + + public AlterationCriteria consequenceId(LongFilter consequenceId) { + + this.consequenceId = consequenceId; + return this; + } + + /** + * Get consequenceId + * @return consequenceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getConsequenceId() { + return consequenceId; + } + + + public void setConsequenceId(LongFilter consequenceId) { + this.consequenceId = consequenceId; + } + + + public AlterationCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlterationCriteria alterationCriteria = (AlterationCriteria) o; + return Objects.equals(this.id, alterationCriteria.id) && + Objects.equals(this.name, alterationCriteria.name) && + Objects.equals(this.alteration, alterationCriteria.alteration) && + Objects.equals(this.proteinStart, alterationCriteria.proteinStart) && + Objects.equals(this.proteinEnd, alterationCriteria.proteinEnd) && + Objects.equals(this.refResidues, alterationCriteria.refResidues) && + Objects.equals(this.variantResidues, alterationCriteria.variantResidues) && + Objects.equals(this.biomarkerAssociationId, alterationCriteria.biomarkerAssociationId) && + Objects.equals(this.referenceGenomesId, alterationCriteria.referenceGenomesId) && + Objects.equals(this.geneId, alterationCriteria.geneId) && + Objects.equals(this.consequenceId, alterationCriteria.consequenceId) && + Objects.equals(this.distinct, alterationCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, alteration, proteinStart, proteinEnd, refResidues, variantResidues, biomarkerAssociationId, referenceGenomesId, geneId, consequenceId, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlterationCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" alteration: ").append(toIndentedString(alteration)).append("\n"); + sb.append(" proteinStart: ").append(toIndentedString(proteinStart)).append("\n"); + sb.append(" proteinEnd: ").append(toIndentedString(proteinEnd)).append("\n"); + sb.append(" refResidues: ").append(toIndentedString(refResidues)).append("\n"); + sb.append(" variantResidues: ").append(toIndentedString(variantResidues)).append("\n"); + sb.append(" biomarkerAssociationId: ").append(toIndentedString(biomarkerAssociationId)).append("\n"); + sb.append(" referenceGenomesId: ").append(toIndentedString(referenceGenomesId)).append("\n"); + sb.append(" geneId: ").append(toIndentedString(geneId)).append("\n"); + sb.append(" consequenceId: ").append(toIndentedString(consequenceId)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenome.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenome.java new file mode 100644 index 0000000..fddff37 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenome.java @@ -0,0 +1,209 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.Alteration; +import java.io.Serializable; + +/** + * AlterationReferenceGenome + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AlterationReferenceGenome implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + /** + * Gets or Sets referenceGenome + */ + @JsonAdapter(ReferenceGenomeEnum.Adapter.class) + public enum ReferenceGenomeEnum { + GRCH37("GRCh37"), + + GRCH38("GRCh38"); + + private String value; + + ReferenceGenomeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReferenceGenomeEnum fromValue(String value) { + for (ReferenceGenomeEnum b : ReferenceGenomeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReferenceGenomeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReferenceGenomeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReferenceGenomeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_REFERENCE_GENOME = "referenceGenome"; + @SerializedName(SERIALIZED_NAME_REFERENCE_GENOME) + private ReferenceGenomeEnum referenceGenome; + + public static final String SERIALIZED_NAME_ALTERATION = "alteration"; + @SerializedName(SERIALIZED_NAME_ALTERATION) + private Alteration alteration; + + public AlterationReferenceGenome() { + } + + public AlterationReferenceGenome id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public AlterationReferenceGenome referenceGenome(ReferenceGenomeEnum referenceGenome) { + + this.referenceGenome = referenceGenome; + return this; + } + + /** + * Get referenceGenome + * @return referenceGenome + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ReferenceGenomeEnum getReferenceGenome() { + return referenceGenome; + } + + + public void setReferenceGenome(ReferenceGenomeEnum referenceGenome) { + this.referenceGenome = referenceGenome; + } + + + public AlterationReferenceGenome alteration(Alteration alteration) { + + this.alteration = alteration; + return this; + } + + /** + * Get alteration + * @return alteration + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Alteration getAlteration() { + return alteration; + } + + + public void setAlteration(Alteration alteration) { + this.alteration = alteration; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlterationReferenceGenome alterationReferenceGenome = (AlterationReferenceGenome) o; + return Objects.equals(this.id, alterationReferenceGenome.id) && + Objects.equals(this.referenceGenome, alterationReferenceGenome.referenceGenome) && + Objects.equals(this.alteration, alterationReferenceGenome.alteration); + } + + @Override + public int hashCode() { + return Objects.hash(id, referenceGenome, alteration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlterationReferenceGenome {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" referenceGenome: ").append(toIndentedString(referenceGenome)).append("\n"); + sb.append(" alteration: ").append(toIndentedString(alteration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationResourceApi.java new file mode 100644 index 0000000..1426dfb --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AlterationResourceApi.java @@ -0,0 +1,1277 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Alteration; +import org.oncokb.oncokb_curation.client.AlterationCriteria; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AlterationResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public AlterationResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public AlterationResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countAlterations + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countAlterationsCall(AlterationCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/alterations/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countAlterationsValidateBeforeCall(AlterationCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countAlterations(Async)"); + } + + + okhttp3.Call localVarCall = countAlterationsCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countAlterations(AlterationCriteria criteria) throws ApiException { + ApiResponse localVarResp = countAlterationsWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countAlterationsWithHttpInfo(AlterationCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countAlterationsValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countAlterationsAsync(AlterationCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countAlterationsValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createAlteration + * @param alteration (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createAlterationCall(Alteration alteration, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = alteration; + + // create path and map variables + String localVarPath = "/api/alterations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createAlterationValidateBeforeCall(Alteration alteration, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'alteration' is set + if (alteration == null) { + throw new ApiException("Missing the required parameter 'alteration' when calling createAlteration(Async)"); + } + + + okhttp3.Call localVarCall = createAlterationCall(alteration, _callback); + return localVarCall; + + } + + /** + * + * + * @param alteration (required) + * @return Alteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Alteration createAlteration(Alteration alteration) throws ApiException { + ApiResponse localVarResp = createAlterationWithHttpInfo(alteration); + return localVarResp.getData(); + } + + /** + * + * + * @param alteration (required) + * @return ApiResponse<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createAlterationWithHttpInfo(Alteration alteration) throws ApiException { + okhttp3.Call localVarCall = createAlterationValidateBeforeCall(alteration, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param alteration (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createAlterationAsync(Alteration alteration, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createAlterationValidateBeforeCall(alteration, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteAlteration + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteAlterationCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAlterationValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteAlteration(Async)"); + } + + + okhttp3.Call localVarCall = deleteAlterationCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteAlteration(Long id) throws ApiException { + deleteAlterationWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteAlterationWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteAlterationValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteAlterationAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteAlterationValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for findByGeneId + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call findByGeneIdCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/alterations/gene/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call findByGeneIdValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling findByGeneId(Async)"); + } + + + okhttp3.Call localVarCall = findByGeneIdCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return List<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List findByGeneId(Long id) throws ApiException { + ApiResponse> localVarResp = findByGeneIdWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<List<Alteration>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> findByGeneIdWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = findByGeneIdValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call findByGeneIdAsync(Long id, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = findByGeneIdValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAllAlterations + * @param criteria (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllAlterationsCall(AlterationCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/alterations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllAlterationsValidateBeforeCall(AlterationCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllAlterations(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllAlterations(Async)"); + } + + + okhttp3.Call localVarCall = getAllAlterationsCall(criteria, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return List<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllAlterations(AlterationCriteria criteria, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllAlterationsWithHttpInfo(criteria, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return ApiResponse<List<Alteration>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllAlterationsWithHttpInfo(AlterationCriteria criteria, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllAlterationsValidateBeforeCall(criteria, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllAlterationsAsync(AlterationCriteria criteria, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllAlterationsValidateBeforeCall(criteria, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAlteration + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAlterationCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAlterationValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getAlteration(Async)"); + } + + + okhttp3.Call localVarCall = getAlterationCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return Alteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Alteration getAlteration(Long id) throws ApiException { + ApiResponse localVarResp = getAlterationWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getAlterationWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getAlterationValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAlterationAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAlterationValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateAlteration + * @param id (required) + * @param alteration (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateAlterationCall(Long id, Alteration alteration, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = alteration; + + // create path and map variables + String localVarPath = "/api/alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateAlterationValidateBeforeCall(Long id, Alteration alteration, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateAlteration(Async)"); + } + + // verify the required parameter 'alteration' is set + if (alteration == null) { + throw new ApiException("Missing the required parameter 'alteration' when calling partialUpdateAlteration(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateAlterationCall(id, alteration, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param alteration (required) + * @return Alteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Alteration partialUpdateAlteration(Long id, Alteration alteration) throws ApiException { + ApiResponse localVarResp = partialUpdateAlterationWithHttpInfo(id, alteration); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param alteration (required) + * @return ApiResponse<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateAlterationWithHttpInfo(Long id, Alteration alteration) throws ApiException { + okhttp3.Call localVarCall = partialUpdateAlterationValidateBeforeCall(id, alteration, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param alteration (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateAlterationAsync(Long id, Alteration alteration, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateAlterationValidateBeforeCall(id, alteration, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchAlterations + * @param query (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchAlterationsCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/alterations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchAlterationsValidateBeforeCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchAlterations(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling searchAlterations(Async)"); + } + + + okhttp3.Call localVarCall = searchAlterationsCall(query, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return List<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List searchAlterations(String query, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = searchAlterationsWithHttpInfo(query, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return ApiResponse<List<Alteration>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchAlterationsWithHttpInfo(String query, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = searchAlterationsValidateBeforeCall(query, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchAlterationsAsync(String query, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchAlterationsValidateBeforeCall(query, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateAlteration + * @param id (required) + * @param alteration (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateAlterationCall(Long id, Alteration alteration, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = alteration; + + // create path and map variables + String localVarPath = "/api/alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateAlterationValidateBeforeCall(Long id, Alteration alteration, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateAlteration(Async)"); + } + + // verify the required parameter 'alteration' is set + if (alteration == null) { + throw new ApiException("Missing the required parameter 'alteration' when calling updateAlteration(Async)"); + } + + + okhttp3.Call localVarCall = updateAlterationCall(id, alteration, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param alteration (required) + * @return Alteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Alteration updateAlteration(Long id, Alteration alteration) throws ApiException { + ApiResponse localVarResp = updateAlterationWithHttpInfo(id, alteration); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param alteration (required) + * @return ApiResponse<Alteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateAlterationWithHttpInfo(Long id, Alteration alteration) throws ApiException { + okhttp3.Call localVarCall = updateAlterationValidateBeforeCall(id, alteration, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param alteration (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateAlterationAsync(Long id, Alteration alteration, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateAlterationValidateBeforeCall(id, alteration, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Article.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Article.java new file mode 100644 index 0000000..9155cb4 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Article.java @@ -0,0 +1,335 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * Article + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Article implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_PMID = "pmid"; + @SerializedName(SERIALIZED_NAME_PMID) + private String pmid; + + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_JOURNAL = "journal"; + @SerializedName(SERIALIZED_NAME_JOURNAL) + private String journal; + + public static final String SERIALIZED_NAME_PUB_DATE = "pubDate"; + @SerializedName(SERIALIZED_NAME_PUB_DATE) + private String pubDate; + + public static final String SERIALIZED_NAME_VOLUME = "volume"; + @SerializedName(SERIALIZED_NAME_VOLUME) + private String volume; + + public static final String SERIALIZED_NAME_ISSUE = "issue"; + @SerializedName(SERIALIZED_NAME_ISSUE) + private String issue; + + public static final String SERIALIZED_NAME_PAGES = "pages"; + @SerializedName(SERIALIZED_NAME_PAGES) + private String pages; + + public static final String SERIALIZED_NAME_AUTHORS = "authors"; + @SerializedName(SERIALIZED_NAME_AUTHORS) + private String authors; + + public Article() { + } + + public Article id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public Article pmid(String pmid) { + + this.pmid = pmid; + return this; + } + + /** + * Get pmid + * @return pmid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getPmid() { + return pmid; + } + + + public void setPmid(String pmid) { + this.pmid = pmid; + } + + + public Article title(String title) { + + this.title = title; + return this; + } + + /** + * Get title + * @return title + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getTitle() { + return title; + } + + + public void setTitle(String title) { + this.title = title; + } + + + public Article journal(String journal) { + + this.journal = journal; + return this; + } + + /** + * Get journal + * @return journal + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getJournal() { + return journal; + } + + + public void setJournal(String journal) { + this.journal = journal; + } + + + public Article pubDate(String pubDate) { + + this.pubDate = pubDate; + return this; + } + + /** + * Get pubDate + * @return pubDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getPubDate() { + return pubDate; + } + + + public void setPubDate(String pubDate) { + this.pubDate = pubDate; + } + + + public Article volume(String volume) { + + this.volume = volume; + return this; + } + + /** + * Get volume + * @return volume + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getVolume() { + return volume; + } + + + public void setVolume(String volume) { + this.volume = volume; + } + + + public Article issue(String issue) { + + this.issue = issue; + return this; + } + + /** + * Get issue + * @return issue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getIssue() { + return issue; + } + + + public void setIssue(String issue) { + this.issue = issue; + } + + + public Article pages(String pages) { + + this.pages = pages; + return this; + } + + /** + * Get pages + * @return pages + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getPages() { + return pages; + } + + + public void setPages(String pages) { + this.pages = pages; + } + + + public Article authors(String authors) { + + this.authors = authors; + return this; + } + + /** + * Get authors + * @return authors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getAuthors() { + return authors; + } + + + public void setAuthors(String authors) { + this.authors = authors; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Article article = (Article) o; + return Objects.equals(this.id, article.id) && + Objects.equals(this.pmid, article.pmid) && + Objects.equals(this.title, article.title) && + Objects.equals(this.journal, article.journal) && + Objects.equals(this.pubDate, article.pubDate) && + Objects.equals(this.volume, article.volume) && + Objects.equals(this.issue, article.issue) && + Objects.equals(this.pages, article.pages) && + Objects.equals(this.authors, article.authors); + } + + @Override + public int hashCode() { + return Objects.hash(id, pmid, title, journal, pubDate, volume, issue, pages, authors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Article {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" pmid: ").append(toIndentedString(pmid)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" journal: ").append(toIndentedString(journal)).append("\n"); + sb.append(" pubDate: ").append(toIndentedString(pubDate)).append("\n"); + sb.append(" volume: ").append(toIndentedString(volume)).append("\n"); + sb.append(" issue: ").append(toIndentedString(issue)).append("\n"); + sb.append(" pages: ").append(toIndentedString(pages)).append("\n"); + sb.append(" authors: ").append(toIndentedString(authors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ArticleCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ArticleCriteria.java new file mode 100644 index 0000000..538ac2f --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ArticleCriteria.java @@ -0,0 +1,337 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import java.io.Serializable; + +/** + * ArticleCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ArticleCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_PMID = "pmid"; + @SerializedName(SERIALIZED_NAME_PMID) + private StringFilter pmid; + + public static final String SERIALIZED_NAME_JOURNAL = "journal"; + @SerializedName(SERIALIZED_NAME_JOURNAL) + private StringFilter journal; + + public static final String SERIALIZED_NAME_PUB_DATE = "pubDate"; + @SerializedName(SERIALIZED_NAME_PUB_DATE) + private StringFilter pubDate; + + public static final String SERIALIZED_NAME_VOLUME = "volume"; + @SerializedName(SERIALIZED_NAME_VOLUME) + private StringFilter volume; + + public static final String SERIALIZED_NAME_ISSUE = "issue"; + @SerializedName(SERIALIZED_NAME_ISSUE) + private StringFilter issue; + + public static final String SERIALIZED_NAME_PAGES = "pages"; + @SerializedName(SERIALIZED_NAME_PAGES) + private StringFilter pages; + + public static final String SERIALIZED_NAME_AUTHORS = "authors"; + @SerializedName(SERIALIZED_NAME_AUTHORS) + private StringFilter authors; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public ArticleCriteria() { + } + + public ArticleCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public ArticleCriteria pmid(StringFilter pmid) { + + this.pmid = pmid; + return this; + } + + /** + * Get pmid + * @return pmid + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getPmid() { + return pmid; + } + + + public void setPmid(StringFilter pmid) { + this.pmid = pmid; + } + + + public ArticleCriteria journal(StringFilter journal) { + + this.journal = journal; + return this; + } + + /** + * Get journal + * @return journal + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getJournal() { + return journal; + } + + + public void setJournal(StringFilter journal) { + this.journal = journal; + } + + + public ArticleCriteria pubDate(StringFilter pubDate) { + + this.pubDate = pubDate; + return this; + } + + /** + * Get pubDate + * @return pubDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getPubDate() { + return pubDate; + } + + + public void setPubDate(StringFilter pubDate) { + this.pubDate = pubDate; + } + + + public ArticleCriteria volume(StringFilter volume) { + + this.volume = volume; + return this; + } + + /** + * Get volume + * @return volume + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getVolume() { + return volume; + } + + + public void setVolume(StringFilter volume) { + this.volume = volume; + } + + + public ArticleCriteria issue(StringFilter issue) { + + this.issue = issue; + return this; + } + + /** + * Get issue + * @return issue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getIssue() { + return issue; + } + + + public void setIssue(StringFilter issue) { + this.issue = issue; + } + + + public ArticleCriteria pages(StringFilter pages) { + + this.pages = pages; + return this; + } + + /** + * Get pages + * @return pages + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getPages() { + return pages; + } + + + public void setPages(StringFilter pages) { + this.pages = pages; + } + + + public ArticleCriteria authors(StringFilter authors) { + + this.authors = authors; + return this; + } + + /** + * Get authors + * @return authors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getAuthors() { + return authors; + } + + + public void setAuthors(StringFilter authors) { + this.authors = authors; + } + + + public ArticleCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ArticleCriteria articleCriteria = (ArticleCriteria) o; + return Objects.equals(this.id, articleCriteria.id) && + Objects.equals(this.pmid, articleCriteria.pmid) && + Objects.equals(this.journal, articleCriteria.journal) && + Objects.equals(this.pubDate, articleCriteria.pubDate) && + Objects.equals(this.volume, articleCriteria.volume) && + Objects.equals(this.issue, articleCriteria.issue) && + Objects.equals(this.pages, articleCriteria.pages) && + Objects.equals(this.authors, articleCriteria.authors) && + Objects.equals(this.distinct, articleCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, pmid, journal, pubDate, volume, issue, pages, authors, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ArticleCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" pmid: ").append(toIndentedString(pmid)).append("\n"); + sb.append(" journal: ").append(toIndentedString(journal)).append("\n"); + sb.append(" pubDate: ").append(toIndentedString(pubDate)).append("\n"); + sb.append(" volume: ").append(toIndentedString(volume)).append("\n"); + sb.append(" issue: ").append(toIndentedString(issue)).append("\n"); + sb.append(" pages: ").append(toIndentedString(pages)).append("\n"); + sb.append(" authors: ").append(toIndentedString(authors)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ArticleResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ArticleResourceApi.java new file mode 100644 index 0000000..71c5447 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ArticleResourceApi.java @@ -0,0 +1,1149 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Article; +import org.oncokb.oncokb_curation.client.ArticleCriteria; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ArticleResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ArticleResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public ArticleResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countArticles + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countArticlesCall(ArticleCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/articles/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countArticlesValidateBeforeCall(ArticleCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countArticles(Async)"); + } + + + okhttp3.Call localVarCall = countArticlesCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countArticles(ArticleCriteria criteria) throws ApiException { + ApiResponse localVarResp = countArticlesWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countArticlesWithHttpInfo(ArticleCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countArticlesValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countArticlesAsync(ArticleCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countArticlesValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createArticle + * @param article (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createArticleCall(Article article, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = article; + + // create path and map variables + String localVarPath = "/api/articles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createArticleValidateBeforeCall(Article article, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'article' is set + if (article == null) { + throw new ApiException("Missing the required parameter 'article' when calling createArticle(Async)"); + } + + + okhttp3.Call localVarCall = createArticleCall(article, _callback); + return localVarCall; + + } + + /** + * + * + * @param article (required) + * @return Article + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Article createArticle(Article article) throws ApiException { + ApiResponse
localVarResp = createArticleWithHttpInfo(article); + return localVarResp.getData(); + } + + /** + * + * + * @param article (required) + * @return ApiResponse<Article> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse
createArticleWithHttpInfo(Article article) throws ApiException { + okhttp3.Call localVarCall = createArticleValidateBeforeCall(article, null); + Type localVarReturnType = new TypeToken
(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param article (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createArticleAsync(Article article, final ApiCallback
_callback) throws ApiException { + + okhttp3.Call localVarCall = createArticleValidateBeforeCall(article, _callback); + Type localVarReturnType = new TypeToken
(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteArticle + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteArticleCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/articles/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteArticleValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteArticle(Async)"); + } + + + okhttp3.Call localVarCall = deleteArticleCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteArticle(Long id) throws ApiException { + deleteArticleWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteArticleWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteArticleValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteArticleAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteArticleValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllArticles + * @param criteria (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllArticlesCall(ArticleCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/articles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllArticlesValidateBeforeCall(ArticleCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllArticles(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllArticles(Async)"); + } + + + okhttp3.Call localVarCall = getAllArticlesCall(criteria, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return List<Article> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List
getAllArticles(ArticleCriteria criteria, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllArticlesWithHttpInfo(criteria, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return ApiResponse<List<Article>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllArticlesWithHttpInfo(ArticleCriteria criteria, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllArticlesValidateBeforeCall(criteria, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllArticlesAsync(ArticleCriteria criteria, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllArticlesValidateBeforeCall(criteria, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getArticle + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getArticleCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/articles/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getArticleValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getArticle(Async)"); + } + + + okhttp3.Call localVarCall = getArticleCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return Article + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Article getArticle(Long id) throws ApiException { + ApiResponse
localVarResp = getArticleWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Article> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse
getArticleWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getArticleValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken
(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getArticleAsync(Long id, final ApiCallback
_callback) throws ApiException { + + okhttp3.Call localVarCall = getArticleValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken
(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateArticle + * @param id (required) + * @param article (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateArticleCall(Long id, Article article, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = article; + + // create path and map variables + String localVarPath = "/api/articles/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateArticleValidateBeforeCall(Long id, Article article, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateArticle(Async)"); + } + + // verify the required parameter 'article' is set + if (article == null) { + throw new ApiException("Missing the required parameter 'article' when calling partialUpdateArticle(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateArticleCall(id, article, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param article (required) + * @return Article + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Article partialUpdateArticle(Long id, Article article) throws ApiException { + ApiResponse
localVarResp = partialUpdateArticleWithHttpInfo(id, article); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param article (required) + * @return ApiResponse<Article> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse
partialUpdateArticleWithHttpInfo(Long id, Article article) throws ApiException { + okhttp3.Call localVarCall = partialUpdateArticleValidateBeforeCall(id, article, null); + Type localVarReturnType = new TypeToken
(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param article (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateArticleAsync(Long id, Article article, final ApiCallback
_callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateArticleValidateBeforeCall(id, article, _callback); + Type localVarReturnType = new TypeToken
(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchArticles + * @param query (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchArticlesCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/articles"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchArticlesValidateBeforeCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchArticles(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling searchArticles(Async)"); + } + + + okhttp3.Call localVarCall = searchArticlesCall(query, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return List<Article> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List
searchArticles(String query, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = searchArticlesWithHttpInfo(query, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return ApiResponse<List<Article>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchArticlesWithHttpInfo(String query, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = searchArticlesValidateBeforeCall(query, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchArticlesAsync(String query, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchArticlesValidateBeforeCall(query, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateArticle + * @param id (required) + * @param article (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateArticleCall(Long id, Article article, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = article; + + // create path and map variables + String localVarPath = "/api/articles/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateArticleValidateBeforeCall(Long id, Article article, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateArticle(Async)"); + } + + // verify the required parameter 'article' is set + if (article == null) { + throw new ApiException("Missing the required parameter 'article' when calling updateArticle(Async)"); + } + + + okhttp3.Call localVarCall = updateArticleCall(id, article, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param article (required) + * @return Article + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Article updateArticle(Long id, Article article) throws ApiException { + ApiResponse
localVarResp = updateArticleWithHttpInfo(id, article); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param article (required) + * @return ApiResponse<Article> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse
updateArticleWithHttpInfo(Long id, Article article) throws ApiException { + okhttp3.Call localVarCall = updateArticleValidateBeforeCall(id, article, null); + Type localVarReturnType = new TypeToken
(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param article (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateArticleAsync(Long id, Article article, final ApiCallback
_callback) throws ApiException { + + okhttp3.Call localVarCall = updateArticleValidateBeforeCall(id, article, _callback); + Type localVarReturnType = new TypeToken
(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApi.java similarity index 63% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneResourceApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApi.java index 5fbcd04..ee41d3f 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneResourceApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Gene; +import org.oncokb.oncokb_curation.client.AuthInfoVM; import java.lang.reflect.Type; import java.util.ArrayList; @@ -35,16 +35,16 @@ import java.util.List; import java.util.Map; -public class GeneResourceApi { +public class AuthInfoResourceApi { private ApiClient localVarApiClient; private int localHostIndex; private String localCustomBaseUrl; - public GeneResourceApi() { + public AuthInfoResourceApi() { this(Configuration.getDefaultApiClient()); } - public GeneResourceApi(ApiClient apiClient) { + public AuthInfoResourceApi(ApiClient apiClient) { this.localVarApiClient = apiClient; } @@ -73,7 +73,7 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for getAllGenesUsingGET + * Build call for getAuthInfo * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -81,12 +81,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call getAllGenesUsingGETCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAuthInfoCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -104,7 +101,7 @@ public okhttp3.Call getAllGenesUsingGETCall(final ApiCallback _callback) throws Object localVarPostBody = null; // create path and map variables - String localVarPath = "/api/genes"; + String localVarPath = "/api/auth-info"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -128,60 +125,54 @@ public okhttp3.Call getAllGenesUsingGETCall(final ApiCallback _callback) throws localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAllGenesUsingGETValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAuthInfoValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAllGenesUsingGETCall(_callback); + okhttp3.Call localVarCall = getAuthInfoCall(_callback); return localVarCall; } /** - * getAllGenes * - * @return List<Gene> + * + * @return AuthInfoVM * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public List getAllGenesUsingGET() throws ApiException { - ApiResponse> localVarResp = getAllGenesUsingGETWithHttpInfo(); + public AuthInfoVM getAuthInfo() throws ApiException { + ApiResponse localVarResp = getAuthInfoWithHttpInfo(); return localVarResp.getData(); } /** - * getAllGenes * - * @return ApiResponse<List<Gene>> + * + * @return ApiResponse<AuthInfoVM> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse> getAllGenesUsingGETWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAllGenesUsingGETValidateBeforeCall(null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse getAuthInfoWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAuthInfoValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * getAllGenes (asynchronously) + * (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -190,15 +181,12 @@ public ApiResponse> getAllGenesUsingGETWithHttpInfo() throws ApiExcep - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call getAllGenesUsingGETAsync(final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getAuthInfoAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAllGenesUsingGETValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken>(){}.getType(); + okhttp3.Call localVarCall = getAuthInfoValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AuthInfoVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AuthInfoVM.java new file mode 100644 index 0000000..db9b626 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/AuthInfoVM.java @@ -0,0 +1,132 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * AuthInfoVM + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AuthInfoVM implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ISSUER = "issuer"; + @SerializedName(SERIALIZED_NAME_ISSUER) + private String issuer; + + public static final String SERIALIZED_NAME_CLIENT_ID = "clientId"; + @SerializedName(SERIALIZED_NAME_CLIENT_ID) + private String clientId; + + public AuthInfoVM() { + } + + public AuthInfoVM issuer(String issuer) { + + this.issuer = issuer; + return this; + } + + /** + * Get issuer + * @return issuer + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getIssuer() { + return issuer; + } + + + public void setIssuer(String issuer) { + this.issuer = issuer; + } + + + public AuthInfoVM clientId(String clientId) { + + this.clientId = clientId; + return this; + } + + /** + * Get clientId + * @return clientId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getClientId() { + return clientId; + } + + + public void setClientId(String clientId) { + this.clientId = clientId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthInfoVM authInfoVM = (AuthInfoVM) o; + return Objects.equals(this.issuer, authInfoVM.issuer) && + Objects.equals(this.clientId, authInfoVM.clientId); + } + + @Override + public int hashCode() { + return Objects.hash(issuer, clientId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthInfoVM {\n"); + sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); + sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociation.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociation.java new file mode 100644 index 0000000..7aab3fb --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociation.java @@ -0,0 +1,280 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.Alteration; +import org.oncokb.oncokb_curation.client.CancerType; +import org.oncokb.oncokb_curation.client.Drug; +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.Gene; +import java.io.Serializable; + +/** + * BiomarkerAssociation + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BiomarkerAssociation implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_ALTERATIONS = "alterations"; + @SerializedName(SERIALIZED_NAME_ALTERATIONS) + private Set alterations = null; + + public static final String SERIALIZED_NAME_DRUGS = "drugs"; + @SerializedName(SERIALIZED_NAME_DRUGS) + private Set drugs = null; + + public static final String SERIALIZED_NAME_FDA_SUBMISSIONS = "fdaSubmissions"; + @SerializedName(SERIALIZED_NAME_FDA_SUBMISSIONS) + private Set fdaSubmissions = null; + + public static final String SERIALIZED_NAME_CANCER_TYPE = "cancerType"; + @SerializedName(SERIALIZED_NAME_CANCER_TYPE) + private CancerType cancerType; + + public static final String SERIALIZED_NAME_GENE = "gene"; + @SerializedName(SERIALIZED_NAME_GENE) + private Gene gene; + + public BiomarkerAssociation() { + } + + public BiomarkerAssociation id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public BiomarkerAssociation alterations(Set alterations) { + + this.alterations = alterations; + return this; + } + + public BiomarkerAssociation addAlterationsItem(Alteration alterationsItem) { + if (this.alterations == null) { + this.alterations = new LinkedHashSet(); + } + this.alterations.add(alterationsItem); + return this; + } + + /** + * Get alterations + * @return alterations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getAlterations() { + return alterations; + } + + + public void setAlterations(Set alterations) { + this.alterations = alterations; + } + + + public BiomarkerAssociation drugs(Set drugs) { + + this.drugs = drugs; + return this; + } + + public BiomarkerAssociation addDrugsItem(Drug drugsItem) { + if (this.drugs == null) { + this.drugs = new LinkedHashSet(); + } + this.drugs.add(drugsItem); + return this; + } + + /** + * Get drugs + * @return drugs + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getDrugs() { + return drugs; + } + + + public void setDrugs(Set drugs) { + this.drugs = drugs; + } + + + public BiomarkerAssociation fdaSubmissions(Set fdaSubmissions) { + + this.fdaSubmissions = fdaSubmissions; + return this; + } + + public BiomarkerAssociation addFdaSubmissionsItem(FdaSubmission fdaSubmissionsItem) { + if (this.fdaSubmissions == null) { + this.fdaSubmissions = new LinkedHashSet(); + } + this.fdaSubmissions.add(fdaSubmissionsItem); + return this; + } + + /** + * Get fdaSubmissions + * @return fdaSubmissions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getFdaSubmissions() { + return fdaSubmissions; + } + + + public void setFdaSubmissions(Set fdaSubmissions) { + this.fdaSubmissions = fdaSubmissions; + } + + + public BiomarkerAssociation cancerType(CancerType cancerType) { + + this.cancerType = cancerType; + return this; + } + + /** + * Get cancerType + * @return cancerType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public CancerType getCancerType() { + return cancerType; + } + + + public void setCancerType(CancerType cancerType) { + this.cancerType = cancerType; + } + + + public BiomarkerAssociation gene(Gene gene) { + + this.gene = gene; + return this; + } + + /** + * Get gene + * @return gene + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Gene getGene() { + return gene; + } + + + public void setGene(Gene gene) { + this.gene = gene; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BiomarkerAssociation biomarkerAssociation = (BiomarkerAssociation) o; + return Objects.equals(this.id, biomarkerAssociation.id) && + Objects.equals(this.alterations, biomarkerAssociation.alterations) && + Objects.equals(this.drugs, biomarkerAssociation.drugs) && + Objects.equals(this.fdaSubmissions, biomarkerAssociation.fdaSubmissions) && + Objects.equals(this.cancerType, biomarkerAssociation.cancerType) && + Objects.equals(this.gene, biomarkerAssociation.gene); + } + + @Override + public int hashCode() { + return Objects.hash(id, alterations, drugs, fdaSubmissions, cancerType, gene); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BiomarkerAssociation {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" alterations: ").append(toIndentedString(alterations)).append("\n"); + sb.append(" drugs: ").append(toIndentedString(drugs)).append("\n"); + sb.append(" fdaSubmissions: ").append(toIndentedString(fdaSubmissions)).append("\n"); + sb.append(" cancerType: ").append(toIndentedString(cancerType)).append("\n"); + sb.append(" gene: ").append(toIndentedString(gene)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTO.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTO.java new file mode 100644 index 0000000..f53c43b --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTO.java @@ -0,0 +1,275 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import java.io.Serializable; + +/** + * BiomarkerAssociationDTO + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BiomarkerAssociationDTO implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_ALTERATIONS = "alterations"; + @SerializedName(SERIALIZED_NAME_ALTERATIONS) + private Set alterations = null; + + public static final String SERIALIZED_NAME_DRUGS = "drugs"; + @SerializedName(SERIALIZED_NAME_DRUGS) + private Set drugs = null; + + public static final String SERIALIZED_NAME_FDA_SUBMISSIONS = "fdaSubmissions"; + @SerializedName(SERIALIZED_NAME_FDA_SUBMISSIONS) + private Set fdaSubmissions = null; + + public static final String SERIALIZED_NAME_CANCER_TYPE = "cancerType"; + @SerializedName(SERIALIZED_NAME_CANCER_TYPE) + private Long cancerType; + + public static final String SERIALIZED_NAME_GENE = "gene"; + @SerializedName(SERIALIZED_NAME_GENE) + private Long gene; + + public BiomarkerAssociationDTO() { + } + + public BiomarkerAssociationDTO id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public BiomarkerAssociationDTO alterations(Set alterations) { + + this.alterations = alterations; + return this; + } + + public BiomarkerAssociationDTO addAlterationsItem(Long alterationsItem) { + if (this.alterations == null) { + this.alterations = new LinkedHashSet(); + } + this.alterations.add(alterationsItem); + return this; + } + + /** + * Get alterations + * @return alterations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getAlterations() { + return alterations; + } + + + public void setAlterations(Set alterations) { + this.alterations = alterations; + } + + + public BiomarkerAssociationDTO drugs(Set drugs) { + + this.drugs = drugs; + return this; + } + + public BiomarkerAssociationDTO addDrugsItem(Long drugsItem) { + if (this.drugs == null) { + this.drugs = new LinkedHashSet(); + } + this.drugs.add(drugsItem); + return this; + } + + /** + * Get drugs + * @return drugs + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getDrugs() { + return drugs; + } + + + public void setDrugs(Set drugs) { + this.drugs = drugs; + } + + + public BiomarkerAssociationDTO fdaSubmissions(Set fdaSubmissions) { + + this.fdaSubmissions = fdaSubmissions; + return this; + } + + public BiomarkerAssociationDTO addFdaSubmissionsItem(Long fdaSubmissionsItem) { + if (this.fdaSubmissions == null) { + this.fdaSubmissions = new LinkedHashSet(); + } + this.fdaSubmissions.add(fdaSubmissionsItem); + return this; + } + + /** + * Get fdaSubmissions + * @return fdaSubmissions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getFdaSubmissions() { + return fdaSubmissions; + } + + + public void setFdaSubmissions(Set fdaSubmissions) { + this.fdaSubmissions = fdaSubmissions; + } + + + public BiomarkerAssociationDTO cancerType(Long cancerType) { + + this.cancerType = cancerType; + return this; + } + + /** + * Get cancerType + * @return cancerType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getCancerType() { + return cancerType; + } + + + public void setCancerType(Long cancerType) { + this.cancerType = cancerType; + } + + + public BiomarkerAssociationDTO gene(Long gene) { + + this.gene = gene; + return this; + } + + /** + * Get gene + * @return gene + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getGene() { + return gene; + } + + + public void setGene(Long gene) { + this.gene = gene; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BiomarkerAssociationDTO biomarkerAssociationDTO = (BiomarkerAssociationDTO) o; + return Objects.equals(this.id, biomarkerAssociationDTO.id) && + Objects.equals(this.alterations, biomarkerAssociationDTO.alterations) && + Objects.equals(this.drugs, biomarkerAssociationDTO.drugs) && + Objects.equals(this.fdaSubmissions, biomarkerAssociationDTO.fdaSubmissions) && + Objects.equals(this.cancerType, biomarkerAssociationDTO.cancerType) && + Objects.equals(this.gene, biomarkerAssociationDTO.gene); + } + + @Override + public int hashCode() { + return Objects.hash(id, alterations, drugs, fdaSubmissions, cancerType, gene); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BiomarkerAssociationDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" alterations: ").append(toIndentedString(alterations)).append("\n"); + sb.append(" drugs: ").append(toIndentedString(drugs)).append("\n"); + sb.append(" fdaSubmissions: ").append(toIndentedString(fdaSubmissions)).append("\n"); + sb.append(" cancerType: ").append(toIndentedString(cancerType)).append("\n"); + sb.append(" gene: ").append(toIndentedString(gene)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApi.java new file mode 100644 index 0000000..145bce1 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApi.java @@ -0,0 +1,975 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationDTO; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class BiomarkerAssociationResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public BiomarkerAssociationResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public BiomarkerAssociationResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createBiomarkerAssociation + * @param biomarkerAssociationDTO (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createBiomarkerAssociationCall(BiomarkerAssociationDTO biomarkerAssociationDTO, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = biomarkerAssociationDTO; + + // create path and map variables + String localVarPath = "/api/biomarker-associations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createBiomarkerAssociationValidateBeforeCall(BiomarkerAssociationDTO biomarkerAssociationDTO, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'biomarkerAssociationDTO' is set + if (biomarkerAssociationDTO == null) { + throw new ApiException("Missing the required parameter 'biomarkerAssociationDTO' when calling createBiomarkerAssociation(Async)"); + } + + + okhttp3.Call localVarCall = createBiomarkerAssociationCall(biomarkerAssociationDTO, _callback); + return localVarCall; + + } + + /** + * + * + * @param biomarkerAssociationDTO (required) + * @return BiomarkerAssociation + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public BiomarkerAssociation createBiomarkerAssociation(BiomarkerAssociationDTO biomarkerAssociationDTO) throws ApiException { + ApiResponse localVarResp = createBiomarkerAssociationWithHttpInfo(biomarkerAssociationDTO); + return localVarResp.getData(); + } + + /** + * + * + * @param biomarkerAssociationDTO (required) + * @return ApiResponse<BiomarkerAssociation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createBiomarkerAssociationWithHttpInfo(BiomarkerAssociationDTO biomarkerAssociationDTO) throws ApiException { + okhttp3.Call localVarCall = createBiomarkerAssociationValidateBeforeCall(biomarkerAssociationDTO, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param biomarkerAssociationDTO (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createBiomarkerAssociationAsync(BiomarkerAssociationDTO biomarkerAssociationDTO, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createBiomarkerAssociationValidateBeforeCall(biomarkerAssociationDTO, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteBiomarkerAssociation + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteBiomarkerAssociationCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/biomarker-associations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteBiomarkerAssociationValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteBiomarkerAssociation(Async)"); + } + + + okhttp3.Call localVarCall = deleteBiomarkerAssociationCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteBiomarkerAssociation(Long id) throws ApiException { + deleteBiomarkerAssociationWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteBiomarkerAssociationWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteBiomarkerAssociationValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteBiomarkerAssociationAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteBiomarkerAssociationValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllBiomarkerAssociations + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllBiomarkerAssociationsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/biomarker-associations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllBiomarkerAssociationsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllBiomarkerAssociationsCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<BiomarkerAssociation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllBiomarkerAssociations() throws ApiException { + ApiResponse> localVarResp = getAllBiomarkerAssociationsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<BiomarkerAssociation>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllBiomarkerAssociationsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllBiomarkerAssociationsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllBiomarkerAssociationsAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllBiomarkerAssociationsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getBiomarkerAssociation + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getBiomarkerAssociationCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/biomarker-associations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getBiomarkerAssociationValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getBiomarkerAssociation(Async)"); + } + + + okhttp3.Call localVarCall = getBiomarkerAssociationCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return BiomarkerAssociation + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public BiomarkerAssociation getBiomarkerAssociation(Long id) throws ApiException { + ApiResponse localVarResp = getBiomarkerAssociationWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<BiomarkerAssociation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getBiomarkerAssociationWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getBiomarkerAssociationValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getBiomarkerAssociationAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getBiomarkerAssociationValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getBiomarkerAssociationByCompanionDiagnosticDevice + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getBiomarkerAssociationByCompanionDiagnosticDeviceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/biomarker-associations/companion-diagnostic-device/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getBiomarkerAssociationByCompanionDiagnosticDeviceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getBiomarkerAssociationByCompanionDiagnosticDevice(Async)"); + } + + + okhttp3.Call localVarCall = getBiomarkerAssociationByCompanionDiagnosticDeviceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return List<BiomarkerAssociation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getBiomarkerAssociationByCompanionDiagnosticDevice(Long id) throws ApiException { + ApiResponse> localVarResp = getBiomarkerAssociationByCompanionDiagnosticDeviceWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<List<BiomarkerAssociation>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getBiomarkerAssociationByCompanionDiagnosticDeviceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getBiomarkerAssociationByCompanionDiagnosticDeviceValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getBiomarkerAssociationByCompanionDiagnosticDeviceAsync(Long id, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getBiomarkerAssociationByCompanionDiagnosticDeviceValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateBiomarkerAssociation + * @param id (required) + * @param biomarkerAssociation (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateBiomarkerAssociationCall(Long id, BiomarkerAssociation biomarkerAssociation, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = biomarkerAssociation; + + // create path and map variables + String localVarPath = "/api/biomarker-associations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateBiomarkerAssociationValidateBeforeCall(Long id, BiomarkerAssociation biomarkerAssociation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateBiomarkerAssociation(Async)"); + } + + // verify the required parameter 'biomarkerAssociation' is set + if (biomarkerAssociation == null) { + throw new ApiException("Missing the required parameter 'biomarkerAssociation' when calling partialUpdateBiomarkerAssociation(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateBiomarkerAssociationCall(id, biomarkerAssociation, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param biomarkerAssociation (required) + * @return BiomarkerAssociation + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public BiomarkerAssociation partialUpdateBiomarkerAssociation(Long id, BiomarkerAssociation biomarkerAssociation) throws ApiException { + ApiResponse localVarResp = partialUpdateBiomarkerAssociationWithHttpInfo(id, biomarkerAssociation); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param biomarkerAssociation (required) + * @return ApiResponse<BiomarkerAssociation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateBiomarkerAssociationWithHttpInfo(Long id, BiomarkerAssociation biomarkerAssociation) throws ApiException { + okhttp3.Call localVarCall = partialUpdateBiomarkerAssociationValidateBeforeCall(id, biomarkerAssociation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param biomarkerAssociation (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateBiomarkerAssociationAsync(Long id, BiomarkerAssociation biomarkerAssociation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateBiomarkerAssociationValidateBeforeCall(id, biomarkerAssociation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateBiomarkerAssociation + * @param id (required) + * @param biomarkerAssociation (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateBiomarkerAssociationCall(Long id, BiomarkerAssociation biomarkerAssociation, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = biomarkerAssociation; + + // create path and map variables + String localVarPath = "/api/biomarker-associations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateBiomarkerAssociationValidateBeforeCall(Long id, BiomarkerAssociation biomarkerAssociation, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateBiomarkerAssociation(Async)"); + } + + // verify the required parameter 'biomarkerAssociation' is set + if (biomarkerAssociation == null) { + throw new ApiException("Missing the required parameter 'biomarkerAssociation' when calling updateBiomarkerAssociation(Async)"); + } + + + okhttp3.Call localVarCall = updateBiomarkerAssociationCall(id, biomarkerAssociation, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param biomarkerAssociation (required) + * @return BiomarkerAssociation + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public BiomarkerAssociation updateBiomarkerAssociation(Long id, BiomarkerAssociation biomarkerAssociation) throws ApiException { + ApiResponse localVarResp = updateBiomarkerAssociationWithHttpInfo(id, biomarkerAssociation); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param biomarkerAssociation (required) + * @return ApiResponse<BiomarkerAssociation> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateBiomarkerAssociationWithHttpInfo(Long id, BiomarkerAssociation biomarkerAssociation) throws ApiException { + okhttp3.Call localVarCall = updateBiomarkerAssociationValidateBeforeCall(id, biomarkerAssociation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param biomarkerAssociation (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateBiomarkerAssociationAsync(Long id, BiomarkerAssociation biomarkerAssociation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateBiomarkerAssociationValidateBeforeCall(id, biomarkerAssociation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BooleanFilter.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BooleanFilter.java new file mode 100644 index 0000000..e2f1d08 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/BooleanFilter.java @@ -0,0 +1,237 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; + +/** + * BooleanFilter + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BooleanFilter implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_EQUALS = "equals"; + @SerializedName(SERIALIZED_NAME_EQUALS) + private Boolean equals; + + public static final String SERIALIZED_NAME_NOT_EQUALS = "notEquals"; + @SerializedName(SERIALIZED_NAME_NOT_EQUALS) + private Boolean notEquals; + + public static final String SERIALIZED_NAME_SPECIFIED = "specified"; + @SerializedName(SERIALIZED_NAME_SPECIFIED) + private Boolean specified; + + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + private List in = null; + + public static final String SERIALIZED_NAME_NOT_IN = "notIn"; + @SerializedName(SERIALIZED_NAME_NOT_IN) + private List notIn = null; + + public BooleanFilter() { + } + + public BooleanFilter equals(Boolean equals) { + + this.equals = equals; + return this; + } + + /** + * Get equals + * @return equals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getEquals() { + return equals; + } + + + public void setEquals(Boolean equals) { + this.equals = equals; + } + + + public BooleanFilter notEquals(Boolean notEquals) { + + this.notEquals = notEquals; + return this; + } + + /** + * Get notEquals + * @return notEquals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getNotEquals() { + return notEquals; + } + + + public void setNotEquals(Boolean notEquals) { + this.notEquals = notEquals; + } + + + public BooleanFilter specified(Boolean specified) { + + this.specified = specified; + return this; + } + + /** + * Get specified + * @return specified + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getSpecified() { + return specified; + } + + + public void setSpecified(Boolean specified) { + this.specified = specified; + } + + + public BooleanFilter in(List in) { + + this.in = in; + return this; + } + + public BooleanFilter addInItem(Boolean inItem) { + if (this.in == null) { + this.in = new ArrayList(); + } + this.in.add(inItem); + return this; + } + + /** + * Get in + * @return in + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getIn() { + return in; + } + + + public void setIn(List in) { + this.in = in; + } + + + public BooleanFilter notIn(List notIn) { + + this.notIn = notIn; + return this; + } + + public BooleanFilter addNotInItem(Boolean notInItem) { + if (this.notIn == null) { + this.notIn = new ArrayList(); + } + this.notIn.add(notInItem); + return this; + } + + /** + * Get notIn + * @return notIn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getNotIn() { + return notIn; + } + + + public void setNotIn(List notIn) { + this.notIn = notIn; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BooleanFilter booleanFilter = (BooleanFilter) o; + return Objects.equals(this.equals, booleanFilter.equals) && + Objects.equals(this.notEquals, booleanFilter.notEquals) && + Objects.equals(this.specified, booleanFilter.specified) && + Objects.equals(this.in, booleanFilter.in) && + Objects.equals(this.notIn, booleanFilter.notIn); + } + + @Override + public int hashCode() { + return Objects.hash(equals, notEquals, specified, in, notIn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BooleanFilter {\n"); + sb.append(" equals: ").append(toIndentedString(equals)).append("\n"); + sb.append(" notEquals: ").append(toIndentedString(notEquals)).append("\n"); + sb.append(" specified: ").append(toIndentedString(specified)).append("\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append(" notIn: ").append(toIndentedString(notIn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerType.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerType.java new file mode 100644 index 0000000..b5beaea --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerType.java @@ -0,0 +1,355 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * CancerType + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CancerType implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) + private String color; + + public static final String SERIALIZED_NAME_LEVEL = "level"; + @SerializedName(SERIALIZED_NAME_LEVEL) + private Integer level; + + public static final String SERIALIZED_NAME_MAIN_TYPE = "mainType"; + @SerializedName(SERIALIZED_NAME_MAIN_TYPE) + private String mainType; + + public static final String SERIALIZED_NAME_SUBTYPE = "subtype"; + @SerializedName(SERIALIZED_NAME_SUBTYPE) + private String subtype; + + public static final String SERIALIZED_NAME_TISSUE = "tissue"; + @SerializedName(SERIALIZED_NAME_TISSUE) + private String tissue; + + /** + * Gets or Sets tumorForm + */ + @JsonAdapter(TumorFormEnum.Adapter.class) + public enum TumorFormEnum { + SOLID("SOLID"), + + LIQUID("LIQUID"), + + MIXED("MIXED"); + + private String value; + + TumorFormEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TumorFormEnum fromValue(String value) { + for (TumorFormEnum b : TumorFormEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TumorFormEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TumorFormEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TumorFormEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TUMOR_FORM = "tumorForm"; + @SerializedName(SERIALIZED_NAME_TUMOR_FORM) + private TumorFormEnum tumorForm; + + public CancerType() { + } + + public CancerType id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public CancerType code(String code) { + + this.code = code; + return this; + } + + /** + * Get code + * @return code + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + + public CancerType color(String color) { + + this.color = color; + return this; + } + + /** + * Get color + * @return color + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getColor() { + return color; + } + + + public void setColor(String color) { + this.color = color; + } + + + public CancerType level(Integer level) { + + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Integer getLevel() { + return level; + } + + + public void setLevel(Integer level) { + this.level = level; + } + + + public CancerType mainType(String mainType) { + + this.mainType = mainType; + return this; + } + + /** + * Get mainType + * @return mainType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getMainType() { + return mainType; + } + + + public void setMainType(String mainType) { + this.mainType = mainType; + } + + + public CancerType subtype(String subtype) { + + this.subtype = subtype; + return this; + } + + /** + * Get subtype + * @return subtype + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getSubtype() { + return subtype; + } + + + public void setSubtype(String subtype) { + this.subtype = subtype; + } + + + public CancerType tissue(String tissue) { + + this.tissue = tissue; + return this; + } + + /** + * Get tissue + * @return tissue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getTissue() { + return tissue; + } + + + public void setTissue(String tissue) { + this.tissue = tissue; + } + + + public CancerType tumorForm(TumorFormEnum tumorForm) { + + this.tumorForm = tumorForm; + return this; + } + + /** + * Get tumorForm + * @return tumorForm + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public TumorFormEnum getTumorForm() { + return tumorForm; + } + + + public void setTumorForm(TumorFormEnum tumorForm) { + this.tumorForm = tumorForm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancerType cancerType = (CancerType) o; + return Objects.equals(this.id, cancerType.id) && + Objects.equals(this.code, cancerType.code) && + Objects.equals(this.color, cancerType.color) && + Objects.equals(this.level, cancerType.level) && + Objects.equals(this.mainType, cancerType.mainType) && + Objects.equals(this.subtype, cancerType.subtype) && + Objects.equals(this.tissue, cancerType.tissue) && + Objects.equals(this.tumorForm, cancerType.tumorForm); + } + + @Override + public int hashCode() { + return Objects.hash(id, code, color, level, mainType, subtype, tissue, tumorForm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancerType {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" mainType: ").append(toIndentedString(mainType)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" tissue: ").append(toIndentedString(tissue)).append("\n"); + sb.append(" tumorForm: ").append(toIndentedString(tumorForm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerTypeCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerTypeCriteria.java new file mode 100644 index 0000000..0b26bfe --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerTypeCriteria.java @@ -0,0 +1,426 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.IntegerFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.oncokb.oncokb_curation.client.TumorFormFilter; +import java.io.Serializable; + +/** + * CancerTypeCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CancerTypeCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private StringFilter code; + + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) + private StringFilter color; + + public static final String SERIALIZED_NAME_LEVEL = "level"; + @SerializedName(SERIALIZED_NAME_LEVEL) + private IntegerFilter level; + + public static final String SERIALIZED_NAME_MAIN_TYPE = "mainType"; + @SerializedName(SERIALIZED_NAME_MAIN_TYPE) + private StringFilter mainType; + + public static final String SERIALIZED_NAME_SUBTYPE = "subtype"; + @SerializedName(SERIALIZED_NAME_SUBTYPE) + private StringFilter subtype; + + public static final String SERIALIZED_NAME_TISSUE = "tissue"; + @SerializedName(SERIALIZED_NAME_TISSUE) + private StringFilter tissue; + + public static final String SERIALIZED_NAME_TUMOR_FORM = "tumorForm"; + @SerializedName(SERIALIZED_NAME_TUMOR_FORM) + private TumorFormFilter tumorForm; + + public static final String SERIALIZED_NAME_CHILDREN_ID = "childrenId"; + @SerializedName(SERIALIZED_NAME_CHILDREN_ID) + private LongFilter childrenId; + + public static final String SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID = "biomarkerAssociationId"; + @SerializedName(SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID) + private LongFilter biomarkerAssociationId; + + public static final String SERIALIZED_NAME_PARENT_ID = "parentId"; + @SerializedName(SERIALIZED_NAME_PARENT_ID) + private LongFilter parentId; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public CancerTypeCriteria() { + } + + public CancerTypeCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public CancerTypeCriteria code(StringFilter code) { + + this.code = code; + return this; + } + + /** + * Get code + * @return code + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getCode() { + return code; + } + + + public void setCode(StringFilter code) { + this.code = code; + } + + + public CancerTypeCriteria color(StringFilter color) { + + this.color = color; + return this; + } + + /** + * Get color + * @return color + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getColor() { + return color; + } + + + public void setColor(StringFilter color) { + this.color = color; + } + + + public CancerTypeCriteria level(IntegerFilter level) { + + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public IntegerFilter getLevel() { + return level; + } + + + public void setLevel(IntegerFilter level) { + this.level = level; + } + + + public CancerTypeCriteria mainType(StringFilter mainType) { + + this.mainType = mainType; + return this; + } + + /** + * Get mainType + * @return mainType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getMainType() { + return mainType; + } + + + public void setMainType(StringFilter mainType) { + this.mainType = mainType; + } + + + public CancerTypeCriteria subtype(StringFilter subtype) { + + this.subtype = subtype; + return this; + } + + /** + * Get subtype + * @return subtype + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getSubtype() { + return subtype; + } + + + public void setSubtype(StringFilter subtype) { + this.subtype = subtype; + } + + + public CancerTypeCriteria tissue(StringFilter tissue) { + + this.tissue = tissue; + return this; + } + + /** + * Get tissue + * @return tissue + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getTissue() { + return tissue; + } + + + public void setTissue(StringFilter tissue) { + this.tissue = tissue; + } + + + public CancerTypeCriteria tumorForm(TumorFormFilter tumorForm) { + + this.tumorForm = tumorForm; + return this; + } + + /** + * Get tumorForm + * @return tumorForm + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public TumorFormFilter getTumorForm() { + return tumorForm; + } + + + public void setTumorForm(TumorFormFilter tumorForm) { + this.tumorForm = tumorForm; + } + + + public CancerTypeCriteria childrenId(LongFilter childrenId) { + + this.childrenId = childrenId; + return this; + } + + /** + * Get childrenId + * @return childrenId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getChildrenId() { + return childrenId; + } + + + public void setChildrenId(LongFilter childrenId) { + this.childrenId = childrenId; + } + + + public CancerTypeCriteria biomarkerAssociationId(LongFilter biomarkerAssociationId) { + + this.biomarkerAssociationId = biomarkerAssociationId; + return this; + } + + /** + * Get biomarkerAssociationId + * @return biomarkerAssociationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getBiomarkerAssociationId() { + return biomarkerAssociationId; + } + + + public void setBiomarkerAssociationId(LongFilter biomarkerAssociationId) { + this.biomarkerAssociationId = biomarkerAssociationId; + } + + + public CancerTypeCriteria parentId(LongFilter parentId) { + + this.parentId = parentId; + return this; + } + + /** + * Get parentId + * @return parentId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getParentId() { + return parentId; + } + + + public void setParentId(LongFilter parentId) { + this.parentId = parentId; + } + + + public CancerTypeCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancerTypeCriteria cancerTypeCriteria = (CancerTypeCriteria) o; + return Objects.equals(this.id, cancerTypeCriteria.id) && + Objects.equals(this.code, cancerTypeCriteria.code) && + Objects.equals(this.color, cancerTypeCriteria.color) && + Objects.equals(this.level, cancerTypeCriteria.level) && + Objects.equals(this.mainType, cancerTypeCriteria.mainType) && + Objects.equals(this.subtype, cancerTypeCriteria.subtype) && + Objects.equals(this.tissue, cancerTypeCriteria.tissue) && + Objects.equals(this.tumorForm, cancerTypeCriteria.tumorForm) && + Objects.equals(this.childrenId, cancerTypeCriteria.childrenId) && + Objects.equals(this.biomarkerAssociationId, cancerTypeCriteria.biomarkerAssociationId) && + Objects.equals(this.parentId, cancerTypeCriteria.parentId) && + Objects.equals(this.distinct, cancerTypeCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, code, color, level, mainType, subtype, tissue, tumorForm, childrenId, biomarkerAssociationId, parentId, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancerTypeCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" color: ").append(toIndentedString(color)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" mainType: ").append(toIndentedString(mainType)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" tissue: ").append(toIndentedString(tissue)).append("\n"); + sb.append(" tumorForm: ").append(toIndentedString(tumorForm)).append("\n"); + sb.append(" childrenId: ").append(toIndentedString(childrenId)).append("\n"); + sb.append(" biomarkerAssociationId: ").append(toIndentedString(biomarkerAssociationId)).append("\n"); + sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApi.java new file mode 100644 index 0000000..5acd850 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApi.java @@ -0,0 +1,1149 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.CancerType; +import org.oncokb.oncokb_curation.client.CancerTypeCriteria; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CancerTypeResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CancerTypeResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public CancerTypeResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countCancerTypes + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countCancerTypesCall(CancerTypeCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/cancer-types/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countCancerTypesValidateBeforeCall(CancerTypeCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countCancerTypes(Async)"); + } + + + okhttp3.Call localVarCall = countCancerTypesCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countCancerTypes(CancerTypeCriteria criteria) throws ApiException { + ApiResponse localVarResp = countCancerTypesWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countCancerTypesWithHttpInfo(CancerTypeCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countCancerTypesValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countCancerTypesAsync(CancerTypeCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countCancerTypesValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createCancerType + * @param cancerType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createCancerTypeCall(CancerType cancerType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = cancerType; + + // create path and map variables + String localVarPath = "/api/cancer-types"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createCancerTypeValidateBeforeCall(CancerType cancerType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'cancerType' is set + if (cancerType == null) { + throw new ApiException("Missing the required parameter 'cancerType' when calling createCancerType(Async)"); + } + + + okhttp3.Call localVarCall = createCancerTypeCall(cancerType, _callback); + return localVarCall; + + } + + /** + * + * + * @param cancerType (required) + * @return CancerType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CancerType createCancerType(CancerType cancerType) throws ApiException { + ApiResponse localVarResp = createCancerTypeWithHttpInfo(cancerType); + return localVarResp.getData(); + } + + /** + * + * + * @param cancerType (required) + * @return ApiResponse<CancerType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createCancerTypeWithHttpInfo(CancerType cancerType) throws ApiException { + okhttp3.Call localVarCall = createCancerTypeValidateBeforeCall(cancerType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param cancerType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createCancerTypeAsync(CancerType cancerType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createCancerTypeValidateBeforeCall(cancerType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCancerType + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteCancerTypeCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/cancer-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCancerTypeValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteCancerType(Async)"); + } + + + okhttp3.Call localVarCall = deleteCancerTypeCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteCancerType(Long id) throws ApiException { + deleteCancerTypeWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteCancerTypeWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteCancerTypeValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteCancerTypeAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCancerTypeValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllCancerTypes + * @param criteria (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllCancerTypesCall(CancerTypeCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/cancer-types"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllCancerTypesValidateBeforeCall(CancerTypeCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllCancerTypes(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllCancerTypes(Async)"); + } + + + okhttp3.Call localVarCall = getAllCancerTypesCall(criteria, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return List<CancerType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllCancerTypes(CancerTypeCriteria criteria, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllCancerTypesWithHttpInfo(criteria, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return ApiResponse<List<CancerType>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllCancerTypesWithHttpInfo(CancerTypeCriteria criteria, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllCancerTypesValidateBeforeCall(criteria, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllCancerTypesAsync(CancerTypeCriteria criteria, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllCancerTypesValidateBeforeCall(criteria, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCancerType + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCancerTypeCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/cancer-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCancerTypeValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getCancerType(Async)"); + } + + + okhttp3.Call localVarCall = getCancerTypeCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return CancerType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CancerType getCancerType(Long id) throws ApiException { + ApiResponse localVarResp = getCancerTypeWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<CancerType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getCancerTypeWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getCancerTypeValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCancerTypeAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCancerTypeValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateCancerType + * @param id (required) + * @param cancerType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateCancerTypeCall(Long id, CancerType cancerType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = cancerType; + + // create path and map variables + String localVarPath = "/api/cancer-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateCancerTypeValidateBeforeCall(Long id, CancerType cancerType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateCancerType(Async)"); + } + + // verify the required parameter 'cancerType' is set + if (cancerType == null) { + throw new ApiException("Missing the required parameter 'cancerType' when calling partialUpdateCancerType(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateCancerTypeCall(id, cancerType, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param cancerType (required) + * @return CancerType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CancerType partialUpdateCancerType(Long id, CancerType cancerType) throws ApiException { + ApiResponse localVarResp = partialUpdateCancerTypeWithHttpInfo(id, cancerType); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param cancerType (required) + * @return ApiResponse<CancerType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateCancerTypeWithHttpInfo(Long id, CancerType cancerType) throws ApiException { + okhttp3.Call localVarCall = partialUpdateCancerTypeValidateBeforeCall(id, cancerType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param cancerType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateCancerTypeAsync(Long id, CancerType cancerType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateCancerTypeValidateBeforeCall(id, cancerType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchCancerTypes + * @param query (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchCancerTypesCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/cancer-types"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchCancerTypesValidateBeforeCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchCancerTypes(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling searchCancerTypes(Async)"); + } + + + okhttp3.Call localVarCall = searchCancerTypesCall(query, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return List<CancerType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List searchCancerTypes(String query, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = searchCancerTypesWithHttpInfo(query, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return ApiResponse<List<CancerType>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchCancerTypesWithHttpInfo(String query, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = searchCancerTypesValidateBeforeCall(query, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchCancerTypesAsync(String query, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchCancerTypesValidateBeforeCall(query, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateCancerType + * @param id (required) + * @param cancerType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateCancerTypeCall(Long id, CancerType cancerType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = cancerType; + + // create path and map variables + String localVarPath = "/api/cancer-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateCancerTypeValidateBeforeCall(Long id, CancerType cancerType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateCancerType(Async)"); + } + + // verify the required parameter 'cancerType' is set + if (cancerType == null) { + throw new ApiException("Missing the required parameter 'cancerType' when calling updateCancerType(Async)"); + } + + + okhttp3.Call localVarCall = updateCancerTypeCall(id, cancerType, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param cancerType (required) + * @return CancerType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CancerType updateCancerType(Long id, CancerType cancerType) throws ApiException { + ApiResponse localVarResp = updateCancerTypeWithHttpInfo(id, cancerType); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param cancerType (required) + * @return ApiResponse<CancerType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateCancerTypeWithHttpInfo(Long id, CancerType cancerType) throws ApiException { + okhttp3.Call localVarCall = updateCancerTypeValidateBeforeCall(id, cancerType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param cancerType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateCancerTypeAsync(Long id, CancerType cancerType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCancerTypeValidateBeforeCall(id, cancerType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlteration.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlteration.java new file mode 100644 index 0000000..2c7797c --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlteration.java @@ -0,0 +1,308 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * CategoricalAlteration + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CategoricalAlteration implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + ONCOGENIC_MUTATIONS("ONCOGENIC_MUTATIONS"), + + GAIN_OF_FUNCTION_MUTATIONS("GAIN_OF_FUNCTION_MUTATIONS"), + + LOSS_OF_FUNCTION_MUTATIONS("LOSS_OF_FUNCTION_MUTATIONS"), + + SWITCH_OF_FUNCTION_MUTATIONS("SWITCH_OF_FUNCTION_MUTATIONS"), + + VUS("VUS"), + + TRUNCATING_MUTATIONS("TRUNCATING_MUTATIONS"), + + FUSIONS("FUSIONS"), + + AMPLIFICATION("AMPLIFICATION"), + + DELETION("DELETION"), + + PROMOTER("PROMOTER"), + + WILDTYPE("WILDTYPE"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + /** + * Gets or Sets alterationType + */ + @JsonAdapter(AlterationTypeEnum.Adapter.class) + public enum AlterationTypeEnum { + MUTATION("MUTATION"), + + COPY_NUMBER_ALTERATION("COPY_NUMBER_ALTERATION"), + + STRUCTURAL_VARIANT("STRUCTURAL_VARIANT"), + + UNKNOWN("UNKNOWN"), + + NA("NA"); + + private String value; + + AlterationTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AlterationTypeEnum fromValue(String value) { + for (AlterationTypeEnum b : AlterationTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AlterationTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AlterationTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AlterationTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ALTERATION_TYPE = "alterationType"; + @SerializedName(SERIALIZED_NAME_ALTERATION_TYPE) + private AlterationTypeEnum alterationType; + + public CategoricalAlteration() { + } + + public CategoricalAlteration id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public CategoricalAlteration name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public CategoricalAlteration type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public CategoricalAlteration alterationType(AlterationTypeEnum alterationType) { + + this.alterationType = alterationType; + return this; + } + + /** + * Get alterationType + * @return alterationType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public AlterationTypeEnum getAlterationType() { + return alterationType; + } + + + public void setAlterationType(AlterationTypeEnum alterationType) { + this.alterationType = alterationType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CategoricalAlteration categoricalAlteration = (CategoricalAlteration) o; + return Objects.equals(this.id, categoricalAlteration.id) && + Objects.equals(this.name, categoricalAlteration.name) && + Objects.equals(this.type, categoricalAlteration.type) && + Objects.equals(this.alterationType, categoricalAlteration.alterationType); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type, alterationType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CategoricalAlteration {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" alterationType: ").append(toIndentedString(alterationType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApi.java new file mode 100644 index 0000000..d3a40b6 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.CategoricalAlteration; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CategoricalAlterationResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CategoricalAlterationResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public CategoricalAlterationResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createCategoricalAlteration + * @param categoricalAlteration (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createCategoricalAlterationCall(CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = categoricalAlteration; + + // create path and map variables + String localVarPath = "/api/categorical-alterations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createCategoricalAlterationValidateBeforeCall(CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'categoricalAlteration' is set + if (categoricalAlteration == null) { + throw new ApiException("Missing the required parameter 'categoricalAlteration' when calling createCategoricalAlteration(Async)"); + } + + + okhttp3.Call localVarCall = createCategoricalAlterationCall(categoricalAlteration, _callback); + return localVarCall; + + } + + /** + * + * + * @param categoricalAlteration (required) + * @return CategoricalAlteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CategoricalAlteration createCategoricalAlteration(CategoricalAlteration categoricalAlteration) throws ApiException { + ApiResponse localVarResp = createCategoricalAlterationWithHttpInfo(categoricalAlteration); + return localVarResp.getData(); + } + + /** + * + * + * @param categoricalAlteration (required) + * @return ApiResponse<CategoricalAlteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createCategoricalAlterationWithHttpInfo(CategoricalAlteration categoricalAlteration) throws ApiException { + okhttp3.Call localVarCall = createCategoricalAlterationValidateBeforeCall(categoricalAlteration, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param categoricalAlteration (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createCategoricalAlterationAsync(CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createCategoricalAlterationValidateBeforeCall(categoricalAlteration, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCategoricalAlteration + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteCategoricalAlterationCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/categorical-alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCategoricalAlterationValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteCategoricalAlteration(Async)"); + } + + + okhttp3.Call localVarCall = deleteCategoricalAlterationCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteCategoricalAlteration(Long id) throws ApiException { + deleteCategoricalAlterationWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteCategoricalAlterationWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteCategoricalAlterationValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteCategoricalAlterationAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCategoricalAlterationValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllCategoricalAlterations + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllCategoricalAlterationsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/categorical-alterations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllCategoricalAlterationsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllCategoricalAlterationsCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<CategoricalAlteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllCategoricalAlterations() throws ApiException { + ApiResponse> localVarResp = getAllCategoricalAlterationsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<CategoricalAlteration>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllCategoricalAlterationsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllCategoricalAlterationsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllCategoricalAlterationsAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllCategoricalAlterationsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCategoricalAlteration + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCategoricalAlterationCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/categorical-alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCategoricalAlterationValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getCategoricalAlteration(Async)"); + } + + + okhttp3.Call localVarCall = getCategoricalAlterationCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return CategoricalAlteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CategoricalAlteration getCategoricalAlteration(Long id) throws ApiException { + ApiResponse localVarResp = getCategoricalAlterationWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<CategoricalAlteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getCategoricalAlterationWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getCategoricalAlterationValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCategoricalAlterationAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCategoricalAlterationValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateCategoricalAlteration + * @param id (required) + * @param categoricalAlteration (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateCategoricalAlterationCall(Long id, CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = categoricalAlteration; + + // create path and map variables + String localVarPath = "/api/categorical-alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateCategoricalAlterationValidateBeforeCall(Long id, CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateCategoricalAlteration(Async)"); + } + + // verify the required parameter 'categoricalAlteration' is set + if (categoricalAlteration == null) { + throw new ApiException("Missing the required parameter 'categoricalAlteration' when calling partialUpdateCategoricalAlteration(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateCategoricalAlterationCall(id, categoricalAlteration, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param categoricalAlteration (required) + * @return CategoricalAlteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CategoricalAlteration partialUpdateCategoricalAlteration(Long id, CategoricalAlteration categoricalAlteration) throws ApiException { + ApiResponse localVarResp = partialUpdateCategoricalAlterationWithHttpInfo(id, categoricalAlteration); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param categoricalAlteration (required) + * @return ApiResponse<CategoricalAlteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateCategoricalAlterationWithHttpInfo(Long id, CategoricalAlteration categoricalAlteration) throws ApiException { + okhttp3.Call localVarCall = partialUpdateCategoricalAlterationValidateBeforeCall(id, categoricalAlteration, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param categoricalAlteration (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateCategoricalAlterationAsync(Long id, CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateCategoricalAlterationValidateBeforeCall(id, categoricalAlteration, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateCategoricalAlteration + * @param id (required) + * @param categoricalAlteration (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateCategoricalAlterationCall(Long id, CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = categoricalAlteration; + + // create path and map variables + String localVarPath = "/api/categorical-alterations/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateCategoricalAlterationValidateBeforeCall(Long id, CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateCategoricalAlteration(Async)"); + } + + // verify the required parameter 'categoricalAlteration' is set + if (categoricalAlteration == null) { + throw new ApiException("Missing the required parameter 'categoricalAlteration' when calling updateCategoricalAlteration(Async)"); + } + + + okhttp3.Call localVarCall = updateCategoricalAlterationCall(id, categoricalAlteration, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param categoricalAlteration (required) + * @return CategoricalAlteration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CategoricalAlteration updateCategoricalAlteration(Long id, CategoricalAlteration categoricalAlteration) throws ApiException { + ApiResponse localVarResp = updateCategoricalAlterationWithHttpInfo(id, categoricalAlteration); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param categoricalAlteration (required) + * @return ApiResponse<CategoricalAlteration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateCategoricalAlterationWithHttpInfo(Long id, CategoricalAlteration categoricalAlteration) throws ApiException { + okhttp3.Call localVarCall = updateCategoricalAlterationValidateBeforeCall(id, categoricalAlteration, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param categoricalAlteration (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateCategoricalAlterationAsync(Long id, CategoricalAlteration categoricalAlteration, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCategoricalAlterationValidateBeforeCall(id, categoricalAlteration, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovCondition.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovCondition.java new file mode 100644 index 0000000..880dfe0 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovCondition.java @@ -0,0 +1,173 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.CancerType; +import java.io.Serializable; + +/** + * ClinicalTrialsGovCondition + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ClinicalTrialsGovCondition implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_CANCER_TYPES = "cancerTypes"; + @SerializedName(SERIALIZED_NAME_CANCER_TYPES) + private Set cancerTypes = null; + + public ClinicalTrialsGovCondition() { + } + + public ClinicalTrialsGovCondition id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public ClinicalTrialsGovCondition name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public ClinicalTrialsGovCondition cancerTypes(Set cancerTypes) { + + this.cancerTypes = cancerTypes; + return this; + } + + public ClinicalTrialsGovCondition addCancerTypesItem(CancerType cancerTypesItem) { + if (this.cancerTypes == null) { + this.cancerTypes = new LinkedHashSet(); + } + this.cancerTypes.add(cancerTypesItem); + return this; + } + + /** + * Get cancerTypes + * @return cancerTypes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getCancerTypes() { + return cancerTypes; + } + + + public void setCancerTypes(Set cancerTypes) { + this.cancerTypes = cancerTypes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClinicalTrialsGovCondition clinicalTrialsGovCondition = (ClinicalTrialsGovCondition) o; + return Objects.equals(this.id, clinicalTrialsGovCondition.id) && + Objects.equals(this.name, clinicalTrialsGovCondition.name) && + Objects.equals(this.cancerTypes, clinicalTrialsGovCondition.cancerTypes); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, cancerTypes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClinicalTrialsGovCondition {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" cancerTypes: ").append(toIndentedString(cancerTypes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteria.java new file mode 100644 index 0000000..477913b --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteria.java @@ -0,0 +1,192 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import java.io.Serializable; + +/** + * ClinicalTrialsGovConditionCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ClinicalTrialsGovConditionCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private StringFilter name; + + public static final String SERIALIZED_NAME_CANCER_TYPE_ID = "cancerTypeId"; + @SerializedName(SERIALIZED_NAME_CANCER_TYPE_ID) + private LongFilter cancerTypeId; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public ClinicalTrialsGovConditionCriteria() { + } + + public ClinicalTrialsGovConditionCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public ClinicalTrialsGovConditionCriteria name(StringFilter name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getName() { + return name; + } + + + public void setName(StringFilter name) { + this.name = name; + } + + + public ClinicalTrialsGovConditionCriteria cancerTypeId(LongFilter cancerTypeId) { + + this.cancerTypeId = cancerTypeId; + return this; + } + + /** + * Get cancerTypeId + * @return cancerTypeId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getCancerTypeId() { + return cancerTypeId; + } + + + public void setCancerTypeId(LongFilter cancerTypeId) { + this.cancerTypeId = cancerTypeId; + } + + + public ClinicalTrialsGovConditionCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClinicalTrialsGovConditionCriteria clinicalTrialsGovConditionCriteria = (ClinicalTrialsGovConditionCriteria) o; + return Objects.equals(this.id, clinicalTrialsGovConditionCriteria.id) && + Objects.equals(this.name, clinicalTrialsGovConditionCriteria.name) && + Objects.equals(this.cancerTypeId, clinicalTrialsGovConditionCriteria.cancerTypeId) && + Objects.equals(this.distinct, clinicalTrialsGovConditionCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, cancerTypeId, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClinicalTrialsGovConditionCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" cancerTypeId: ").append(toIndentedString(cancerTypeId)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApi.java new file mode 100644 index 0000000..416148c --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApi.java @@ -0,0 +1,1149 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovCondition; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionCriteria; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ClinicalTrialsGovConditionResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ClinicalTrialsGovConditionResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public ClinicalTrialsGovConditionResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countClinicalTrialsGovConditions + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countClinicalTrialsGovConditionsCall(ClinicalTrialsGovConditionCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/clinical-trials-gov-conditions/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countClinicalTrialsGovConditionsValidateBeforeCall(ClinicalTrialsGovConditionCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countClinicalTrialsGovConditions(Async)"); + } + + + okhttp3.Call localVarCall = countClinicalTrialsGovConditionsCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countClinicalTrialsGovConditions(ClinicalTrialsGovConditionCriteria criteria) throws ApiException { + ApiResponse localVarResp = countClinicalTrialsGovConditionsWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countClinicalTrialsGovConditionsWithHttpInfo(ClinicalTrialsGovConditionCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countClinicalTrialsGovConditionsValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countClinicalTrialsGovConditionsAsync(ClinicalTrialsGovConditionCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countClinicalTrialsGovConditionsValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createClinicalTrialsGovCondition + * @param clinicalTrialsGovCondition (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createClinicalTrialsGovConditionCall(ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = clinicalTrialsGovCondition; + + // create path and map variables + String localVarPath = "/api/clinical-trials-gov-conditions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createClinicalTrialsGovConditionValidateBeforeCall(ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'clinicalTrialsGovCondition' is set + if (clinicalTrialsGovCondition == null) { + throw new ApiException("Missing the required parameter 'clinicalTrialsGovCondition' when calling createClinicalTrialsGovCondition(Async)"); + } + + + okhttp3.Call localVarCall = createClinicalTrialsGovConditionCall(clinicalTrialsGovCondition, _callback); + return localVarCall; + + } + + /** + * + * + * @param clinicalTrialsGovCondition (required) + * @return ClinicalTrialsGovCondition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ClinicalTrialsGovCondition createClinicalTrialsGovCondition(ClinicalTrialsGovCondition clinicalTrialsGovCondition) throws ApiException { + ApiResponse localVarResp = createClinicalTrialsGovConditionWithHttpInfo(clinicalTrialsGovCondition); + return localVarResp.getData(); + } + + /** + * + * + * @param clinicalTrialsGovCondition (required) + * @return ApiResponse<ClinicalTrialsGovCondition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createClinicalTrialsGovConditionWithHttpInfo(ClinicalTrialsGovCondition clinicalTrialsGovCondition) throws ApiException { + okhttp3.Call localVarCall = createClinicalTrialsGovConditionValidateBeforeCall(clinicalTrialsGovCondition, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param clinicalTrialsGovCondition (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createClinicalTrialsGovConditionAsync(ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createClinicalTrialsGovConditionValidateBeforeCall(clinicalTrialsGovCondition, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteClinicalTrialsGovCondition + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteClinicalTrialsGovConditionCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/clinical-trials-gov-conditions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteClinicalTrialsGovConditionValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteClinicalTrialsGovCondition(Async)"); + } + + + okhttp3.Call localVarCall = deleteClinicalTrialsGovConditionCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteClinicalTrialsGovCondition(Long id) throws ApiException { + deleteClinicalTrialsGovConditionWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteClinicalTrialsGovConditionWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteClinicalTrialsGovConditionValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteClinicalTrialsGovConditionAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteClinicalTrialsGovConditionValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllClinicalTrialsGovConditions + * @param criteria (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllClinicalTrialsGovConditionsCall(ClinicalTrialsGovConditionCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/clinical-trials-gov-conditions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllClinicalTrialsGovConditionsValidateBeforeCall(ClinicalTrialsGovConditionCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllClinicalTrialsGovConditions(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllClinicalTrialsGovConditions(Async)"); + } + + + okhttp3.Call localVarCall = getAllClinicalTrialsGovConditionsCall(criteria, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return List<ClinicalTrialsGovCondition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllClinicalTrialsGovConditions(ClinicalTrialsGovConditionCriteria criteria, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllClinicalTrialsGovConditionsWithHttpInfo(criteria, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return ApiResponse<List<ClinicalTrialsGovCondition>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllClinicalTrialsGovConditionsWithHttpInfo(ClinicalTrialsGovConditionCriteria criteria, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllClinicalTrialsGovConditionsValidateBeforeCall(criteria, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllClinicalTrialsGovConditionsAsync(ClinicalTrialsGovConditionCriteria criteria, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllClinicalTrialsGovConditionsValidateBeforeCall(criteria, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getClinicalTrialsGovCondition + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getClinicalTrialsGovConditionCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/clinical-trials-gov-conditions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getClinicalTrialsGovConditionValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getClinicalTrialsGovCondition(Async)"); + } + + + okhttp3.Call localVarCall = getClinicalTrialsGovConditionCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return ClinicalTrialsGovCondition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ClinicalTrialsGovCondition getClinicalTrialsGovCondition(Long id) throws ApiException { + ApiResponse localVarResp = getClinicalTrialsGovConditionWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<ClinicalTrialsGovCondition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getClinicalTrialsGovConditionWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getClinicalTrialsGovConditionValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getClinicalTrialsGovConditionAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getClinicalTrialsGovConditionValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateClinicalTrialsGovCondition + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateClinicalTrialsGovConditionCall(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = clinicalTrialsGovCondition; + + // create path and map variables + String localVarPath = "/api/clinical-trials-gov-conditions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateClinicalTrialsGovConditionValidateBeforeCall(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateClinicalTrialsGovCondition(Async)"); + } + + // verify the required parameter 'clinicalTrialsGovCondition' is set + if (clinicalTrialsGovCondition == null) { + throw new ApiException("Missing the required parameter 'clinicalTrialsGovCondition' when calling partialUpdateClinicalTrialsGovCondition(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateClinicalTrialsGovConditionCall(id, clinicalTrialsGovCondition, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @return ClinicalTrialsGovCondition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ClinicalTrialsGovCondition partialUpdateClinicalTrialsGovCondition(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition) throws ApiException { + ApiResponse localVarResp = partialUpdateClinicalTrialsGovConditionWithHttpInfo(id, clinicalTrialsGovCondition); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @return ApiResponse<ClinicalTrialsGovCondition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateClinicalTrialsGovConditionWithHttpInfo(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition) throws ApiException { + okhttp3.Call localVarCall = partialUpdateClinicalTrialsGovConditionValidateBeforeCall(id, clinicalTrialsGovCondition, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateClinicalTrialsGovConditionAsync(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateClinicalTrialsGovConditionValidateBeforeCall(id, clinicalTrialsGovCondition, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchClinicalTrialsGovConditions + * @param query (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchClinicalTrialsGovConditionsCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/clinical-trials-gov-conditions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchClinicalTrialsGovConditionsValidateBeforeCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchClinicalTrialsGovConditions(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling searchClinicalTrialsGovConditions(Async)"); + } + + + okhttp3.Call localVarCall = searchClinicalTrialsGovConditionsCall(query, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return List<ClinicalTrialsGovCondition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List searchClinicalTrialsGovConditions(String query, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = searchClinicalTrialsGovConditionsWithHttpInfo(query, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return ApiResponse<List<ClinicalTrialsGovCondition>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchClinicalTrialsGovConditionsWithHttpInfo(String query, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = searchClinicalTrialsGovConditionsValidateBeforeCall(query, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchClinicalTrialsGovConditionsAsync(String query, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchClinicalTrialsGovConditionsValidateBeforeCall(query, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateClinicalTrialsGovCondition + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateClinicalTrialsGovConditionCall(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = clinicalTrialsGovCondition; + + // create path and map variables + String localVarPath = "/api/clinical-trials-gov-conditions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateClinicalTrialsGovConditionValidateBeforeCall(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateClinicalTrialsGovCondition(Async)"); + } + + // verify the required parameter 'clinicalTrialsGovCondition' is set + if (clinicalTrialsGovCondition == null) { + throw new ApiException("Missing the required parameter 'clinicalTrialsGovCondition' when calling updateClinicalTrialsGovCondition(Async)"); + } + + + okhttp3.Call localVarCall = updateClinicalTrialsGovConditionCall(id, clinicalTrialsGovCondition, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @return ClinicalTrialsGovCondition + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ClinicalTrialsGovCondition updateClinicalTrialsGovCondition(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition) throws ApiException { + ApiResponse localVarResp = updateClinicalTrialsGovConditionWithHttpInfo(id, clinicalTrialsGovCondition); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @return ApiResponse<ClinicalTrialsGovCondition> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateClinicalTrialsGovConditionWithHttpInfo(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition) throws ApiException { + okhttp3.Call localVarCall = updateClinicalTrialsGovConditionValidateBeforeCall(id, clinicalTrialsGovCondition, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param clinicalTrialsGovCondition (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateClinicalTrialsGovConditionAsync(Long id, ClinicalTrialsGovCondition clinicalTrialsGovCondition, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateClinicalTrialsGovConditionValidateBeforeCall(id, clinicalTrialsGovCondition, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDevice.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDevice.java new file mode 100644 index 0000000..e3d9f80 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDevice.java @@ -0,0 +1,269 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.SpecimenType; +import java.io.Serializable; + +/** + * CompanionDiagnosticDevice + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CompanionDiagnosticDevice implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_MANUFACTURER = "manufacturer"; + @SerializedName(SERIALIZED_NAME_MANUFACTURER) + private String manufacturer; + + public static final String SERIALIZED_NAME_INDICATION_DETAILS = "indicationDetails"; + @SerializedName(SERIALIZED_NAME_INDICATION_DETAILS) + private String indicationDetails; + + public static final String SERIALIZED_NAME_FDA_SUBMISSIONS = "fdaSubmissions"; + @SerializedName(SERIALIZED_NAME_FDA_SUBMISSIONS) + private Set fdaSubmissions = null; + + public static final String SERIALIZED_NAME_SPECIMEN_TYPES = "specimenTypes"; + @SerializedName(SERIALIZED_NAME_SPECIMEN_TYPES) + private Set specimenTypes = null; + + public CompanionDiagnosticDevice() { + } + + public CompanionDiagnosticDevice id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public CompanionDiagnosticDevice name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public CompanionDiagnosticDevice manufacturer(String manufacturer) { + + this.manufacturer = manufacturer; + return this; + } + + /** + * Get manufacturer + * @return manufacturer + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getManufacturer() { + return manufacturer; + } + + + public void setManufacturer(String manufacturer) { + this.manufacturer = manufacturer; + } + + + public CompanionDiagnosticDevice indicationDetails(String indicationDetails) { + + this.indicationDetails = indicationDetails; + return this; + } + + /** + * Get indicationDetails + * @return indicationDetails + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getIndicationDetails() { + return indicationDetails; + } + + + public void setIndicationDetails(String indicationDetails) { + this.indicationDetails = indicationDetails; + } + + + public CompanionDiagnosticDevice fdaSubmissions(Set fdaSubmissions) { + + this.fdaSubmissions = fdaSubmissions; + return this; + } + + public CompanionDiagnosticDevice addFdaSubmissionsItem(FdaSubmission fdaSubmissionsItem) { + if (this.fdaSubmissions == null) { + this.fdaSubmissions = new LinkedHashSet(); + } + this.fdaSubmissions.add(fdaSubmissionsItem); + return this; + } + + /** + * Get fdaSubmissions + * @return fdaSubmissions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getFdaSubmissions() { + return fdaSubmissions; + } + + + public void setFdaSubmissions(Set fdaSubmissions) { + this.fdaSubmissions = fdaSubmissions; + } + + + public CompanionDiagnosticDevice specimenTypes(Set specimenTypes) { + + this.specimenTypes = specimenTypes; + return this; + } + + public CompanionDiagnosticDevice addSpecimenTypesItem(SpecimenType specimenTypesItem) { + if (this.specimenTypes == null) { + this.specimenTypes = new LinkedHashSet(); + } + this.specimenTypes.add(specimenTypesItem); + return this; + } + + /** + * Get specimenTypes + * @return specimenTypes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getSpecimenTypes() { + return specimenTypes; + } + + + public void setSpecimenTypes(Set specimenTypes) { + this.specimenTypes = specimenTypes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CompanionDiagnosticDevice companionDiagnosticDevice = (CompanionDiagnosticDevice) o; + return Objects.equals(this.id, companionDiagnosticDevice.id) && + Objects.equals(this.name, companionDiagnosticDevice.name) && + Objects.equals(this.manufacturer, companionDiagnosticDevice.manufacturer) && + Objects.equals(this.indicationDetails, companionDiagnosticDevice.indicationDetails) && + Objects.equals(this.fdaSubmissions, companionDiagnosticDevice.fdaSubmissions) && + Objects.equals(this.specimenTypes, companionDiagnosticDevice.specimenTypes); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, manufacturer, indicationDetails, fdaSubmissions, specimenTypes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CompanionDiagnosticDevice {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" manufacturer: ").append(toIndentedString(manufacturer)).append("\n"); + sb.append(" indicationDetails: ").append(toIndentedString(indicationDetails)).append("\n"); + sb.append(" fdaSubmissions: ").append(toIndentedString(fdaSubmissions)).append("\n"); + sb.append(" specimenTypes: ").append(toIndentedString(specimenTypes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteria.java new file mode 100644 index 0000000..4bdfca8 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteria.java @@ -0,0 +1,250 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import java.io.Serializable; + +/** + * CompanionDiagnosticDeviceCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CompanionDiagnosticDeviceCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private StringFilter name; + + public static final String SERIALIZED_NAME_MANUFACTURER = "manufacturer"; + @SerializedName(SERIALIZED_NAME_MANUFACTURER) + private StringFilter manufacturer; + + public static final String SERIALIZED_NAME_FDA_SUBMISSION_ID = "fdaSubmissionId"; + @SerializedName(SERIALIZED_NAME_FDA_SUBMISSION_ID) + private LongFilter fdaSubmissionId; + + public static final String SERIALIZED_NAME_SPECIMEN_TYPE_ID = "specimenTypeId"; + @SerializedName(SERIALIZED_NAME_SPECIMEN_TYPE_ID) + private LongFilter specimenTypeId; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public CompanionDiagnosticDeviceCriteria() { + } + + public CompanionDiagnosticDeviceCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public CompanionDiagnosticDeviceCriteria name(StringFilter name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getName() { + return name; + } + + + public void setName(StringFilter name) { + this.name = name; + } + + + public CompanionDiagnosticDeviceCriteria manufacturer(StringFilter manufacturer) { + + this.manufacturer = manufacturer; + return this; + } + + /** + * Get manufacturer + * @return manufacturer + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getManufacturer() { + return manufacturer; + } + + + public void setManufacturer(StringFilter manufacturer) { + this.manufacturer = manufacturer; + } + + + public CompanionDiagnosticDeviceCriteria fdaSubmissionId(LongFilter fdaSubmissionId) { + + this.fdaSubmissionId = fdaSubmissionId; + return this; + } + + /** + * Get fdaSubmissionId + * @return fdaSubmissionId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getFdaSubmissionId() { + return fdaSubmissionId; + } + + + public void setFdaSubmissionId(LongFilter fdaSubmissionId) { + this.fdaSubmissionId = fdaSubmissionId; + } + + + public CompanionDiagnosticDeviceCriteria specimenTypeId(LongFilter specimenTypeId) { + + this.specimenTypeId = specimenTypeId; + return this; + } + + /** + * Get specimenTypeId + * @return specimenTypeId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getSpecimenTypeId() { + return specimenTypeId; + } + + + public void setSpecimenTypeId(LongFilter specimenTypeId) { + this.specimenTypeId = specimenTypeId; + } + + + public CompanionDiagnosticDeviceCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CompanionDiagnosticDeviceCriteria companionDiagnosticDeviceCriteria = (CompanionDiagnosticDeviceCriteria) o; + return Objects.equals(this.id, companionDiagnosticDeviceCriteria.id) && + Objects.equals(this.name, companionDiagnosticDeviceCriteria.name) && + Objects.equals(this.manufacturer, companionDiagnosticDeviceCriteria.manufacturer) && + Objects.equals(this.fdaSubmissionId, companionDiagnosticDeviceCriteria.fdaSubmissionId) && + Objects.equals(this.specimenTypeId, companionDiagnosticDeviceCriteria.specimenTypeId) && + Objects.equals(this.distinct, companionDiagnosticDeviceCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, manufacturer, fdaSubmissionId, specimenTypeId, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CompanionDiagnosticDeviceCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" manufacturer: ").append(toIndentedString(manufacturer)).append("\n"); + sb.append(" fdaSubmissionId: ").append(toIndentedString(fdaSubmissionId)).append("\n"); + sb.append(" specimenTypeId: ").append(toIndentedString(specimenTypeId)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApi.java new file mode 100644 index 0000000..3b832c0 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApi.java @@ -0,0 +1,1122 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceCriteria; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class CompanionDiagnosticDeviceResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public CompanionDiagnosticDeviceResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public CompanionDiagnosticDeviceResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countCompanionDiagnosticDevices + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countCompanionDiagnosticDevicesCall(CompanionDiagnosticDeviceCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/companion-diagnostic-devices/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countCompanionDiagnosticDevicesValidateBeforeCall(CompanionDiagnosticDeviceCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countCompanionDiagnosticDevices(Async)"); + } + + + okhttp3.Call localVarCall = countCompanionDiagnosticDevicesCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countCompanionDiagnosticDevices(CompanionDiagnosticDeviceCriteria criteria) throws ApiException { + ApiResponse localVarResp = countCompanionDiagnosticDevicesWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countCompanionDiagnosticDevicesWithHttpInfo(CompanionDiagnosticDeviceCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countCompanionDiagnosticDevicesValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countCompanionDiagnosticDevicesAsync(CompanionDiagnosticDeviceCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countCompanionDiagnosticDevicesValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createCompanionDiagnosticDevice + * @param companionDiagnosticDevice (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createCompanionDiagnosticDeviceCall(CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = companionDiagnosticDevice; + + // create path and map variables + String localVarPath = "/api/companion-diagnostic-devices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createCompanionDiagnosticDeviceValidateBeforeCall(CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'companionDiagnosticDevice' is set + if (companionDiagnosticDevice == null) { + throw new ApiException("Missing the required parameter 'companionDiagnosticDevice' when calling createCompanionDiagnosticDevice(Async)"); + } + + + okhttp3.Call localVarCall = createCompanionDiagnosticDeviceCall(companionDiagnosticDevice, _callback); + return localVarCall; + + } + + /** + * + * + * @param companionDiagnosticDevice (required) + * @return CompanionDiagnosticDevice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CompanionDiagnosticDevice createCompanionDiagnosticDevice(CompanionDiagnosticDevice companionDiagnosticDevice) throws ApiException { + ApiResponse localVarResp = createCompanionDiagnosticDeviceWithHttpInfo(companionDiagnosticDevice); + return localVarResp.getData(); + } + + /** + * + * + * @param companionDiagnosticDevice (required) + * @return ApiResponse<CompanionDiagnosticDevice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createCompanionDiagnosticDeviceWithHttpInfo(CompanionDiagnosticDevice companionDiagnosticDevice) throws ApiException { + okhttp3.Call localVarCall = createCompanionDiagnosticDeviceValidateBeforeCall(companionDiagnosticDevice, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param companionDiagnosticDevice (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createCompanionDiagnosticDeviceAsync(CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createCompanionDiagnosticDeviceValidateBeforeCall(companionDiagnosticDevice, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteCompanionDiagnosticDevice + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteCompanionDiagnosticDeviceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/companion-diagnostic-devices/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCompanionDiagnosticDeviceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteCompanionDiagnosticDevice(Async)"); + } + + + okhttp3.Call localVarCall = deleteCompanionDiagnosticDeviceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteCompanionDiagnosticDevice(Long id) throws ApiException { + deleteCompanionDiagnosticDeviceWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteCompanionDiagnosticDeviceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteCompanionDiagnosticDeviceValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteCompanionDiagnosticDeviceAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCompanionDiagnosticDeviceValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllCompanionDiagnosticDevices + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllCompanionDiagnosticDevicesCall(CompanionDiagnosticDeviceCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/companion-diagnostic-devices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllCompanionDiagnosticDevicesValidateBeforeCall(CompanionDiagnosticDeviceCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllCompanionDiagnosticDevices(Async)"); + } + + + okhttp3.Call localVarCall = getAllCompanionDiagnosticDevicesCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return List<CompanionDiagnosticDevice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllCompanionDiagnosticDevices(CompanionDiagnosticDeviceCriteria criteria) throws ApiException { + ApiResponse> localVarResp = getAllCompanionDiagnosticDevicesWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<List<CompanionDiagnosticDevice>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllCompanionDiagnosticDevicesWithHttpInfo(CompanionDiagnosticDeviceCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = getAllCompanionDiagnosticDevicesValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllCompanionDiagnosticDevicesAsync(CompanionDiagnosticDeviceCriteria criteria, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllCompanionDiagnosticDevicesValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getCompanionDiagnosticDevice + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCompanionDiagnosticDeviceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/companion-diagnostic-devices/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getCompanionDiagnosticDeviceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getCompanionDiagnosticDevice(Async)"); + } + + + okhttp3.Call localVarCall = getCompanionDiagnosticDeviceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return CompanionDiagnosticDevice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CompanionDiagnosticDevice getCompanionDiagnosticDevice(Long id) throws ApiException { + ApiResponse localVarResp = getCompanionDiagnosticDeviceWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<CompanionDiagnosticDevice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getCompanionDiagnosticDeviceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getCompanionDiagnosticDeviceValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getCompanionDiagnosticDeviceAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getCompanionDiagnosticDeviceValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateCompanionDiagnosticDevice + * @param id (required) + * @param companionDiagnosticDevice (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateCompanionDiagnosticDeviceCall(Long id, CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = companionDiagnosticDevice; + + // create path and map variables + String localVarPath = "/api/companion-diagnostic-devices/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateCompanionDiagnosticDeviceValidateBeforeCall(Long id, CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateCompanionDiagnosticDevice(Async)"); + } + + // verify the required parameter 'companionDiagnosticDevice' is set + if (companionDiagnosticDevice == null) { + throw new ApiException("Missing the required parameter 'companionDiagnosticDevice' when calling partialUpdateCompanionDiagnosticDevice(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateCompanionDiagnosticDeviceCall(id, companionDiagnosticDevice, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param companionDiagnosticDevice (required) + * @return CompanionDiagnosticDevice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CompanionDiagnosticDevice partialUpdateCompanionDiagnosticDevice(Long id, CompanionDiagnosticDevice companionDiagnosticDevice) throws ApiException { + ApiResponse localVarResp = partialUpdateCompanionDiagnosticDeviceWithHttpInfo(id, companionDiagnosticDevice); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param companionDiagnosticDevice (required) + * @return ApiResponse<CompanionDiagnosticDevice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateCompanionDiagnosticDeviceWithHttpInfo(Long id, CompanionDiagnosticDevice companionDiagnosticDevice) throws ApiException { + okhttp3.Call localVarCall = partialUpdateCompanionDiagnosticDeviceValidateBeforeCall(id, companionDiagnosticDevice, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param companionDiagnosticDevice (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateCompanionDiagnosticDeviceAsync(Long id, CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateCompanionDiagnosticDeviceValidateBeforeCall(id, companionDiagnosticDevice, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchCompanionDiagnosticDevices + * @param query (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchCompanionDiagnosticDevicesCall(String query, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/companion-diagnostic-devices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchCompanionDiagnosticDevicesValidateBeforeCall(String query, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchCompanionDiagnosticDevices(Async)"); + } + + + okhttp3.Call localVarCall = searchCompanionDiagnosticDevicesCall(query, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @return List<CompanionDiagnosticDevice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List searchCompanionDiagnosticDevices(String query) throws ApiException { + ApiResponse> localVarResp = searchCompanionDiagnosticDevicesWithHttpInfo(query); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @return ApiResponse<List<CompanionDiagnosticDevice>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchCompanionDiagnosticDevicesWithHttpInfo(String query) throws ApiException { + okhttp3.Call localVarCall = searchCompanionDiagnosticDevicesValidateBeforeCall(query, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchCompanionDiagnosticDevicesAsync(String query, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchCompanionDiagnosticDevicesValidateBeforeCall(query, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateCompanionDiagnosticDevice + * @param id (required) + * @param companionDiagnosticDevice (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateCompanionDiagnosticDeviceCall(Long id, CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = companionDiagnosticDevice; + + // create path and map variables + String localVarPath = "/api/companion-diagnostic-devices/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateCompanionDiagnosticDeviceValidateBeforeCall(Long id, CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateCompanionDiagnosticDevice(Async)"); + } + + // verify the required parameter 'companionDiagnosticDevice' is set + if (companionDiagnosticDevice == null) { + throw new ApiException("Missing the required parameter 'companionDiagnosticDevice' when calling updateCompanionDiagnosticDevice(Async)"); + } + + + okhttp3.Call localVarCall = updateCompanionDiagnosticDeviceCall(id, companionDiagnosticDevice, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param companionDiagnosticDevice (required) + * @return CompanionDiagnosticDevice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public CompanionDiagnosticDevice updateCompanionDiagnosticDevice(Long id, CompanionDiagnosticDevice companionDiagnosticDevice) throws ApiException { + ApiResponse localVarResp = updateCompanionDiagnosticDeviceWithHttpInfo(id, companionDiagnosticDevice); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param companionDiagnosticDevice (required) + * @return ApiResponse<CompanionDiagnosticDevice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateCompanionDiagnosticDeviceWithHttpInfo(Long id, CompanionDiagnosticDevice companionDiagnosticDevice) throws ApiException { + okhttp3.Call localVarCall = updateCompanionDiagnosticDeviceValidateBeforeCall(id, companionDiagnosticDevice, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param companionDiagnosticDevice (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateCompanionDiagnosticDeviceAsync(Long id, CompanionDiagnosticDevice companionDiagnosticDevice, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateCompanionDiagnosticDeviceValidateBeforeCall(id, companionDiagnosticDevice, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Consequence.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Consequence.java new file mode 100644 index 0000000..9710abb --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Consequence.java @@ -0,0 +1,301 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * Consequence + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Consequence implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + MUTATION("MUTATION"), + + COPY_NUMBER_ALTERATION("COPY_NUMBER_ALTERATION"), + + STRUCTURAL_VARIANT("STRUCTURAL_VARIANT"), + + UNKNOWN("UNKNOWN"), + + NA("NA"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_TERM = "term"; + @SerializedName(SERIALIZED_NAME_TERM) + private String term; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_IS_GENERALLY_TRUNCATING = "isGenerallyTruncating"; + @SerializedName(SERIALIZED_NAME_IS_GENERALLY_TRUNCATING) + private Boolean isGenerallyTruncating; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public Consequence() { + } + + public Consequence id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public Consequence type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public Consequence term(String term) { + + this.term = term; + return this; + } + + /** + * Get term + * @return term + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getTerm() { + return term; + } + + + public void setTerm(String term) { + this.term = term; + } + + + public Consequence name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public Consequence isGenerallyTruncating(Boolean isGenerallyTruncating) { + + this.isGenerallyTruncating = isGenerallyTruncating; + return this; + } + + /** + * Get isGenerallyTruncating + * @return isGenerallyTruncating + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Boolean getIsGenerallyTruncating() { + return isGenerallyTruncating; + } + + + public void setIsGenerallyTruncating(Boolean isGenerallyTruncating) { + this.isGenerallyTruncating = isGenerallyTruncating; + } + + + public Consequence description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Consequence consequence = (Consequence) o; + return Objects.equals(this.id, consequence.id) && + Objects.equals(this.type, consequence.type) && + Objects.equals(this.term, consequence.term) && + Objects.equals(this.name, consequence.name) && + Objects.equals(this.isGenerallyTruncating, consequence.isGenerallyTruncating) && + Objects.equals(this.description, consequence.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, term, name, isGenerallyTruncating, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Consequence {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" term: ").append(toIndentedString(term)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" isGenerallyTruncating: ").append(toIndentedString(isGenerallyTruncating)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApi.java new file mode 100644 index 0000000..9528231 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Consequence; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class ConsequenceResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public ConsequenceResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public ConsequenceResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createConsequence + * @param consequence (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createConsequenceCall(Consequence consequence, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = consequence; + + // create path and map variables + String localVarPath = "/api/consequences"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createConsequenceValidateBeforeCall(Consequence consequence, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'consequence' is set + if (consequence == null) { + throw new ApiException("Missing the required parameter 'consequence' when calling createConsequence(Async)"); + } + + + okhttp3.Call localVarCall = createConsequenceCall(consequence, _callback); + return localVarCall; + + } + + /** + * + * + * @param consequence (required) + * @return Consequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Consequence createConsequence(Consequence consequence) throws ApiException { + ApiResponse localVarResp = createConsequenceWithHttpInfo(consequence); + return localVarResp.getData(); + } + + /** + * + * + * @param consequence (required) + * @return ApiResponse<Consequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createConsequenceWithHttpInfo(Consequence consequence) throws ApiException { + okhttp3.Call localVarCall = createConsequenceValidateBeforeCall(consequence, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param consequence (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createConsequenceAsync(Consequence consequence, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createConsequenceValidateBeforeCall(consequence, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteConsequence + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteConsequenceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/consequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteConsequenceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteConsequence(Async)"); + } + + + okhttp3.Call localVarCall = deleteConsequenceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteConsequence(Long id) throws ApiException { + deleteConsequenceWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteConsequenceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteConsequenceValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteConsequenceAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteConsequenceValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllConsequences + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllConsequencesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/consequences"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllConsequencesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllConsequencesCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<Consequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllConsequences() throws ApiException { + ApiResponse> localVarResp = getAllConsequencesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<Consequence>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllConsequencesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllConsequencesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllConsequencesAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllConsequencesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getConsequence + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getConsequenceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/consequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getConsequenceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getConsequence(Async)"); + } + + + okhttp3.Call localVarCall = getConsequenceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return Consequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Consequence getConsequence(Long id) throws ApiException { + ApiResponse localVarResp = getConsequenceWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Consequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getConsequenceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getConsequenceValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getConsequenceAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getConsequenceValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateConsequence + * @param id (required) + * @param consequence (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateConsequenceCall(Long id, Consequence consequence, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = consequence; + + // create path and map variables + String localVarPath = "/api/consequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateConsequenceValidateBeforeCall(Long id, Consequence consequence, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateConsequence(Async)"); + } + + // verify the required parameter 'consequence' is set + if (consequence == null) { + throw new ApiException("Missing the required parameter 'consequence' when calling partialUpdateConsequence(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateConsequenceCall(id, consequence, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param consequence (required) + * @return Consequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Consequence partialUpdateConsequence(Long id, Consequence consequence) throws ApiException { + ApiResponse localVarResp = partialUpdateConsequenceWithHttpInfo(id, consequence); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param consequence (required) + * @return ApiResponse<Consequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateConsequenceWithHttpInfo(Long id, Consequence consequence) throws ApiException { + okhttp3.Call localVarCall = partialUpdateConsequenceValidateBeforeCall(id, consequence, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param consequence (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateConsequenceAsync(Long id, Consequence consequence, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateConsequenceValidateBeforeCall(id, consequence, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateConsequence + * @param id (required) + * @param consequence (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateConsequenceCall(Long id, Consequence consequence, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = consequence; + + // create path and map variables + String localVarPath = "/api/consequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateConsequenceValidateBeforeCall(Long id, Consequence consequence, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateConsequence(Async)"); + } + + // verify the required parameter 'consequence' is set + if (consequence == null) { + throw new ApiException("Missing the required parameter 'consequence' when calling updateConsequence(Async)"); + } + + + okhttp3.Call localVarCall = updateConsequenceCall(id, consequence, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param consequence (required) + * @return Consequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Consequence updateConsequence(Long id, Consequence consequence) throws ApiException { + ApiResponse localVarResp = updateConsequenceWithHttpInfo(id, consequence); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param consequence (required) + * @return ApiResponse<Consequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateConsequenceWithHttpInfo(Long id, Consequence consequence) throws ApiException { + okhttp3.Call localVarCall = updateConsequenceValidateBeforeCall(id, consequence, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param consequence (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateConsequenceAsync(Long id, Consequence consequence, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateConsequenceValidateBeforeCall(id, consequence, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Drug.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Drug.java similarity index 57% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Drug.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Drug.java index e567416..1ebd4c6 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Drug.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Drug.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -26,7 +26,10 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; -import org.oncokb.oncokb_transcript.client.DrugSynonym; +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.DrugBrand; +import org.oncokb.oncokb_curation.client.DrugSynonym; +import org.oncokb.oncokb_curation.client.FdaDrug; import java.io.Serializable; /** @@ -36,10 +39,6 @@ public class Drug implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_CODE = "code"; - @SerializedName(SERIALIZED_NAME_CODE) - private String code; - public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private Long id; @@ -48,40 +47,33 @@ public class Drug implements Serializable { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + public static final String SERIALIZED_NAME_SEMANTIC_TYPE = "semanticType"; @SerializedName(SERIALIZED_NAME_SEMANTIC_TYPE) private String semanticType; + public static final String SERIALIZED_NAME_FDA_DRUG = "fdaDrug"; + @SerializedName(SERIALIZED_NAME_FDA_DRUG) + private FdaDrug fdaDrug; + public static final String SERIALIZED_NAME_SYNONYMS = "synonyms"; @SerializedName(SERIALIZED_NAME_SYNONYMS) private Set synonyms = null; - public Drug() { - } - - public Drug code(String code) { - - this.code = code; - return this; - } - - /** - * Get code - * @return code - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getCode() { - return code; - } + public static final String SERIALIZED_NAME_BRANDS = "brands"; + @SerializedName(SERIALIZED_NAME_BRANDS) + private Set brands = null; + public static final String SERIALIZED_NAME_BIOMARKER_ASSOCIATIONS = "biomarkerAssociations"; + @SerializedName(SERIALIZED_NAME_BIOMARKER_ASSOCIATIONS) + private Set biomarkerAssociations = null; - public void setCode(String code) { - this.code = code; + public Drug() { } - public Drug id(Long id) { this.id = id; @@ -128,6 +120,29 @@ public void setName(String name) { } + public Drug code(String code) { + + this.code = code; + return this; + } + + /** + * Get code + * @return code + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + public Drug semanticType(String semanticType) { this.semanticType = semanticType; @@ -151,6 +166,29 @@ public void setSemanticType(String semanticType) { } + public Drug fdaDrug(FdaDrug fdaDrug) { + + this.fdaDrug = fdaDrug; + return this; + } + + /** + * Get fdaDrug + * @return fdaDrug + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public FdaDrug getFdaDrug() { + return fdaDrug; + } + + + public void setFdaDrug(FdaDrug fdaDrug) { + this.fdaDrug = fdaDrug; + } + + public Drug synonyms(Set synonyms) { this.synonyms = synonyms; @@ -182,6 +220,68 @@ public void setSynonyms(Set synonyms) { } + public Drug brands(Set brands) { + + this.brands = brands; + return this; + } + + public Drug addBrandsItem(DrugBrand brandsItem) { + if (this.brands == null) { + this.brands = new LinkedHashSet(); + } + this.brands.add(brandsItem); + return this; + } + + /** + * Get brands + * @return brands + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getBrands() { + return brands; + } + + + public void setBrands(Set brands) { + this.brands = brands; + } + + + public Drug biomarkerAssociations(Set biomarkerAssociations) { + + this.biomarkerAssociations = biomarkerAssociations; + return this; + } + + public Drug addBiomarkerAssociationsItem(BiomarkerAssociation biomarkerAssociationsItem) { + if (this.biomarkerAssociations == null) { + this.biomarkerAssociations = new LinkedHashSet(); + } + this.biomarkerAssociations.add(biomarkerAssociationsItem); + return this; + } + + /** + * Get biomarkerAssociations + * @return biomarkerAssociations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getBiomarkerAssociations() { + return biomarkerAssociations; + } + + + public void setBiomarkerAssociations(Set biomarkerAssociations) { + this.biomarkerAssociations = biomarkerAssociations; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -191,27 +291,33 @@ public boolean equals(Object o) { return false; } Drug drug = (Drug) o; - return Objects.equals(this.code, drug.code) && - Objects.equals(this.id, drug.id) && + return Objects.equals(this.id, drug.id) && Objects.equals(this.name, drug.name) && + Objects.equals(this.code, drug.code) && Objects.equals(this.semanticType, drug.semanticType) && - Objects.equals(this.synonyms, drug.synonyms); + Objects.equals(this.fdaDrug, drug.fdaDrug) && + Objects.equals(this.synonyms, drug.synonyms) && + Objects.equals(this.brands, drug.brands) && + Objects.equals(this.biomarkerAssociations, drug.biomarkerAssociations); } @Override public int hashCode() { - return Objects.hash(code, id, name, semanticType, synonyms); + return Objects.hash(id, name, code, semanticType, fdaDrug, synonyms, brands, biomarkerAssociations); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Drug {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" semanticType: ").append(toIndentedString(semanticType)).append("\n"); + sb.append(" fdaDrug: ").append(toIndentedString(fdaDrug)).append("\n"); sb.append(" synonyms: ").append(toIndentedString(synonyms)).append("\n"); + sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); + sb.append(" biomarkerAssociations: ").append(toIndentedString(biomarkerAssociations)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugBrand.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugBrand.java new file mode 100644 index 0000000..2fdba2b --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugBrand.java @@ -0,0 +1,238 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.Drug; +import java.io.Serializable; + +/** + * DrugBrand + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DrugBrand implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Gets or Sets region + */ + @JsonAdapter(RegionEnum.Adapter.class) + public enum RegionEnum { + US("US"), + + EU("EU"); + + private String value; + + RegionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RegionEnum fromValue(String value) { + for (RegionEnum b : RegionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RegionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RegionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RegionEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_REGION = "region"; + @SerializedName(SERIALIZED_NAME_REGION) + private RegionEnum region; + + public static final String SERIALIZED_NAME_DRUG = "drug"; + @SerializedName(SERIALIZED_NAME_DRUG) + private Drug drug; + + public DrugBrand() { + } + + public DrugBrand id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public DrugBrand name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public DrugBrand region(RegionEnum region) { + + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public RegionEnum getRegion() { + return region; + } + + + public void setRegion(RegionEnum region) { + this.region = region; + } + + + public DrugBrand drug(Drug drug) { + + this.drug = drug; + return this; + } + + /** + * Get drug + * @return drug + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Drug getDrug() { + return drug; + } + + + public void setDrug(Drug drug) { + this.drug = drug; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DrugBrand drugBrand = (DrugBrand) o; + return Objects.equals(this.id, drugBrand.id) && + Objects.equals(this.name, drugBrand.name) && + Objects.equals(this.region, drugBrand.region) && + Objects.equals(this.drug, drugBrand.drug); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, region, drug); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DrugBrand {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" drug: ").append(toIndentedString(drug)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApi.java new file mode 100644 index 0000000..0e07a56 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.DrugBrand; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DrugBrandResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DrugBrandResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public DrugBrandResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createDrugBrand + * @param drugBrand (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createDrugBrandCall(DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drugBrand; + + // create path and map variables + String localVarPath = "/api/drug-brands"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDrugBrandValidateBeforeCall(DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'drugBrand' is set + if (drugBrand == null) { + throw new ApiException("Missing the required parameter 'drugBrand' when calling createDrugBrand(Async)"); + } + + + okhttp3.Call localVarCall = createDrugBrandCall(drugBrand, _callback); + return localVarCall; + + } + + /** + * + * + * @param drugBrand (required) + * @return DrugBrand + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugBrand createDrugBrand(DrugBrand drugBrand) throws ApiException { + ApiResponse localVarResp = createDrugBrandWithHttpInfo(drugBrand); + return localVarResp.getData(); + } + + /** + * + * + * @param drugBrand (required) + * @return ApiResponse<DrugBrand> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createDrugBrandWithHttpInfo(DrugBrand drugBrand) throws ApiException { + okhttp3.Call localVarCall = createDrugBrandValidateBeforeCall(drugBrand, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param drugBrand (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createDrugBrandAsync(DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDrugBrandValidateBeforeCall(drugBrand, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDrugBrand + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteDrugBrandCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drug-brands/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDrugBrandValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteDrugBrand(Async)"); + } + + + okhttp3.Call localVarCall = deleteDrugBrandCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteDrugBrand(Long id) throws ApiException { + deleteDrugBrandWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteDrugBrandWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteDrugBrandValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteDrugBrandAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDrugBrandValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllDrugBrands + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllDrugBrandsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drug-brands"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllDrugBrandsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllDrugBrandsCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<DrugBrand> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllDrugBrands() throws ApiException { + ApiResponse> localVarResp = getAllDrugBrandsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<DrugBrand>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllDrugBrandsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllDrugBrandsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllDrugBrandsAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllDrugBrandsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDrugBrand + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getDrugBrandCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drug-brands/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDrugBrandValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getDrugBrand(Async)"); + } + + + okhttp3.Call localVarCall = getDrugBrandCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return DrugBrand + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugBrand getDrugBrand(Long id) throws ApiException { + ApiResponse localVarResp = getDrugBrandWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<DrugBrand> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getDrugBrandWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getDrugBrandValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getDrugBrandAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDrugBrandValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateDrugBrand + * @param id (required) + * @param drugBrand (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateDrugBrandCall(Long id, DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drugBrand; + + // create path and map variables + String localVarPath = "/api/drug-brands/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateDrugBrandValidateBeforeCall(Long id, DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateDrugBrand(Async)"); + } + + // verify the required parameter 'drugBrand' is set + if (drugBrand == null) { + throw new ApiException("Missing the required parameter 'drugBrand' when calling partialUpdateDrugBrand(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateDrugBrandCall(id, drugBrand, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param drugBrand (required) + * @return DrugBrand + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugBrand partialUpdateDrugBrand(Long id, DrugBrand drugBrand) throws ApiException { + ApiResponse localVarResp = partialUpdateDrugBrandWithHttpInfo(id, drugBrand); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param drugBrand (required) + * @return ApiResponse<DrugBrand> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateDrugBrandWithHttpInfo(Long id, DrugBrand drugBrand) throws ApiException { + okhttp3.Call localVarCall = partialUpdateDrugBrandValidateBeforeCall(id, drugBrand, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param drugBrand (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateDrugBrandAsync(Long id, DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateDrugBrandValidateBeforeCall(id, drugBrand, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateDrugBrand + * @param id (required) + * @param drugBrand (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateDrugBrandCall(Long id, DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drugBrand; + + // create path and map variables + String localVarPath = "/api/drug-brands/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDrugBrandValidateBeforeCall(Long id, DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateDrugBrand(Async)"); + } + + // verify the required parameter 'drugBrand' is set + if (drugBrand == null) { + throw new ApiException("Missing the required parameter 'drugBrand' when calling updateDrugBrand(Async)"); + } + + + okhttp3.Call localVarCall = updateDrugBrandCall(id, drugBrand, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param drugBrand (required) + * @return DrugBrand + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugBrand updateDrugBrand(Long id, DrugBrand drugBrand) throws ApiException { + ApiResponse localVarResp = updateDrugBrandWithHttpInfo(id, drugBrand); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param drugBrand (required) + * @return ApiResponse<DrugBrand> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateDrugBrandWithHttpInfo(Long id, DrugBrand drugBrand) throws ApiException { + okhttp3.Call localVarCall = updateDrugBrandValidateBeforeCall(id, drugBrand, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param drugBrand (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateDrugBrandAsync(Long id, DrugBrand drugBrand, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDrugBrandValidateBeforeCall(id, drugBrand, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/DrugControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugControllerApi.java similarity index 67% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/DrugControllerApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugControllerApi.java index 2cac4cf..25a0681 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/DrugControllerApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugControllerApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Drug; +import org.oncokb.oncokb_curation.client.Drug; import java.lang.reflect.Type; import java.util.ArrayList; @@ -73,8 +73,8 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for findDrugByCodeUsingGET - * @param code code (required) + * Build call for findDrugByCode + * @param code (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -82,12 +82,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findDrugByCodeUsingGETCall(String code, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findDrugByCodeCall(String code, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -130,69 +127,63 @@ public okhttp3.Call findDrugByCodeUsingGETCall(String code, final ApiCallback _c localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call findDrugByCodeUsingGETValidateBeforeCall(String code, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findDrugByCodeValidateBeforeCall(String code, final ApiCallback _callback) throws ApiException { // verify the required parameter 'code' is set if (code == null) { - throw new ApiException("Missing the required parameter 'code' when calling findDrugByCodeUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'code' when calling findDrugByCode(Async)"); } - okhttp3.Call localVarCall = findDrugByCodeUsingGETCall(code, _callback); + okhttp3.Call localVarCall = findDrugByCodeCall(code, _callback); return localVarCall; } /** - * findDrugByCode * - * @param code code (required) + * + * @param code (required) * @return Drug * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public Drug findDrugByCodeUsingGET(String code) throws ApiException { - ApiResponse localVarResp = findDrugByCodeUsingGETWithHttpInfo(code); + public Drug findDrugByCode(String code) throws ApiException { + ApiResponse localVarResp = findDrugByCodeWithHttpInfo(code); return localVarResp.getData(); } /** - * findDrugByCode * - * @param code code (required) + * + * @param code (required) * @return ApiResponse<Drug> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse findDrugByCodeUsingGETWithHttpInfo(String code) throws ApiException { - okhttp3.Call localVarCall = findDrugByCodeUsingGETValidateBeforeCall(code, null); + public ApiResponse findDrugByCodeWithHttpInfo(String code) throws ApiException { + okhttp3.Call localVarCall = findDrugByCodeValidateBeforeCall(code, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * findDrugByCode (asynchronously) + * (asynchronously) * - * @param code code (required) + * @param code (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -200,21 +191,18 @@ public ApiResponse findDrugByCodeUsingGETWithHttpInfo(String code) throws - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findDrugByCodeUsingGETAsync(String code, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findDrugByCodeAsync(String code, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = findDrugByCodeUsingGETValidateBeforeCall(code, _callback); + okhttp3.Call localVarCall = findDrugByCodeValidateBeforeCall(code, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for findDrugsUsingGET - * @param query query (required) + * Build call for findDrugs + * @param query (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -222,12 +210,9 @@ public okhttp3.Call findDrugByCodeUsingGETAsync(String code, final ApiCallback Status Code Description Response Headers 200 OK - - 401 Unauthorized - - 403 Forbidden - - 404 Not Found - */ - public okhttp3.Call findDrugsUsingGETCall(String query, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findDrugsCall(String query, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -273,69 +258,63 @@ public okhttp3.Call findDrugsUsingGETCall(String query, final ApiCallback _callb localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call findDrugsUsingGETValidateBeforeCall(String query, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findDrugsValidateBeforeCall(String query, final ApiCallback _callback) throws ApiException { // verify the required parameter 'query' is set if (query == null) { - throw new ApiException("Missing the required parameter 'query' when calling findDrugsUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'query' when calling findDrugs(Async)"); } - okhttp3.Call localVarCall = findDrugsUsingGETCall(query, _callback); + okhttp3.Call localVarCall = findDrugsCall(query, _callback); return localVarCall; } /** - * findDrugs * - * @param query query (required) + * + * @param query (required) * @return List<Drug> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public List findDrugsUsingGET(String query) throws ApiException { - ApiResponse> localVarResp = findDrugsUsingGETWithHttpInfo(query); + public List findDrugs(String query) throws ApiException { + ApiResponse> localVarResp = findDrugsWithHttpInfo(query); return localVarResp.getData(); } /** - * findDrugs * - * @param query query (required) + * + * @param query (required) * @return ApiResponse<List<Drug>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse> findDrugsUsingGETWithHttpInfo(String query) throws ApiException { - okhttp3.Call localVarCall = findDrugsUsingGETValidateBeforeCall(query, null); + public ApiResponse> findDrugsWithHttpInfo(String query) throws ApiException { + okhttp3.Call localVarCall = findDrugsValidateBeforeCall(query, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * findDrugs (asynchronously) + * (asynchronously) * - * @param query query (required) + * @param query (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -343,14 +322,11 @@ public ApiResponse> findDrugsUsingGETWithHttpInfo(String query) throw - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findDrugsUsingGETAsync(String query, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findDrugsAsync(String query, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = findDrugsUsingGETValidateBeforeCall(query, _callback); + okhttp3.Call localVarCall = findDrugsValidateBeforeCall(query, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugCriteria.java new file mode 100644 index 0000000..d3b6e90 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugCriteria.java @@ -0,0 +1,308 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import java.io.Serializable; + +/** + * DrugCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DrugCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private StringFilter name; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private StringFilter code; + + public static final String SERIALIZED_NAME_SYNONYMS_ID = "synonymsId"; + @SerializedName(SERIALIZED_NAME_SYNONYMS_ID) + private LongFilter synonymsId; + + public static final String SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID = "biomarkerAssociationId"; + @SerializedName(SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID) + private LongFilter biomarkerAssociationId; + + public static final String SERIALIZED_NAME_BRANDS_ID = "brandsId"; + @SerializedName(SERIALIZED_NAME_BRANDS_ID) + private LongFilter brandsId; + + public static final String SERIALIZED_NAME_BRANDS_NAME = "brandsName"; + @SerializedName(SERIALIZED_NAME_BRANDS_NAME) + private StringFilter brandsName; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public DrugCriteria() { + } + + public DrugCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public DrugCriteria name(StringFilter name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getName() { + return name; + } + + + public void setName(StringFilter name) { + this.name = name; + } + + + public DrugCriteria code(StringFilter code) { + + this.code = code; + return this; + } + + /** + * Get code + * @return code + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getCode() { + return code; + } + + + public void setCode(StringFilter code) { + this.code = code; + } + + + public DrugCriteria synonymsId(LongFilter synonymsId) { + + this.synonymsId = synonymsId; + return this; + } + + /** + * Get synonymsId + * @return synonymsId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getSynonymsId() { + return synonymsId; + } + + + public void setSynonymsId(LongFilter synonymsId) { + this.synonymsId = synonymsId; + } + + + public DrugCriteria biomarkerAssociationId(LongFilter biomarkerAssociationId) { + + this.biomarkerAssociationId = biomarkerAssociationId; + return this; + } + + /** + * Get biomarkerAssociationId + * @return biomarkerAssociationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getBiomarkerAssociationId() { + return biomarkerAssociationId; + } + + + public void setBiomarkerAssociationId(LongFilter biomarkerAssociationId) { + this.biomarkerAssociationId = biomarkerAssociationId; + } + + + public DrugCriteria brandsId(LongFilter brandsId) { + + this.brandsId = brandsId; + return this; + } + + /** + * Get brandsId + * @return brandsId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getBrandsId() { + return brandsId; + } + + + public void setBrandsId(LongFilter brandsId) { + this.brandsId = brandsId; + } + + + public DrugCriteria brandsName(StringFilter brandsName) { + + this.brandsName = brandsName; + return this; + } + + /** + * Get brandsName + * @return brandsName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getBrandsName() { + return brandsName; + } + + + public void setBrandsName(StringFilter brandsName) { + this.brandsName = brandsName; + } + + + public DrugCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DrugCriteria drugCriteria = (DrugCriteria) o; + return Objects.equals(this.id, drugCriteria.id) && + Objects.equals(this.name, drugCriteria.name) && + Objects.equals(this.code, drugCriteria.code) && + Objects.equals(this.synonymsId, drugCriteria.synonymsId) && + Objects.equals(this.biomarkerAssociationId, drugCriteria.biomarkerAssociationId) && + Objects.equals(this.brandsId, drugCriteria.brandsId) && + Objects.equals(this.brandsName, drugCriteria.brandsName) && + Objects.equals(this.distinct, drugCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, code, synonymsId, biomarkerAssociationId, brandsId, brandsName, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DrugCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" synonymsId: ").append(toIndentedString(synonymsId)).append("\n"); + sb.append(" biomarkerAssociationId: ").append(toIndentedString(biomarkerAssociationId)).append("\n"); + sb.append(" brandsId: ").append(toIndentedString(brandsId)).append("\n"); + sb.append(" brandsName: ").append(toIndentedString(brandsName)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugResourceApi.java new file mode 100644 index 0000000..685fcf5 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugResourceApi.java @@ -0,0 +1,1149 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Drug; +import org.oncokb.oncokb_curation.client.DrugCriteria; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DrugResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DrugResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public DrugResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countDrugs + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countDrugsCall(DrugCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drugs/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countDrugsValidateBeforeCall(DrugCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countDrugs(Async)"); + } + + + okhttp3.Call localVarCall = countDrugsCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countDrugs(DrugCriteria criteria) throws ApiException { + ApiResponse localVarResp = countDrugsWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countDrugsWithHttpInfo(DrugCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countDrugsValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countDrugsAsync(DrugCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countDrugsValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createDrug + * @param drug (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createDrugCall(Drug drug, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drug; + + // create path and map variables + String localVarPath = "/api/drugs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDrugValidateBeforeCall(Drug drug, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'drug' is set + if (drug == null) { + throw new ApiException("Missing the required parameter 'drug' when calling createDrug(Async)"); + } + + + okhttp3.Call localVarCall = createDrugCall(drug, _callback); + return localVarCall; + + } + + /** + * + * + * @param drug (required) + * @return Drug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Drug createDrug(Drug drug) throws ApiException { + ApiResponse localVarResp = createDrugWithHttpInfo(drug); + return localVarResp.getData(); + } + + /** + * + * + * @param drug (required) + * @return ApiResponse<Drug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createDrugWithHttpInfo(Drug drug) throws ApiException { + okhttp3.Call localVarCall = createDrugValidateBeforeCall(drug, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param drug (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createDrugAsync(Drug drug, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDrugValidateBeforeCall(drug, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDrug + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteDrugCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDrugValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteDrug(Async)"); + } + + + okhttp3.Call localVarCall = deleteDrugCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteDrug(Long id) throws ApiException { + deleteDrugWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteDrugWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteDrugValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteDrugAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDrugValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllDrugs + * @param criteria (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllDrugsCall(DrugCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drugs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllDrugsValidateBeforeCall(DrugCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllDrugs(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllDrugs(Async)"); + } + + + okhttp3.Call localVarCall = getAllDrugsCall(criteria, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return List<Drug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllDrugs(DrugCriteria criteria, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllDrugsWithHttpInfo(criteria, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return ApiResponse<List<Drug>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllDrugsWithHttpInfo(DrugCriteria criteria, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllDrugsValidateBeforeCall(criteria, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllDrugsAsync(DrugCriteria criteria, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllDrugsValidateBeforeCall(criteria, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDrug + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getDrugCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDrugValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getDrug(Async)"); + } + + + okhttp3.Call localVarCall = getDrugCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return Drug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Drug getDrug(Long id) throws ApiException { + ApiResponse localVarResp = getDrugWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Drug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getDrugWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getDrugValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getDrugAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDrugValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateDrug + * @param id (required) + * @param drug (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateDrugCall(Long id, Drug drug, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drug; + + // create path and map variables + String localVarPath = "/api/drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateDrugValidateBeforeCall(Long id, Drug drug, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateDrug(Async)"); + } + + // verify the required parameter 'drug' is set + if (drug == null) { + throw new ApiException("Missing the required parameter 'drug' when calling partialUpdateDrug(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateDrugCall(id, drug, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param drug (required) + * @return Drug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Drug partialUpdateDrug(Long id, Drug drug) throws ApiException { + ApiResponse localVarResp = partialUpdateDrugWithHttpInfo(id, drug); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param drug (required) + * @return ApiResponse<Drug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateDrugWithHttpInfo(Long id, Drug drug) throws ApiException { + okhttp3.Call localVarCall = partialUpdateDrugValidateBeforeCall(id, drug, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param drug (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateDrugAsync(Long id, Drug drug, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateDrugValidateBeforeCall(id, drug, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchDrugs + * @param query (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchDrugsCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/drugs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchDrugsValidateBeforeCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchDrugs(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling searchDrugs(Async)"); + } + + + okhttp3.Call localVarCall = searchDrugsCall(query, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return List<Drug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List searchDrugs(String query, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = searchDrugsWithHttpInfo(query, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return ApiResponse<List<Drug>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchDrugsWithHttpInfo(String query, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = searchDrugsValidateBeforeCall(query, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchDrugsAsync(String query, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchDrugsValidateBeforeCall(query, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateDrug + * @param id (required) + * @param drug (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateDrugCall(Long id, Drug drug, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drug; + + // create path and map variables + String localVarPath = "/api/drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDrugValidateBeforeCall(Long id, Drug drug, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateDrug(Async)"); + } + + // verify the required parameter 'drug' is set + if (drug == null) { + throw new ApiException("Missing the required parameter 'drug' when calling updateDrug(Async)"); + } + + + okhttp3.Call localVarCall = updateDrugCall(id, drug, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param drug (required) + * @return Drug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Drug updateDrug(Long id, Drug drug) throws ApiException { + ApiResponse localVarResp = updateDrugWithHttpInfo(id, drug); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param drug (required) + * @return ApiResponse<Drug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateDrugWithHttpInfo(Long id, Drug drug) throws ApiException { + okhttp3.Call localVarCall = updateDrugValidateBeforeCall(id, drug, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param drug (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateDrugAsync(Long id, Drug drug, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDrugValidateBeforeCall(id, drug, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/DrugSynonym.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugSynonym.java similarity index 86% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/DrugSynonym.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugSynonym.java index 61739ce..d1554e4 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/DrugSynonym.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugSynonym.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Drug; +import org.oncokb.oncokb_curation.client.Drug; import java.io.Serializable; /** @@ -33,10 +33,6 @@ public class DrugSynonym implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_DRUG = "drug"; - @SerializedName(SERIALIZED_NAME_DRUG) - private Drug drug; - public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private Long id; @@ -45,32 +41,13 @@ public class DrugSynonym implements Serializable { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public DrugSynonym() { - } - - public DrugSynonym drug(Drug drug) { - - this.drug = drug; - return this; - } - - /** - * Get drug - * @return drug - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Drug getDrug() { - return drug; - } - + public static final String SERIALIZED_NAME_DRUG = "drug"; + @SerializedName(SERIALIZED_NAME_DRUG) + private Drug drug; - public void setDrug(Drug drug) { - this.drug = drug; + public DrugSynonym() { } - public DrugSynonym id(Long id) { this.id = id; @@ -117,6 +94,29 @@ public void setName(String name) { } + public DrugSynonym drug(Drug drug) { + + this.drug = drug; + return this; + } + + /** + * Get drug + * @return drug + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Drug getDrug() { + return drug; + } + + + public void setDrug(Drug drug) { + this.drug = drug; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -126,23 +126,23 @@ public boolean equals(Object o) { return false; } DrugSynonym drugSynonym = (DrugSynonym) o; - return Objects.equals(this.drug, drugSynonym.drug) && - Objects.equals(this.id, drugSynonym.id) && - Objects.equals(this.name, drugSynonym.name); + return Objects.equals(this.id, drugSynonym.id) && + Objects.equals(this.name, drugSynonym.name) && + Objects.equals(this.drug, drugSynonym.drug); } @Override public int hashCode() { - return Objects.hash(drug, id, name); + return Objects.hash(id, name, drug); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DrugSynonym {\n"); - sb.append(" drug: ").append(toIndentedString(drug)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" drug: ").append(toIndentedString(drug)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApi.java new file mode 100644 index 0000000..b4bddea --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.DrugSynonym; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class DrugSynonymResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DrugSynonymResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public DrugSynonymResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createDrugSynonym + * @param drugSynonym (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createDrugSynonymCall(DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drugSynonym; + + // create path and map variables + String localVarPath = "/api/drug-synonyms"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDrugSynonymValidateBeforeCall(DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'drugSynonym' is set + if (drugSynonym == null) { + throw new ApiException("Missing the required parameter 'drugSynonym' when calling createDrugSynonym(Async)"); + } + + + okhttp3.Call localVarCall = createDrugSynonymCall(drugSynonym, _callback); + return localVarCall; + + } + + /** + * + * + * @param drugSynonym (required) + * @return DrugSynonym + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugSynonym createDrugSynonym(DrugSynonym drugSynonym) throws ApiException { + ApiResponse localVarResp = createDrugSynonymWithHttpInfo(drugSynonym); + return localVarResp.getData(); + } + + /** + * + * + * @param drugSynonym (required) + * @return ApiResponse<DrugSynonym> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createDrugSynonymWithHttpInfo(DrugSynonym drugSynonym) throws ApiException { + okhttp3.Call localVarCall = createDrugSynonymValidateBeforeCall(drugSynonym, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param drugSynonym (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createDrugSynonymAsync(DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDrugSynonymValidateBeforeCall(drugSynonym, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteDrugSynonym + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteDrugSynonymCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drug-synonyms/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteDrugSynonymValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteDrugSynonym(Async)"); + } + + + okhttp3.Call localVarCall = deleteDrugSynonymCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteDrugSynonym(Long id) throws ApiException { + deleteDrugSynonymWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteDrugSynonymWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteDrugSynonymValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteDrugSynonymAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteDrugSynonymValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllDrugSynonyms + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllDrugSynonymsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drug-synonyms"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllDrugSynonymsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllDrugSynonymsCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<DrugSynonym> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllDrugSynonyms() throws ApiException { + ApiResponse> localVarResp = getAllDrugSynonymsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<DrugSynonym>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllDrugSynonymsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllDrugSynonymsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllDrugSynonymsAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllDrugSynonymsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getDrugSynonym + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getDrugSynonymCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/drug-synonyms/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getDrugSynonymValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getDrugSynonym(Async)"); + } + + + okhttp3.Call localVarCall = getDrugSynonymCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return DrugSynonym + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugSynonym getDrugSynonym(Long id) throws ApiException { + ApiResponse localVarResp = getDrugSynonymWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<DrugSynonym> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getDrugSynonymWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getDrugSynonymValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getDrugSynonymAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getDrugSynonymValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateDrugSynonym + * @param id (required) + * @param drugSynonym (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateDrugSynonymCall(Long id, DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drugSynonym; + + // create path and map variables + String localVarPath = "/api/drug-synonyms/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateDrugSynonymValidateBeforeCall(Long id, DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateDrugSynonym(Async)"); + } + + // verify the required parameter 'drugSynonym' is set + if (drugSynonym == null) { + throw new ApiException("Missing the required parameter 'drugSynonym' when calling partialUpdateDrugSynonym(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateDrugSynonymCall(id, drugSynonym, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param drugSynonym (required) + * @return DrugSynonym + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugSynonym partialUpdateDrugSynonym(Long id, DrugSynonym drugSynonym) throws ApiException { + ApiResponse localVarResp = partialUpdateDrugSynonymWithHttpInfo(id, drugSynonym); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param drugSynonym (required) + * @return ApiResponse<DrugSynonym> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateDrugSynonymWithHttpInfo(Long id, DrugSynonym drugSynonym) throws ApiException { + okhttp3.Call localVarCall = partialUpdateDrugSynonymValidateBeforeCall(id, drugSynonym, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param drugSynonym (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateDrugSynonymAsync(Long id, DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateDrugSynonymValidateBeforeCall(id, drugSynonym, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateDrugSynonym + * @param id (required) + * @param drugSynonym (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateDrugSynonymCall(Long id, DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = drugSynonym; + + // create path and map variables + String localVarPath = "/api/drug-synonyms/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateDrugSynonymValidateBeforeCall(Long id, DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateDrugSynonym(Async)"); + } + + // verify the required parameter 'drugSynonym' is set + if (drugSynonym == null) { + throw new ApiException("Missing the required parameter 'drugSynonym' when calling updateDrugSynonym(Async)"); + } + + + okhttp3.Call localVarCall = updateDrugSynonymCall(id, drugSynonym, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param drugSynonym (required) + * @return DrugSynonym + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public DrugSynonym updateDrugSynonym(Long id, DrugSynonym drugSynonym) throws ApiException { + ApiResponse localVarResp = updateDrugSynonymWithHttpInfo(id, drugSynonym); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param drugSynonym (required) + * @return ApiResponse<DrugSynonym> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateDrugSynonymWithHttpInfo(Long id, DrugSynonym drugSynonym) throws ApiException { + okhttp3.Call localVarCall = updateDrugSynonymValidateBeforeCall(id, drugSynonym, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param drugSynonym (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateDrugSynonymAsync(Long id, DrugSynonym drugSynonym, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateDrugSynonymValidateBeforeCall(id, drugSynonym, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGene.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGene.java similarity index 78% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGene.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGene.java index ce25035..08d5166 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGene.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGene.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -26,8 +26,8 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; -import org.oncokb.oncokb_transcript.client.Gene; -import org.oncokb.oncokb_transcript.client.Transcript; +import org.oncokb.oncokb_curation.client.Gene; +import org.oncokb.oncokb_curation.client.Transcript; import java.io.Serializable; /** @@ -37,38 +37,81 @@ public class EnsemblGene implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_CANONICAL = "canonical"; - @SerializedName(SERIALIZED_NAME_CANONICAL) - private Boolean canonical; + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; - public static final String SERIALIZED_NAME_CHROMOSOME = "chromosome"; - @SerializedName(SERIALIZED_NAME_CHROMOSOME) - private String chromosome; + /** + * Gets or Sets referenceGenome + */ + @JsonAdapter(ReferenceGenomeEnum.Adapter.class) + public enum ReferenceGenomeEnum { + GRCH37("GRCh37"), + + GRCH38("GRCh38"); - public static final String SERIALIZED_NAME_END = "end"; - @SerializedName(SERIALIZED_NAME_END) - private Integer end; + private String value; - public static final String SERIALIZED_NAME_ENSEMBL_GENE_ID = "ensemblGeneId"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE_ID) - private String ensemblGeneId; + ReferenceGenomeEnum(String value) { + this.value = value; + } - public static final String SERIALIZED_NAME_GENE = "gene"; - @SerializedName(SERIALIZED_NAME_GENE) - private Gene gene; + public String getValue() { + return value; + } - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private Long id; + @Override + public String toString() { + return String.valueOf(value); + } + + public static ReferenceGenomeEnum fromValue(String value) { + for (ReferenceGenomeEnum b : ReferenceGenomeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ReferenceGenomeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ReferenceGenomeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ReferenceGenomeEnum.fromValue(value); + } + } + } public static final String SERIALIZED_NAME_REFERENCE_GENOME = "referenceGenome"; @SerializedName(SERIALIZED_NAME_REFERENCE_GENOME) - private String referenceGenome; + private ReferenceGenomeEnum referenceGenome; + + public static final String SERIALIZED_NAME_ENSEMBL_GENE_ID = "ensemblGeneId"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE_ID) + private String ensemblGeneId; + + public static final String SERIALIZED_NAME_CANONICAL = "canonical"; + @SerializedName(SERIALIZED_NAME_CANONICAL) + private Boolean canonical; + + public static final String SERIALIZED_NAME_CHROMOSOME = "chromosome"; + @SerializedName(SERIALIZED_NAME_CHROMOSOME) + private String chromosome; public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) private Integer start; + public static final String SERIALIZED_NAME_END = "end"; + @SerializedName(SERIALIZED_NAME_END) + private Integer end; + public static final String SERIALIZED_NAME_STRAND = "strand"; @SerializedName(SERIALIZED_NAME_STRAND) private Integer strand; @@ -77,75 +120,56 @@ public class EnsemblGene implements Serializable { @SerializedName(SERIALIZED_NAME_TRANSCRIPTS) private Set transcripts = null; - public EnsemblGene() { - } - - public EnsemblGene canonical(Boolean canonical) { - - this.canonical = canonical; - return this; - } - - /** - * Get canonical - * @return canonical - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - - public Boolean getCanonical() { - return canonical; - } - + public static final String SERIALIZED_NAME_GENE = "gene"; + @SerializedName(SERIALIZED_NAME_GENE) + private Gene gene; - public void setCanonical(Boolean canonical) { - this.canonical = canonical; + public EnsemblGene() { } - - public EnsemblGene chromosome(String chromosome) { + public EnsemblGene id(Long id) { - this.chromosome = chromosome; + this.id = id; return this; } /** - * Get chromosome - * @return chromosome + * Get id + * @return id **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getChromosome() { - return chromosome; + public Long getId() { + return id; } - public void setChromosome(String chromosome) { - this.chromosome = chromosome; + public void setId(Long id) { + this.id = id; } - public EnsemblGene end(Integer end) { + public EnsemblGene referenceGenome(ReferenceGenomeEnum referenceGenome) { - this.end = end; + this.referenceGenome = referenceGenome; return this; } /** - * Get end - * @return end + * Get referenceGenome + * @return referenceGenome **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public Integer getEnd() { - return end; + public ReferenceGenomeEnum getReferenceGenome() { + return referenceGenome; } - public void setEnd(Integer end) { - this.end = end; + public void setReferenceGenome(ReferenceGenomeEnum referenceGenome) { + this.referenceGenome = referenceGenome; } @@ -172,95 +196,95 @@ public void setEnsemblGeneId(String ensemblGeneId) { } - public EnsemblGene gene(Gene gene) { + public EnsemblGene canonical(Boolean canonical) { - this.gene = gene; + this.canonical = canonical; return this; } /** - * Get gene - * @return gene + * Get canonical + * @return canonical **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") - public Gene getGene() { - return gene; + public Boolean getCanonical() { + return canonical; } - public void setGene(Gene gene) { - this.gene = gene; + public void setCanonical(Boolean canonical) { + this.canonical = canonical; } - public EnsemblGene id(Long id) { + public EnsemblGene chromosome(String chromosome) { - this.id = id; + this.chromosome = chromosome; return this; } /** - * Get id - * @return id + * Get chromosome + * @return chromosome **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") - public Long getId() { - return id; + public String getChromosome() { + return chromosome; } - public void setId(Long id) { - this.id = id; + public void setChromosome(String chromosome) { + this.chromosome = chromosome; } - public EnsemblGene referenceGenome(String referenceGenome) { + public EnsemblGene start(Integer start) { - this.referenceGenome = referenceGenome; + this.start = start; return this; } /** - * Get referenceGenome - * @return referenceGenome + * Get start + * @return start **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public String getReferenceGenome() { - return referenceGenome; + public Integer getStart() { + return start; } - public void setReferenceGenome(String referenceGenome) { - this.referenceGenome = referenceGenome; + public void setStart(Integer start) { + this.start = start; } - public EnsemblGene start(Integer start) { + public EnsemblGene end(Integer end) { - this.start = start; + this.end = end; return this; } /** - * Get start - * @return start + * Get end + * @return end **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public Integer getStart() { - return start; + public Integer getEnd() { + return end; } - public void setStart(Integer start) { - this.start = start; + public void setEnd(Integer end) { + this.end = end; } @@ -318,6 +342,29 @@ public void setTranscripts(Set transcripts) { } + public EnsemblGene gene(Gene gene) { + + this.gene = gene; + return this; + } + + /** + * Get gene + * @return gene + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Gene getGene() { + return gene; + } + + + public void setGene(Gene gene) { + this.gene = gene; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -327,37 +374,37 @@ public boolean equals(Object o) { return false; } EnsemblGene ensemblGene = (EnsemblGene) o; - return Objects.equals(this.canonical, ensemblGene.canonical) && - Objects.equals(this.chromosome, ensemblGene.chromosome) && - Objects.equals(this.end, ensemblGene.end) && - Objects.equals(this.ensemblGeneId, ensemblGene.ensemblGeneId) && - Objects.equals(this.gene, ensemblGene.gene) && - Objects.equals(this.id, ensemblGene.id) && + return Objects.equals(this.id, ensemblGene.id) && Objects.equals(this.referenceGenome, ensemblGene.referenceGenome) && + Objects.equals(this.ensemblGeneId, ensemblGene.ensemblGeneId) && + Objects.equals(this.canonical, ensemblGene.canonical) && + Objects.equals(this.chromosome, ensemblGene.chromosome) && Objects.equals(this.start, ensemblGene.start) && + Objects.equals(this.end, ensemblGene.end) && Objects.equals(this.strand, ensemblGene.strand) && - Objects.equals(this.transcripts, ensemblGene.transcripts); + Objects.equals(this.transcripts, ensemblGene.transcripts) && + Objects.equals(this.gene, ensemblGene.gene); } @Override public int hashCode() { - return Objects.hash(canonical, chromosome, end, ensemblGeneId, gene, id, referenceGenome, start, strand, transcripts); + return Objects.hash(id, referenceGenome, ensemblGeneId, canonical, chromosome, start, end, strand, transcripts, gene); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EnsemblGene {\n"); - sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); - sb.append(" chromosome: ").append(toIndentedString(chromosome)).append("\n"); - sb.append(" end: ").append(toIndentedString(end)).append("\n"); - sb.append(" ensemblGeneId: ").append(toIndentedString(ensemblGeneId)).append("\n"); - sb.append(" gene: ").append(toIndentedString(gene)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" referenceGenome: ").append(toIndentedString(referenceGenome)).append("\n"); + sb.append(" ensemblGeneId: ").append(toIndentedString(ensemblGeneId)).append("\n"); + sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); + sb.append(" chromosome: ").append(toIndentedString(chromosome)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" strand: ").append(toIndentedString(strand)).append("\n"); sb.append(" transcripts: ").append(toIndentedString(transcripts)).append("\n"); + sb.append(" gene: ").append(toIndentedString(gene)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApi.java similarity index 62% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApi.java index 5c7adb9..c616084 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,24 +11,24 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.AddEnsemblGeneBody; -import org.oncokb.oncokb_transcript.client.EnsemblGene; +import org.oncokb.oncokb_curation.client.AddEnsemblGeneBody; +import org.oncokb.oncokb_curation.client.EnsemblGene; import java.lang.reflect.Type; import java.util.ArrayList; @@ -74,8 +74,8 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for addEnsemblGeneUsingPOST - * @param addEnsemblGeneBody (optional) + * Build call for addEnsemblGene + * @param addEnsemblGeneBody (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -83,13 +83,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call addEnsemblGeneUsingPOSTCall(AddEnsemblGeneBody addEnsemblGeneBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addEnsemblGeneCall(AddEnsemblGeneBody addEnsemblGeneBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -131,66 +127,63 @@ public okhttp3.Call addEnsemblGeneUsingPOSTCall(AddEnsemblGeneBody addEnsemblGen localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addEnsemblGeneUsingPOSTValidateBeforeCall(AddEnsemblGeneBody addEnsemblGeneBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addEnsemblGeneValidateBeforeCall(AddEnsemblGeneBody addEnsemblGeneBody, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'addEnsemblGeneBody' is set + if (addEnsemblGeneBody == null) { + throw new ApiException("Missing the required parameter 'addEnsemblGeneBody' when calling addEnsemblGene(Async)"); + } - okhttp3.Call localVarCall = addEnsemblGeneUsingPOSTCall(addEnsemblGeneBody, _callback); + okhttp3.Call localVarCall = addEnsemblGeneCall(addEnsemblGeneBody, _callback); return localVarCall; } /** - * addEnsemblGene * - * @param addEnsemblGeneBody (optional) + * + * @param addEnsemblGeneBody (required) * @return EnsemblGene * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public EnsemblGene addEnsemblGeneUsingPOST(AddEnsemblGeneBody addEnsemblGeneBody) throws ApiException { - ApiResponse localVarResp = addEnsemblGeneUsingPOSTWithHttpInfo(addEnsemblGeneBody); + public EnsemblGene addEnsemblGene(AddEnsemblGeneBody addEnsemblGeneBody) throws ApiException { + ApiResponse localVarResp = addEnsemblGeneWithHttpInfo(addEnsemblGeneBody); return localVarResp.getData(); } /** - * addEnsemblGene * - * @param addEnsemblGeneBody (optional) + * + * @param addEnsemblGeneBody (required) * @return ApiResponse<EnsemblGene> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse addEnsemblGeneUsingPOSTWithHttpInfo(AddEnsemblGeneBody addEnsemblGeneBody) throws ApiException { - okhttp3.Call localVarCall = addEnsemblGeneUsingPOSTValidateBeforeCall(addEnsemblGeneBody, null); + public ApiResponse addEnsemblGeneWithHttpInfo(AddEnsemblGeneBody addEnsemblGeneBody) throws ApiException { + okhttp3.Call localVarCall = addEnsemblGeneValidateBeforeCall(addEnsemblGeneBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * addEnsemblGene (asynchronously) + * (asynchronously) * - * @param addEnsemblGeneBody (optional) + * @param addEnsemblGeneBody (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -198,15 +191,11 @@ public ApiResponse addEnsemblGeneUsingPOSTWithHttpInfo(AddEnsemblGe - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call addEnsemblGeneUsingPOSTAsync(AddEnsemblGeneBody addEnsemblGeneBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addEnsemblGeneAsync(AddEnsemblGeneBody addEnsemblGeneBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addEnsemblGeneUsingPOSTValidateBeforeCall(addEnsemblGeneBody, _callback); + okhttp3.Call localVarCall = addEnsemblGeneValidateBeforeCall(addEnsemblGeneBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApi.java new file mode 100644 index 0000000..a36179a --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApi.java @@ -0,0 +1,860 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.EnsemblGene; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class EnsemblGeneResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public EnsemblGeneResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public EnsemblGeneResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createEnsemblGene + * @param ensemblGene (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createEnsemblGeneCall(EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = ensemblGene; + + // create path and map variables + String localVarPath = "/api/ensembl-genes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createEnsemblGeneValidateBeforeCall(EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'ensemblGene' is set + if (ensemblGene == null) { + throw new ApiException("Missing the required parameter 'ensemblGene' when calling createEnsemblGene(Async)"); + } + + + okhttp3.Call localVarCall = createEnsemblGeneCall(ensemblGene, _callback); + return localVarCall; + + } + + /** + * + * + * @param ensemblGene (required) + * @return EnsemblGene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public EnsemblGene createEnsemblGene(EnsemblGene ensemblGene) throws ApiException { + ApiResponse localVarResp = createEnsemblGeneWithHttpInfo(ensemblGene); + return localVarResp.getData(); + } + + /** + * + * + * @param ensemblGene (required) + * @return ApiResponse<EnsemblGene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createEnsemblGeneWithHttpInfo(EnsemblGene ensemblGene) throws ApiException { + okhttp3.Call localVarCall = createEnsemblGeneValidateBeforeCall(ensemblGene, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param ensemblGene (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createEnsemblGeneAsync(EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createEnsemblGeneValidateBeforeCall(ensemblGene, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteEnsemblGene + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteEnsemblGeneCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/ensembl-genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteEnsemblGeneValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteEnsemblGene(Async)"); + } + + + okhttp3.Call localVarCall = deleteEnsemblGeneCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteEnsemblGene(Long id) throws ApiException { + deleteEnsemblGeneWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteEnsemblGeneWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteEnsemblGeneValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteEnsemblGeneAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteEnsemblGeneValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllEnsemblGenes + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllEnsemblGenesCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/ensembl-genes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllEnsemblGenesValidateBeforeCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllEnsemblGenes(Async)"); + } + + + okhttp3.Call localVarCall = getAllEnsemblGenesCall(pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param pageable (required) + * @return List<EnsemblGene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllEnsemblGenes(Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllEnsemblGenesWithHttpInfo(pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param pageable (required) + * @return ApiResponse<List<EnsemblGene>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllEnsemblGenesWithHttpInfo(Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllEnsemblGenesValidateBeforeCall(pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllEnsemblGenesAsync(Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllEnsemblGenesValidateBeforeCall(pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getEnsemblGene + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getEnsemblGeneCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/ensembl-genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getEnsemblGeneValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getEnsemblGene(Async)"); + } + + + okhttp3.Call localVarCall = getEnsemblGeneCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return EnsemblGene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public EnsemblGene getEnsemblGene(Long id) throws ApiException { + ApiResponse localVarResp = getEnsemblGeneWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<EnsemblGene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getEnsemblGeneWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getEnsemblGeneValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getEnsemblGeneAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getEnsemblGeneValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateEnsemblGene + * @param id (required) + * @param ensemblGene (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateEnsemblGeneCall(Long id, EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = ensemblGene; + + // create path and map variables + String localVarPath = "/api/ensembl-genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateEnsemblGeneValidateBeforeCall(Long id, EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateEnsemblGene(Async)"); + } + + // verify the required parameter 'ensemblGene' is set + if (ensemblGene == null) { + throw new ApiException("Missing the required parameter 'ensemblGene' when calling partialUpdateEnsemblGene(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateEnsemblGeneCall(id, ensemblGene, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param ensemblGene (required) + * @return EnsemblGene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public EnsemblGene partialUpdateEnsemblGene(Long id, EnsemblGene ensemblGene) throws ApiException { + ApiResponse localVarResp = partialUpdateEnsemblGeneWithHttpInfo(id, ensemblGene); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param ensemblGene (required) + * @return ApiResponse<EnsemblGene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateEnsemblGeneWithHttpInfo(Long id, EnsemblGene ensemblGene) throws ApiException { + okhttp3.Call localVarCall = partialUpdateEnsemblGeneValidateBeforeCall(id, ensemblGene, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param ensemblGene (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateEnsemblGeneAsync(Long id, EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateEnsemblGeneValidateBeforeCall(id, ensemblGene, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateEnsemblGene + * @param id (required) + * @param ensemblGene (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateEnsemblGeneCall(Long id, EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = ensemblGene; + + // create path and map variables + String localVarPath = "/api/ensembl-genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateEnsemblGeneValidateBeforeCall(Long id, EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateEnsemblGene(Async)"); + } + + // verify the required parameter 'ensemblGene' is set + if (ensemblGene == null) { + throw new ApiException("Missing the required parameter 'ensemblGene' when calling updateEnsemblGene(Async)"); + } + + + okhttp3.Call localVarCall = updateEnsemblGeneCall(id, ensemblGene, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param ensemblGene (required) + * @return EnsemblGene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public EnsemblGene updateEnsemblGene(Long id, EnsemblGene ensemblGene) throws ApiException { + ApiResponse localVarResp = updateEnsemblGeneWithHttpInfo(id, ensemblGene); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param ensemblGene (required) + * @return ApiResponse<EnsemblGene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateEnsemblGeneWithHttpInfo(Long id, EnsemblGene ensemblGene) throws ApiException { + okhttp3.Call localVarCall = updateEnsemblGeneValidateBeforeCall(id, ensemblGene, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param ensemblGene (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateEnsemblGeneAsync(Long id, EnsemblGene ensemblGene, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateEnsemblGeneValidateBeforeCall(id, ensemblGene, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblTranscript.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblTranscript.java similarity index 85% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblTranscript.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblTranscript.java index ba8a667..18bfa5f 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/EnsemblTranscript.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/EnsemblTranscript.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -25,9 +25,9 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.oncokb.oncokb_transcript.client.Exon; -import org.oncokb.oncokb_transcript.client.PfamDomainRange; -import org.oncokb.oncokb_transcript.client.UntranslatedRegion; +import org.oncokb.oncokb_curation.client.Exon; +import org.oncokb.oncokb_curation.client.PfamDomainRange; +import org.oncokb.oncokb_curation.client.UntranslatedRegion; import java.io.Serializable; /** @@ -37,26 +37,14 @@ public class EnsemblTranscript implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_CCDS_ID = "ccdsId"; - @SerializedName(SERIALIZED_NAME_CCDS_ID) - private String ccdsId; - - public static final String SERIALIZED_NAME_EXONS = "exons"; - @SerializedName(SERIALIZED_NAME_EXONS) - private List exons = null; + public static final String SERIALIZED_NAME_TRANSCRIPT_ID = "transcriptId"; + @SerializedName(SERIALIZED_NAME_TRANSCRIPT_ID) + private String transcriptId; public static final String SERIALIZED_NAME_GENE_ID = "geneId"; @SerializedName(SERIALIZED_NAME_GENE_ID) private String geneId; - public static final String SERIALIZED_NAME_HUGO_SYMBOLS = "hugoSymbols"; - @SerializedName(SERIALIZED_NAME_HUGO_SYMBOLS) - private List hugoSymbols = null; - - public static final String SERIALIZED_NAME_PFAM_DOMAINS = "pfamDomains"; - @SerializedName(SERIALIZED_NAME_PFAM_DOMAINS) - private List pfamDomains = null; - public static final String SERIALIZED_NAME_PROTEIN_ID = "proteinId"; @SerializedName(SERIALIZED_NAME_PROTEIN_ID) private String proteinId; @@ -65,13 +53,25 @@ public class EnsemblTranscript implements Serializable { @SerializedName(SERIALIZED_NAME_PROTEIN_LENGTH) private Integer proteinLength; + public static final String SERIALIZED_NAME_PFAM_DOMAINS = "pfamDomains"; + @SerializedName(SERIALIZED_NAME_PFAM_DOMAINS) + private List pfamDomains = null; + + public static final String SERIALIZED_NAME_HUGO_SYMBOLS = "hugoSymbols"; + @SerializedName(SERIALIZED_NAME_HUGO_SYMBOLS) + private List hugoSymbols = null; + public static final String SERIALIZED_NAME_REFSEQ_MRNA_ID = "refseqMrnaId"; @SerializedName(SERIALIZED_NAME_REFSEQ_MRNA_ID) private String refseqMrnaId; - public static final String SERIALIZED_NAME_TRANSCRIPT_ID = "transcriptId"; - @SerializedName(SERIALIZED_NAME_TRANSCRIPT_ID) - private String transcriptId; + public static final String SERIALIZED_NAME_CCDS_ID = "ccdsId"; + @SerializedName(SERIALIZED_NAME_CCDS_ID) + private String ccdsId; + + public static final String SERIALIZED_NAME_EXONS = "exons"; + @SerializedName(SERIALIZED_NAME_EXONS) + private List exons = null; public static final String SERIALIZED_NAME_UTRS = "utrs"; @SerializedName(SERIALIZED_NAME_UTRS) @@ -80,111 +80,95 @@ public class EnsemblTranscript implements Serializable { public EnsemblTranscript() { } - public EnsemblTranscript ccdsId(String ccdsId) { + public EnsemblTranscript transcriptId(String transcriptId) { - this.ccdsId = ccdsId; + this.transcriptId = transcriptId; return this; } /** - * Consensus CDS (CCDS) ID - * @return ccdsId + * Get transcriptId + * @return transcriptId **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Consensus CDS (CCDS) ID") + @ApiModelProperty(value = "") - public String getCcdsId() { - return ccdsId; + public String getTranscriptId() { + return transcriptId; } - public void setCcdsId(String ccdsId) { - this.ccdsId = ccdsId; + public void setTranscriptId(String transcriptId) { + this.transcriptId = transcriptId; } - public EnsemblTranscript exons(List exons) { + public EnsemblTranscript geneId(String geneId) { - this.exons = exons; - return this; - } - - public EnsemblTranscript addExonsItem(Exon exonsItem) { - if (this.exons == null) { - this.exons = new ArrayList(); - } - this.exons.add(exonsItem); + this.geneId = geneId; return this; } /** - * Exon information - * @return exons + * Get geneId + * @return geneId **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Exon information") + @ApiModelProperty(value = "") - public List getExons() { - return exons; + public String getGeneId() { + return geneId; } - public void setExons(List exons) { - this.exons = exons; + public void setGeneId(String geneId) { + this.geneId = geneId; } - public EnsemblTranscript geneId(String geneId) { + public EnsemblTranscript proteinId(String proteinId) { - this.geneId = geneId; + this.proteinId = proteinId; return this; } /** - * Ensembl gene id - * @return geneId + * Get proteinId + * @return proteinId **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Ensembl gene id") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getGeneId() { - return geneId; + public String getProteinId() { + return proteinId; } - public void setGeneId(String geneId) { - this.geneId = geneId; + public void setProteinId(String proteinId) { + this.proteinId = proteinId; } - public EnsemblTranscript hugoSymbols(List hugoSymbols) { + public EnsemblTranscript proteinLength(Integer proteinLength) { - this.hugoSymbols = hugoSymbols; - return this; - } - - public EnsemblTranscript addHugoSymbolsItem(String hugoSymbolsItem) { - if (this.hugoSymbols == null) { - this.hugoSymbols = new ArrayList(); - } - this.hugoSymbols.add(hugoSymbolsItem); + this.proteinLength = proteinLength; return this; } /** - * Hugo symbols - * @return hugoSymbols + * Get proteinLength + * @return proteinLength **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Hugo symbols") + @ApiModelProperty(value = "") - public List getHugoSymbols() { - return hugoSymbols; + public Integer getProteinLength() { + return proteinLength; } - public void setHugoSymbols(List hugoSymbols) { - this.hugoSymbols = hugoSymbols; + public void setProteinLength(Integer proteinLength) { + this.proteinLength = proteinLength; } @@ -203,11 +187,11 @@ public EnsemblTranscript addPfamDomainsItem(PfamDomainRange pfamDomainsItem) { } /** - * Pfam domains + * Get pfamDomains * @return pfamDomains **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Pfam domains") + @ApiModelProperty(value = "") public List getPfamDomains() { return pfamDomains; @@ -219,95 +203,111 @@ public void setPfamDomains(List pfamDomains) { } - public EnsemblTranscript proteinId(String proteinId) { + public EnsemblTranscript hugoSymbols(List hugoSymbols) { - this.proteinId = proteinId; + this.hugoSymbols = hugoSymbols; + return this; + } + + public EnsemblTranscript addHugoSymbolsItem(String hugoSymbolsItem) { + if (this.hugoSymbols == null) { + this.hugoSymbols = new ArrayList(); + } + this.hugoSymbols.add(hugoSymbolsItem); return this; } /** - * Ensembl protein id - * @return proteinId + * Get hugoSymbols + * @return hugoSymbols **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Ensembl protein id") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getProteinId() { - return proteinId; + public List getHugoSymbols() { + return hugoSymbols; } - public void setProteinId(String proteinId) { - this.proteinId = proteinId; + public void setHugoSymbols(List hugoSymbols) { + this.hugoSymbols = hugoSymbols; } - public EnsemblTranscript proteinLength(Integer proteinLength) { + public EnsemblTranscript refseqMrnaId(String refseqMrnaId) { - this.proteinLength = proteinLength; + this.refseqMrnaId = refseqMrnaId; return this; } /** - * Length of protein - * @return proteinLength + * Get refseqMrnaId + * @return refseqMrnaId **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Length of protein") + @ApiModelProperty(value = "") - public Integer getProteinLength() { - return proteinLength; + public String getRefseqMrnaId() { + return refseqMrnaId; } - public void setProteinLength(Integer proteinLength) { - this.proteinLength = proteinLength; + public void setRefseqMrnaId(String refseqMrnaId) { + this.refseqMrnaId = refseqMrnaId; } - public EnsemblTranscript refseqMrnaId(String refseqMrnaId) { + public EnsemblTranscript ccdsId(String ccdsId) { - this.refseqMrnaId = refseqMrnaId; + this.ccdsId = ccdsId; return this; } /** - * RefSeq mRNA ID - * @return refseqMrnaId + * Get ccdsId + * @return ccdsId **/ @javax.annotation.Nullable - @ApiModelProperty(value = "RefSeq mRNA ID") + @ApiModelProperty(value = "") - public String getRefseqMrnaId() { - return refseqMrnaId; + public String getCcdsId() { + return ccdsId; } - public void setRefseqMrnaId(String refseqMrnaId) { - this.refseqMrnaId = refseqMrnaId; + public void setCcdsId(String ccdsId) { + this.ccdsId = ccdsId; } - public EnsemblTranscript transcriptId(String transcriptId) { + public EnsemblTranscript exons(List exons) { - this.transcriptId = transcriptId; + this.exons = exons; + return this; + } + + public EnsemblTranscript addExonsItem(Exon exonsItem) { + if (this.exons == null) { + this.exons = new ArrayList(); + } + this.exons.add(exonsItem); return this; } /** - * Ensembl transcript id - * @return transcriptId + * Get exons + * @return exons **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Ensembl transcript id") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getTranscriptId() { - return transcriptId; + public List getExons() { + return exons; } - public void setTranscriptId(String transcriptId) { - this.transcriptId = transcriptId; + public void setExons(List exons) { + this.exons = exons; } @@ -326,11 +326,11 @@ public EnsemblTranscript addUtrsItem(UntranslatedRegion utrsItem) { } /** - * UTR information + * Get utrs * @return utrs **/ @javax.annotation.Nullable - @ApiModelProperty(value = "UTR information") + @ApiModelProperty(value = "") public List getUtrs() { return utrs; @@ -351,36 +351,36 @@ public boolean equals(Object o) { return false; } EnsemblTranscript ensemblTranscript = (EnsemblTranscript) o; - return Objects.equals(this.ccdsId, ensemblTranscript.ccdsId) && - Objects.equals(this.exons, ensemblTranscript.exons) && + return Objects.equals(this.transcriptId, ensemblTranscript.transcriptId) && Objects.equals(this.geneId, ensemblTranscript.geneId) && - Objects.equals(this.hugoSymbols, ensemblTranscript.hugoSymbols) && - Objects.equals(this.pfamDomains, ensemblTranscript.pfamDomains) && Objects.equals(this.proteinId, ensemblTranscript.proteinId) && Objects.equals(this.proteinLength, ensemblTranscript.proteinLength) && + Objects.equals(this.pfamDomains, ensemblTranscript.pfamDomains) && + Objects.equals(this.hugoSymbols, ensemblTranscript.hugoSymbols) && Objects.equals(this.refseqMrnaId, ensemblTranscript.refseqMrnaId) && - Objects.equals(this.transcriptId, ensemblTranscript.transcriptId) && + Objects.equals(this.ccdsId, ensemblTranscript.ccdsId) && + Objects.equals(this.exons, ensemblTranscript.exons) && Objects.equals(this.utrs, ensemblTranscript.utrs); } @Override public int hashCode() { - return Objects.hash(ccdsId, exons, geneId, hugoSymbols, pfamDomains, proteinId, proteinLength, refseqMrnaId, transcriptId, utrs); + return Objects.hash(transcriptId, geneId, proteinId, proteinLength, pfamDomains, hugoSymbols, refseqMrnaId, ccdsId, exons, utrs); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EnsemblTranscript {\n"); - sb.append(" ccdsId: ").append(toIndentedString(ccdsId)).append("\n"); - sb.append(" exons: ").append(toIndentedString(exons)).append("\n"); + sb.append(" transcriptId: ").append(toIndentedString(transcriptId)).append("\n"); sb.append(" geneId: ").append(toIndentedString(geneId)).append("\n"); - sb.append(" hugoSymbols: ").append(toIndentedString(hugoSymbols)).append("\n"); - sb.append(" pfamDomains: ").append(toIndentedString(pfamDomains)).append("\n"); sb.append(" proteinId: ").append(toIndentedString(proteinId)).append("\n"); sb.append(" proteinLength: ").append(toIndentedString(proteinLength)).append("\n"); + sb.append(" pfamDomains: ").append(toIndentedString(pfamDomains)).append("\n"); + sb.append(" hugoSymbols: ").append(toIndentedString(hugoSymbols)).append("\n"); sb.append(" refseqMrnaId: ").append(toIndentedString(refseqMrnaId)).append("\n"); - sb.append(" transcriptId: ").append(toIndentedString(transcriptId)).append("\n"); + sb.append(" ccdsId: ").append(toIndentedString(ccdsId)).append("\n"); + sb.append(" exons: ").append(toIndentedString(exons)).append("\n"); sb.append(" utrs: ").append(toIndentedString(utrs)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Exon.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Exon.java similarity index 80% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Exon.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Exon.java index 74d5b49..a124810 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Exon.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Exon.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -32,10 +32,6 @@ public class Exon implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_EXON_END = "exonEnd"; - @SerializedName(SERIALIZED_NAME_EXON_END) - private Integer exonEnd; - public static final String SERIALIZED_NAME_EXON_ID = "exonId"; @SerializedName(SERIALIZED_NAME_EXON_ID) private String exonId; @@ -44,6 +40,10 @@ public class Exon implements Serializable { @SerializedName(SERIALIZED_NAME_EXON_START) private Integer exonStart; + public static final String SERIALIZED_NAME_EXON_END = "exonEnd"; + @SerializedName(SERIALIZED_NAME_EXON_END) + private Integer exonEnd; + public static final String SERIALIZED_NAME_RANK = "rank"; @SerializedName(SERIALIZED_NAME_RANK) private Integer rank; @@ -59,29 +59,6 @@ public class Exon implements Serializable { public Exon() { } - public Exon exonEnd(Integer exonEnd) { - - this.exonEnd = exonEnd; - return this; - } - - /** - * End position of exon - * @return exonEnd - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "End position of exon") - - public Integer getExonEnd() { - return exonEnd; - } - - - public void setExonEnd(Integer exonEnd) { - this.exonEnd = exonEnd; - } - - public Exon exonId(String exonId) { this.exonId = exonId; @@ -89,11 +66,11 @@ public Exon exonId(String exonId) { } /** - * Exon id + * Get exonId * @return exonId **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Exon id") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public String getExonId() { return exonId; @@ -112,11 +89,11 @@ public Exon exonStart(Integer exonStart) { } /** - * Start position of exon + * Get exonStart * @return exonStart **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Start position of exon") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Integer getExonStart() { return exonStart; @@ -128,6 +105,29 @@ public void setExonStart(Integer exonStart) { } + public Exon exonEnd(Integer exonEnd) { + + this.exonEnd = exonEnd; + return this; + } + + /** + * Get exonEnd + * @return exonEnd + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getExonEnd() { + return exonEnd; + } + + + public void setExonEnd(Integer exonEnd) { + this.exonEnd = exonEnd; + } + + public Exon rank(Integer rank) { this.rank = rank; @@ -135,11 +135,11 @@ public Exon rank(Integer rank) { } /** - * Number of exon in transcript + * Get rank * @return rank **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Number of exon in transcript") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Integer getRank() { return rank; @@ -158,11 +158,11 @@ public Exon strand(Integer strand) { } /** - * Strand exon is on, -1 for - and 1 for + + * Get strand * @return strand **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Strand exon is on, -1 for - and 1 for +") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Integer getStrand() { return strand; @@ -181,11 +181,11 @@ public Exon version(Integer version) { } /** - * Exon version + * Get version * @return version **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Exon version") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Integer getVersion() { return version; @@ -206,9 +206,9 @@ public boolean equals(Object o) { return false; } Exon exon = (Exon) o; - return Objects.equals(this.exonEnd, exon.exonEnd) && - Objects.equals(this.exonId, exon.exonId) && + return Objects.equals(this.exonId, exon.exonId) && Objects.equals(this.exonStart, exon.exonStart) && + Objects.equals(this.exonEnd, exon.exonEnd) && Objects.equals(this.rank, exon.rank) && Objects.equals(this.strand, exon.strand) && Objects.equals(this.version, exon.version); @@ -216,16 +216,16 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(exonEnd, exonId, exonStart, rank, strand, version); + return Objects.hash(exonId, exonStart, exonEnd, rank, strand, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Exon {\n"); - sb.append(" exonEnd: ").append(toIndentedString(exonEnd)).append("\n"); sb.append(" exonId: ").append(toIndentedString(exonId)).append("\n"); sb.append(" exonStart: ").append(toIndentedString(exonStart)).append("\n"); + sb.append(" exonEnd: ").append(toIndentedString(exonEnd)).append("\n"); sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); sb.append(" strand: ").append(toIndentedString(strand)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaDrug.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaDrug.java new file mode 100644 index 0000000..6a4d4a3 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaDrug.java @@ -0,0 +1,132 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * FdaDrug + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FdaDrug implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_APPLICATION_NUMBER = "applicationNumber"; + @SerializedName(SERIALIZED_NAME_APPLICATION_NUMBER) + private String applicationNumber; + + public FdaDrug() { + } + + public FdaDrug id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public FdaDrug applicationNumber(String applicationNumber) { + + this.applicationNumber = applicationNumber; + return this; + } + + /** + * Get applicationNumber + * @return applicationNumber + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getApplicationNumber() { + return applicationNumber; + } + + + public void setApplicationNumber(String applicationNumber) { + this.applicationNumber = applicationNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FdaDrug fdaDrug = (FdaDrug) o; + return Objects.equals(this.id, fdaDrug.id) && + Objects.equals(this.applicationNumber, fdaDrug.applicationNumber); + } + + @Override + public int hashCode() { + return Objects.hash(id, applicationNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FdaDrug {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" applicationNumber: ").append(toIndentedString(applicationNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApi.java new file mode 100644 index 0000000..40e75d4 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApi.java @@ -0,0 +1,868 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.FdaDrug; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FdaDrugResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public FdaDrugResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public FdaDrugResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createFdaDrug + * @param fdaDrug (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createFdaDrugCall(FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaDrug; + + // create path and map variables + String localVarPath = "/api/fda-drugs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createFdaDrugValidateBeforeCall(FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'fdaDrug' is set + if (fdaDrug == null) { + throw new ApiException("Missing the required parameter 'fdaDrug' when calling createFdaDrug(Async)"); + } + + + okhttp3.Call localVarCall = createFdaDrugCall(fdaDrug, _callback); + return localVarCall; + + } + + /** + * + * + * @param fdaDrug (required) + * @return FdaDrug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaDrug createFdaDrug(FdaDrug fdaDrug) throws ApiException { + ApiResponse localVarResp = createFdaDrugWithHttpInfo(fdaDrug); + return localVarResp.getData(); + } + + /** + * + * + * @param fdaDrug (required) + * @return ApiResponse<FdaDrug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createFdaDrugWithHttpInfo(FdaDrug fdaDrug) throws ApiException { + okhttp3.Call localVarCall = createFdaDrugValidateBeforeCall(fdaDrug, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param fdaDrug (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createFdaDrugAsync(FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createFdaDrugValidateBeforeCall(fdaDrug, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteFdaDrug + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteFdaDrugCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteFdaDrugValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteFdaDrug(Async)"); + } + + + okhttp3.Call localVarCall = deleteFdaDrugCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteFdaDrug(Long id) throws ApiException { + deleteFdaDrugWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteFdaDrugWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteFdaDrugValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteFdaDrugAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteFdaDrugValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllFdaDrugs + * @param pageable (required) + * @param filter (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllFdaDrugsCall(Pageable pageable, String filter, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-drugs"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + if (filter != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("filter", filter)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllFdaDrugsValidateBeforeCall(Pageable pageable, String filter, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllFdaDrugs(Async)"); + } + + + okhttp3.Call localVarCall = getAllFdaDrugsCall(pageable, filter, _callback); + return localVarCall; + + } + + /** + * + * + * @param pageable (required) + * @param filter (optional) + * @return List<FdaDrug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllFdaDrugs(Pageable pageable, String filter) throws ApiException { + ApiResponse> localVarResp = getAllFdaDrugsWithHttpInfo(pageable, filter); + return localVarResp.getData(); + } + + /** + * + * + * @param pageable (required) + * @param filter (optional) + * @return ApiResponse<List<FdaDrug>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllFdaDrugsWithHttpInfo(Pageable pageable, String filter) throws ApiException { + okhttp3.Call localVarCall = getAllFdaDrugsValidateBeforeCall(pageable, filter, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param pageable (required) + * @param filter (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllFdaDrugsAsync(Pageable pageable, String filter, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllFdaDrugsValidateBeforeCall(pageable, filter, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFdaDrug + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaDrugCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFdaDrugValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getFdaDrug(Async)"); + } + + + okhttp3.Call localVarCall = getFdaDrugCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return FdaDrug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaDrug getFdaDrug(Long id) throws ApiException { + ApiResponse localVarResp = getFdaDrugWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<FdaDrug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getFdaDrugWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getFdaDrugValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaDrugAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFdaDrugValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateFdaDrug + * @param id (required) + * @param fdaDrug (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateFdaDrugCall(Long id, FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaDrug; + + // create path and map variables + String localVarPath = "/api/fda-drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateFdaDrugValidateBeforeCall(Long id, FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateFdaDrug(Async)"); + } + + // verify the required parameter 'fdaDrug' is set + if (fdaDrug == null) { + throw new ApiException("Missing the required parameter 'fdaDrug' when calling partialUpdateFdaDrug(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateFdaDrugCall(id, fdaDrug, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param fdaDrug (required) + * @return FdaDrug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaDrug partialUpdateFdaDrug(Long id, FdaDrug fdaDrug) throws ApiException { + ApiResponse localVarResp = partialUpdateFdaDrugWithHttpInfo(id, fdaDrug); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param fdaDrug (required) + * @return ApiResponse<FdaDrug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateFdaDrugWithHttpInfo(Long id, FdaDrug fdaDrug) throws ApiException { + okhttp3.Call localVarCall = partialUpdateFdaDrugValidateBeforeCall(id, fdaDrug, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param fdaDrug (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateFdaDrugAsync(Long id, FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateFdaDrugValidateBeforeCall(id, fdaDrug, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateFdaDrug + * @param id (required) + * @param fdaDrug (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateFdaDrugCall(Long id, FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaDrug; + + // create path and map variables + String localVarPath = "/api/fda-drugs/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateFdaDrugValidateBeforeCall(Long id, FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateFdaDrug(Async)"); + } + + // verify the required parameter 'fdaDrug' is set + if (fdaDrug == null) { + throw new ApiException("Missing the required parameter 'fdaDrug' when calling updateFdaDrug(Async)"); + } + + + okhttp3.Call localVarCall = updateFdaDrugCall(id, fdaDrug, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param fdaDrug (required) + * @return FdaDrug + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaDrug updateFdaDrug(Long id, FdaDrug fdaDrug) throws ApiException { + ApiResponse localVarResp = updateFdaDrugWithHttpInfo(id, fdaDrug); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param fdaDrug (required) + * @return ApiResponse<FdaDrug> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateFdaDrugWithHttpInfo(Long id, FdaDrug fdaDrug) throws ApiException { + okhttp3.Call localVarCall = updateFdaDrugValidateBeforeCall(id, fdaDrug, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param fdaDrug (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateFdaDrugAsync(Long id, FdaDrug fdaDrug, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateFdaDrugValidateBeforeCall(id, fdaDrug, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmission.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmission.java new file mode 100644 index 0000000..636713c --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmission.java @@ -0,0 +1,524 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import org.oncokb.oncokb_curation.client.FdaSubmissionType; +import org.threeten.bp.OffsetDateTime; +import java.io.Serializable; + +/** + * FdaSubmission + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FdaSubmission implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) + private String number; + + public static final String SERIALIZED_NAME_SUPPLEMENT_NUMBER = "supplementNumber"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENT_NUMBER) + private String supplementNumber; + + public static final String SERIALIZED_NAME_DEVICE_NAME = "deviceName"; + @SerializedName(SERIALIZED_NAME_DEVICE_NAME) + private String deviceName; + + public static final String SERIALIZED_NAME_GENERIC_NAME = "genericName"; + @SerializedName(SERIALIZED_NAME_GENERIC_NAME) + private String genericName; + + public static final String SERIALIZED_NAME_DATE_RECEIVED = "dateReceived"; + @SerializedName(SERIALIZED_NAME_DATE_RECEIVED) + private OffsetDateTime dateReceived; + + public static final String SERIALIZED_NAME_DECISION_DATE = "decisionDate"; + @SerializedName(SERIALIZED_NAME_DECISION_DATE) + private OffsetDateTime decisionDate; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_PLATFORM = "platform"; + @SerializedName(SERIALIZED_NAME_PLATFORM) + private String platform; + + public static final String SERIALIZED_NAME_CURATED = "curated"; + @SerializedName(SERIALIZED_NAME_CURATED) + private Boolean curated; + + public static final String SERIALIZED_NAME_GENETIC = "genetic"; + @SerializedName(SERIALIZED_NAME_GENETIC) + private Boolean genetic; + + public static final String SERIALIZED_NAME_ADDITIONAL_INFO = "additionalInfo"; + @SerializedName(SERIALIZED_NAME_ADDITIONAL_INFO) + private String additionalInfo; + + public static final String SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICE = "companionDiagnosticDevice"; + @SerializedName(SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICE) + private CompanionDiagnosticDevice companionDiagnosticDevice; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private FdaSubmissionType type; + + public static final String SERIALIZED_NAME_BIOMARKER_ASSOCIATIONS = "biomarkerAssociations"; + @SerializedName(SERIALIZED_NAME_BIOMARKER_ASSOCIATIONS) + private Set biomarkerAssociations = null; + + public FdaSubmission() { + } + + public FdaSubmission id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public FdaSubmission number(String number) { + + this.number = number; + return this; + } + + /** + * Get number + * @return number + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getNumber() { + return number; + } + + + public void setNumber(String number) { + this.number = number; + } + + + public FdaSubmission supplementNumber(String supplementNumber) { + + this.supplementNumber = supplementNumber; + return this; + } + + /** + * Get supplementNumber + * @return supplementNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getSupplementNumber() { + return supplementNumber; + } + + + public void setSupplementNumber(String supplementNumber) { + this.supplementNumber = supplementNumber; + } + + + public FdaSubmission deviceName(String deviceName) { + + this.deviceName = deviceName; + return this; + } + + /** + * Get deviceName + * @return deviceName + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getDeviceName() { + return deviceName; + } + + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + + public FdaSubmission genericName(String genericName) { + + this.genericName = genericName; + return this; + } + + /** + * Get genericName + * @return genericName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getGenericName() { + return genericName; + } + + + public void setGenericName(String genericName) { + this.genericName = genericName; + } + + + public FdaSubmission dateReceived(OffsetDateTime dateReceived) { + + this.dateReceived = dateReceived; + return this; + } + + /** + * Get dateReceived + * @return dateReceived + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getDateReceived() { + return dateReceived; + } + + + public void setDateReceived(OffsetDateTime dateReceived) { + this.dateReceived = dateReceived; + } + + + public FdaSubmission decisionDate(OffsetDateTime decisionDate) { + + this.decisionDate = decisionDate; + return this; + } + + /** + * Get decisionDate + * @return decisionDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getDecisionDate() { + return decisionDate; + } + + + public void setDecisionDate(OffsetDateTime decisionDate) { + this.decisionDate = decisionDate; + } + + + public FdaSubmission description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + public FdaSubmission platform(String platform) { + + this.platform = platform; + return this; + } + + /** + * Get platform + * @return platform + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getPlatform() { + return platform; + } + + + public void setPlatform(String platform) { + this.platform = platform; + } + + + public FdaSubmission curated(Boolean curated) { + + this.curated = curated; + return this; + } + + /** + * Get curated + * @return curated + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Boolean getCurated() { + return curated; + } + + + public void setCurated(Boolean curated) { + this.curated = curated; + } + + + public FdaSubmission genetic(Boolean genetic) { + + this.genetic = genetic; + return this; + } + + /** + * Get genetic + * @return genetic + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Boolean getGenetic() { + return genetic; + } + + + public void setGenetic(Boolean genetic) { + this.genetic = genetic; + } + + + public FdaSubmission additionalInfo(String additionalInfo) { + + this.additionalInfo = additionalInfo; + return this; + } + + /** + * Get additionalInfo + * @return additionalInfo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getAdditionalInfo() { + return additionalInfo; + } + + + public void setAdditionalInfo(String additionalInfo) { + this.additionalInfo = additionalInfo; + } + + + public FdaSubmission companionDiagnosticDevice(CompanionDiagnosticDevice companionDiagnosticDevice) { + + this.companionDiagnosticDevice = companionDiagnosticDevice; + return this; + } + + /** + * Get companionDiagnosticDevice + * @return companionDiagnosticDevice + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public CompanionDiagnosticDevice getCompanionDiagnosticDevice() { + return companionDiagnosticDevice; + } + + + public void setCompanionDiagnosticDevice(CompanionDiagnosticDevice companionDiagnosticDevice) { + this.companionDiagnosticDevice = companionDiagnosticDevice; + } + + + public FdaSubmission type(FdaSubmissionType type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public FdaSubmissionType getType() { + return type; + } + + + public void setType(FdaSubmissionType type) { + this.type = type; + } + + + public FdaSubmission biomarkerAssociations(Set biomarkerAssociations) { + + this.biomarkerAssociations = biomarkerAssociations; + return this; + } + + public FdaSubmission addBiomarkerAssociationsItem(BiomarkerAssociation biomarkerAssociationsItem) { + if (this.biomarkerAssociations == null) { + this.biomarkerAssociations = new LinkedHashSet(); + } + this.biomarkerAssociations.add(biomarkerAssociationsItem); + return this; + } + + /** + * Get biomarkerAssociations + * @return biomarkerAssociations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getBiomarkerAssociations() { + return biomarkerAssociations; + } + + + public void setBiomarkerAssociations(Set biomarkerAssociations) { + this.biomarkerAssociations = biomarkerAssociations; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FdaSubmission fdaSubmission = (FdaSubmission) o; + return Objects.equals(this.id, fdaSubmission.id) && + Objects.equals(this.number, fdaSubmission.number) && + Objects.equals(this.supplementNumber, fdaSubmission.supplementNumber) && + Objects.equals(this.deviceName, fdaSubmission.deviceName) && + Objects.equals(this.genericName, fdaSubmission.genericName) && + Objects.equals(this.dateReceived, fdaSubmission.dateReceived) && + Objects.equals(this.decisionDate, fdaSubmission.decisionDate) && + Objects.equals(this.description, fdaSubmission.description) && + Objects.equals(this.platform, fdaSubmission.platform) && + Objects.equals(this.curated, fdaSubmission.curated) && + Objects.equals(this.genetic, fdaSubmission.genetic) && + Objects.equals(this.additionalInfo, fdaSubmission.additionalInfo) && + Objects.equals(this.companionDiagnosticDevice, fdaSubmission.companionDiagnosticDevice) && + Objects.equals(this.type, fdaSubmission.type) && + Objects.equals(this.biomarkerAssociations, fdaSubmission.biomarkerAssociations); + } + + @Override + public int hashCode() { + return Objects.hash(id, number, supplementNumber, deviceName, genericName, dateReceived, decisionDate, description, platform, curated, genetic, additionalInfo, companionDiagnosticDevice, type, biomarkerAssociations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FdaSubmission {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" supplementNumber: ").append(toIndentedString(supplementNumber)).append("\n"); + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" genericName: ").append(toIndentedString(genericName)).append("\n"); + sb.append(" dateReceived: ").append(toIndentedString(dateReceived)).append("\n"); + sb.append(" decisionDate: ").append(toIndentedString(decisionDate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); + sb.append(" curated: ").append(toIndentedString(curated)).append("\n"); + sb.append(" genetic: ").append(toIndentedString(genetic)).append("\n"); + sb.append(" additionalInfo: ").append(toIndentedString(additionalInfo)).append("\n"); + sb.append(" companionDiagnosticDevice: ").append(toIndentedString(companionDiagnosticDevice)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" biomarkerAssociations: ").append(toIndentedString(biomarkerAssociations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteria.java new file mode 100644 index 0000000..d3cf32f --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteria.java @@ -0,0 +1,513 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.BooleanFilter; +import org.oncokb.oncokb_curation.client.InstantFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import java.io.Serializable; + +/** + * FdaSubmissionCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FdaSubmissionCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) + private StringFilter number; + + public static final String SERIALIZED_NAME_SUPPLEMENT_NUMBER = "supplementNumber"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENT_NUMBER) + private StringFilter supplementNumber; + + public static final String SERIALIZED_NAME_DEVICE_NAME = "deviceName"; + @SerializedName(SERIALIZED_NAME_DEVICE_NAME) + private StringFilter deviceName; + + public static final String SERIALIZED_NAME_GENERIC_NAME = "genericName"; + @SerializedName(SERIALIZED_NAME_GENERIC_NAME) + private StringFilter genericName; + + public static final String SERIALIZED_NAME_DATE_RECEIVED = "dateReceived"; + @SerializedName(SERIALIZED_NAME_DATE_RECEIVED) + private InstantFilter dateReceived; + + public static final String SERIALIZED_NAME_DECISION_DATE = "decisionDate"; + @SerializedName(SERIALIZED_NAME_DECISION_DATE) + private InstantFilter decisionDate; + + public static final String SERIALIZED_NAME_CURATED = "curated"; + @SerializedName(SERIALIZED_NAME_CURATED) + private BooleanFilter curated; + + public static final String SERIALIZED_NAME_GENETIC = "genetic"; + @SerializedName(SERIALIZED_NAME_GENETIC) + private BooleanFilter genetic; + + public static final String SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID = "biomarkerAssociationId"; + @SerializedName(SERIALIZED_NAME_BIOMARKER_ASSOCIATION_ID) + private LongFilter biomarkerAssociationId; + + public static final String SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICE_ID = "companionDiagnosticDeviceId"; + @SerializedName(SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICE_ID) + private LongFilter companionDiagnosticDeviceId; + + public static final String SERIALIZED_NAME_TYPE_ID = "typeId"; + @SerializedName(SERIALIZED_NAME_TYPE_ID) + private LongFilter typeId; + + public static final String SERIALIZED_NAME_TYPE_NAME = "typeName"; + @SerializedName(SERIALIZED_NAME_TYPE_NAME) + private StringFilter typeName; + + public static final String SERIALIZED_NAME_TYPE_SHORT_NAME = "typeShortName"; + @SerializedName(SERIALIZED_NAME_TYPE_SHORT_NAME) + private StringFilter typeShortName; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public FdaSubmissionCriteria() { + } + + public FdaSubmissionCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public FdaSubmissionCriteria number(StringFilter number) { + + this.number = number; + return this; + } + + /** + * Get number + * @return number + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getNumber() { + return number; + } + + + public void setNumber(StringFilter number) { + this.number = number; + } + + + public FdaSubmissionCriteria supplementNumber(StringFilter supplementNumber) { + + this.supplementNumber = supplementNumber; + return this; + } + + /** + * Get supplementNumber + * @return supplementNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getSupplementNumber() { + return supplementNumber; + } + + + public void setSupplementNumber(StringFilter supplementNumber) { + this.supplementNumber = supplementNumber; + } + + + public FdaSubmissionCriteria deviceName(StringFilter deviceName) { + + this.deviceName = deviceName; + return this; + } + + /** + * Get deviceName + * @return deviceName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getDeviceName() { + return deviceName; + } + + + public void setDeviceName(StringFilter deviceName) { + this.deviceName = deviceName; + } + + + public FdaSubmissionCriteria genericName(StringFilter genericName) { + + this.genericName = genericName; + return this; + } + + /** + * Get genericName + * @return genericName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getGenericName() { + return genericName; + } + + + public void setGenericName(StringFilter genericName) { + this.genericName = genericName; + } + + + public FdaSubmissionCriteria dateReceived(InstantFilter dateReceived) { + + this.dateReceived = dateReceived; + return this; + } + + /** + * Get dateReceived + * @return dateReceived + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public InstantFilter getDateReceived() { + return dateReceived; + } + + + public void setDateReceived(InstantFilter dateReceived) { + this.dateReceived = dateReceived; + } + + + public FdaSubmissionCriteria decisionDate(InstantFilter decisionDate) { + + this.decisionDate = decisionDate; + return this; + } + + /** + * Get decisionDate + * @return decisionDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public InstantFilter getDecisionDate() { + return decisionDate; + } + + + public void setDecisionDate(InstantFilter decisionDate) { + this.decisionDate = decisionDate; + } + + + public FdaSubmissionCriteria curated(BooleanFilter curated) { + + this.curated = curated; + return this; + } + + /** + * Get curated + * @return curated + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public BooleanFilter getCurated() { + return curated; + } + + + public void setCurated(BooleanFilter curated) { + this.curated = curated; + } + + + public FdaSubmissionCriteria genetic(BooleanFilter genetic) { + + this.genetic = genetic; + return this; + } + + /** + * Get genetic + * @return genetic + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public BooleanFilter getGenetic() { + return genetic; + } + + + public void setGenetic(BooleanFilter genetic) { + this.genetic = genetic; + } + + + public FdaSubmissionCriteria biomarkerAssociationId(LongFilter biomarkerAssociationId) { + + this.biomarkerAssociationId = biomarkerAssociationId; + return this; + } + + /** + * Get biomarkerAssociationId + * @return biomarkerAssociationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getBiomarkerAssociationId() { + return biomarkerAssociationId; + } + + + public void setBiomarkerAssociationId(LongFilter biomarkerAssociationId) { + this.biomarkerAssociationId = biomarkerAssociationId; + } + + + public FdaSubmissionCriteria companionDiagnosticDeviceId(LongFilter companionDiagnosticDeviceId) { + + this.companionDiagnosticDeviceId = companionDiagnosticDeviceId; + return this; + } + + /** + * Get companionDiagnosticDeviceId + * @return companionDiagnosticDeviceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getCompanionDiagnosticDeviceId() { + return companionDiagnosticDeviceId; + } + + + public void setCompanionDiagnosticDeviceId(LongFilter companionDiagnosticDeviceId) { + this.companionDiagnosticDeviceId = companionDiagnosticDeviceId; + } + + + public FdaSubmissionCriteria typeId(LongFilter typeId) { + + this.typeId = typeId; + return this; + } + + /** + * Get typeId + * @return typeId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getTypeId() { + return typeId; + } + + + public void setTypeId(LongFilter typeId) { + this.typeId = typeId; + } + + + public FdaSubmissionCriteria typeName(StringFilter typeName) { + + this.typeName = typeName; + return this; + } + + /** + * Get typeName + * @return typeName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getTypeName() { + return typeName; + } + + + public void setTypeName(StringFilter typeName) { + this.typeName = typeName; + } + + + public FdaSubmissionCriteria typeShortName(StringFilter typeShortName) { + + this.typeShortName = typeShortName; + return this; + } + + /** + * Get typeShortName + * @return typeShortName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getTypeShortName() { + return typeShortName; + } + + + public void setTypeShortName(StringFilter typeShortName) { + this.typeShortName = typeShortName; + } + + + public FdaSubmissionCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FdaSubmissionCriteria fdaSubmissionCriteria = (FdaSubmissionCriteria) o; + return Objects.equals(this.id, fdaSubmissionCriteria.id) && + Objects.equals(this.number, fdaSubmissionCriteria.number) && + Objects.equals(this.supplementNumber, fdaSubmissionCriteria.supplementNumber) && + Objects.equals(this.deviceName, fdaSubmissionCriteria.deviceName) && + Objects.equals(this.genericName, fdaSubmissionCriteria.genericName) && + Objects.equals(this.dateReceived, fdaSubmissionCriteria.dateReceived) && + Objects.equals(this.decisionDate, fdaSubmissionCriteria.decisionDate) && + Objects.equals(this.curated, fdaSubmissionCriteria.curated) && + Objects.equals(this.genetic, fdaSubmissionCriteria.genetic) && + Objects.equals(this.biomarkerAssociationId, fdaSubmissionCriteria.biomarkerAssociationId) && + Objects.equals(this.companionDiagnosticDeviceId, fdaSubmissionCriteria.companionDiagnosticDeviceId) && + Objects.equals(this.typeId, fdaSubmissionCriteria.typeId) && + Objects.equals(this.typeName, fdaSubmissionCriteria.typeName) && + Objects.equals(this.typeShortName, fdaSubmissionCriteria.typeShortName) && + Objects.equals(this.distinct, fdaSubmissionCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, number, supplementNumber, deviceName, genericName, dateReceived, decisionDate, curated, genetic, biomarkerAssociationId, companionDiagnosticDeviceId, typeId, typeName, typeShortName, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FdaSubmissionCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" supplementNumber: ").append(toIndentedString(supplementNumber)).append("\n"); + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" genericName: ").append(toIndentedString(genericName)).append("\n"); + sb.append(" dateReceived: ").append(toIndentedString(dateReceived)).append("\n"); + sb.append(" decisionDate: ").append(toIndentedString(decisionDate)).append("\n"); + sb.append(" curated: ").append(toIndentedString(curated)).append("\n"); + sb.append(" genetic: ").append(toIndentedString(genetic)).append("\n"); + sb.append(" biomarkerAssociationId: ").append(toIndentedString(biomarkerAssociationId)).append("\n"); + sb.append(" companionDiagnosticDeviceId: ").append(toIndentedString(companionDiagnosticDeviceId)).append("\n"); + sb.append(" typeId: ").append(toIndentedString(typeId)).append("\n"); + sb.append(" typeName: ").append(toIndentedString(typeName)).append("\n"); + sb.append(" typeShortName: ").append(toIndentedString(typeShortName)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApi.java new file mode 100644 index 0000000..0b025ce --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApi.java @@ -0,0 +1,1416 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.FdaSubmissionCriteria; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FdaSubmissionResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public FdaSubmissionResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public FdaSubmissionResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countFdaSubmissions + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countFdaSubmissionsCall(FdaSubmissionCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submissions/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countFdaSubmissionsValidateBeforeCall(FdaSubmissionCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countFdaSubmissions(Async)"); + } + + + okhttp3.Call localVarCall = countFdaSubmissionsCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countFdaSubmissions(FdaSubmissionCriteria criteria) throws ApiException { + ApiResponse localVarResp = countFdaSubmissionsWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countFdaSubmissionsWithHttpInfo(FdaSubmissionCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countFdaSubmissionsValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countFdaSubmissionsAsync(FdaSubmissionCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countFdaSubmissionsValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createFdaSubmission + * @param fdaSubmission (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createFdaSubmissionCall(FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaSubmission; + + // create path and map variables + String localVarPath = "/api/fda-submissions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createFdaSubmissionValidateBeforeCall(FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'fdaSubmission' is set + if (fdaSubmission == null) { + throw new ApiException("Missing the required parameter 'fdaSubmission' when calling createFdaSubmission(Async)"); + } + + + okhttp3.Call localVarCall = createFdaSubmissionCall(fdaSubmission, _callback); + return localVarCall; + + } + + /** + * + * + * @param fdaSubmission (required) + * @return FdaSubmission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmission createFdaSubmission(FdaSubmission fdaSubmission) throws ApiException { + ApiResponse localVarResp = createFdaSubmissionWithHttpInfo(fdaSubmission); + return localVarResp.getData(); + } + + /** + * + * + * @param fdaSubmission (required) + * @return ApiResponse<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createFdaSubmissionWithHttpInfo(FdaSubmission fdaSubmission) throws ApiException { + okhttp3.Call localVarCall = createFdaSubmissionValidateBeforeCall(fdaSubmission, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param fdaSubmission (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createFdaSubmissionAsync(FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createFdaSubmissionValidateBeforeCall(fdaSubmission, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteFdaSubmission + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteFdaSubmissionCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submissions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteFdaSubmissionValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteFdaSubmission(Async)"); + } + + + okhttp3.Call localVarCall = deleteFdaSubmissionCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteFdaSubmission(Long id) throws ApiException { + deleteFdaSubmissionWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteFdaSubmissionWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteFdaSubmissionValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteFdaSubmissionAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteFdaSubmissionValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for findFdaSubmissionsByCompanionDiagnosticDevice + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call findFdaSubmissionsByCompanionDiagnosticDeviceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submissions/companion-diagnostic-device/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call findFdaSubmissionsByCompanionDiagnosticDeviceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling findFdaSubmissionsByCompanionDiagnosticDevice(Async)"); + } + + + okhttp3.Call localVarCall = findFdaSubmissionsByCompanionDiagnosticDeviceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return List<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List findFdaSubmissionsByCompanionDiagnosticDevice(Long id) throws ApiException { + ApiResponse> localVarResp = findFdaSubmissionsByCompanionDiagnosticDeviceWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<List<FdaSubmission>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> findFdaSubmissionsByCompanionDiagnosticDeviceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = findFdaSubmissionsByCompanionDiagnosticDeviceValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call findFdaSubmissionsByCompanionDiagnosticDeviceAsync(Long id, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = findFdaSubmissionsByCompanionDiagnosticDeviceValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getAllFdaSubmissions + * @param criteria (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllFdaSubmissionsCall(FdaSubmissionCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submissions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllFdaSubmissionsValidateBeforeCall(FdaSubmissionCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllFdaSubmissions(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllFdaSubmissions(Async)"); + } + + + okhttp3.Call localVarCall = getAllFdaSubmissionsCall(criteria, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return List<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllFdaSubmissions(FdaSubmissionCriteria criteria, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllFdaSubmissionsWithHttpInfo(criteria, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return ApiResponse<List<FdaSubmission>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllFdaSubmissionsWithHttpInfo(FdaSubmissionCriteria criteria, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllFdaSubmissionsValidateBeforeCall(criteria, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllFdaSubmissionsAsync(FdaSubmissionCriteria criteria, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllFdaSubmissionsValidateBeforeCall(criteria, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFdaSubmission + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaSubmissionCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submissions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFdaSubmissionValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getFdaSubmission(Async)"); + } + + + okhttp3.Call localVarCall = getFdaSubmissionCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return FdaSubmission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmission getFdaSubmission(Long id) throws ApiException { + ApiResponse localVarResp = getFdaSubmissionWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getFdaSubmissionWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getFdaSubmissionValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaSubmissionAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFdaSubmissionValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFdaSubmissionByNumber + * @param number (required) + * @param supplementNumber (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaSubmissionByNumberCall(String number, String supplementNumber, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submissions/lookup"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (number != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("number", number)); + } + + if (supplementNumber != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("supplementNumber", supplementNumber)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFdaSubmissionByNumberValidateBeforeCall(String number, String supplementNumber, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'number' is set + if (number == null) { + throw new ApiException("Missing the required parameter 'number' when calling getFdaSubmissionByNumber(Async)"); + } + + + okhttp3.Call localVarCall = getFdaSubmissionByNumberCall(number, supplementNumber, _callback); + return localVarCall; + + } + + /** + * + * + * @param number (required) + * @param supplementNumber (optional) + * @return FdaSubmission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmission getFdaSubmissionByNumber(String number, String supplementNumber) throws ApiException { + ApiResponse localVarResp = getFdaSubmissionByNumberWithHttpInfo(number, supplementNumber); + return localVarResp.getData(); + } + + /** + * + * + * @param number (required) + * @param supplementNumber (optional) + * @return ApiResponse<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getFdaSubmissionByNumberWithHttpInfo(String number, String supplementNumber) throws ApiException { + okhttp3.Call localVarCall = getFdaSubmissionByNumberValidateBeforeCall(number, supplementNumber, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param number (required) + * @param supplementNumber (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaSubmissionByNumberAsync(String number, String supplementNumber, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFdaSubmissionByNumberValidateBeforeCall(number, supplementNumber, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateFdaSubmission + * @param id (required) + * @param fdaSubmission (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateFdaSubmissionCall(Long id, FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaSubmission; + + // create path and map variables + String localVarPath = "/api/fda-submissions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateFdaSubmissionValidateBeforeCall(Long id, FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateFdaSubmission(Async)"); + } + + // verify the required parameter 'fdaSubmission' is set + if (fdaSubmission == null) { + throw new ApiException("Missing the required parameter 'fdaSubmission' when calling partialUpdateFdaSubmission(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateFdaSubmissionCall(id, fdaSubmission, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param fdaSubmission (required) + * @return FdaSubmission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmission partialUpdateFdaSubmission(Long id, FdaSubmission fdaSubmission) throws ApiException { + ApiResponse localVarResp = partialUpdateFdaSubmissionWithHttpInfo(id, fdaSubmission); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param fdaSubmission (required) + * @return ApiResponse<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateFdaSubmissionWithHttpInfo(Long id, FdaSubmission fdaSubmission) throws ApiException { + okhttp3.Call localVarCall = partialUpdateFdaSubmissionValidateBeforeCall(id, fdaSubmission, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param fdaSubmission (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateFdaSubmissionAsync(Long id, FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateFdaSubmissionValidateBeforeCall(id, fdaSubmission, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchFdaSubmissions + * @param query (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchFdaSubmissionsCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/fda-submissions"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchFdaSubmissionsValidateBeforeCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchFdaSubmissions(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling searchFdaSubmissions(Async)"); + } + + + okhttp3.Call localVarCall = searchFdaSubmissionsCall(query, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return List<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List searchFdaSubmissions(String query, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = searchFdaSubmissionsWithHttpInfo(query, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return ApiResponse<List<FdaSubmission>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchFdaSubmissionsWithHttpInfo(String query, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = searchFdaSubmissionsValidateBeforeCall(query, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchFdaSubmissionsAsync(String query, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchFdaSubmissionsValidateBeforeCall(query, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateFdaSubmission + * @param id (required) + * @param fdaSubmission (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateFdaSubmissionCall(Long id, FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaSubmission; + + // create path and map variables + String localVarPath = "/api/fda-submissions/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateFdaSubmissionValidateBeforeCall(Long id, FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateFdaSubmission(Async)"); + } + + // verify the required parameter 'fdaSubmission' is set + if (fdaSubmission == null) { + throw new ApiException("Missing the required parameter 'fdaSubmission' when calling updateFdaSubmission(Async)"); + } + + + okhttp3.Call localVarCall = updateFdaSubmissionCall(id, fdaSubmission, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param fdaSubmission (required) + * @return FdaSubmission + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmission updateFdaSubmission(Long id, FdaSubmission fdaSubmission) throws ApiException { + ApiResponse localVarResp = updateFdaSubmissionWithHttpInfo(id, fdaSubmission); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param fdaSubmission (required) + * @return ApiResponse<FdaSubmission> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateFdaSubmissionWithHttpInfo(Long id, FdaSubmission fdaSubmission) throws ApiException { + okhttp3.Call localVarCall = updateFdaSubmissionValidateBeforeCall(id, fdaSubmission, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param fdaSubmission (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateFdaSubmissionAsync(Long id, FdaSubmission fdaSubmission, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateFdaSubmissionValidateBeforeCall(id, fdaSubmission, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionType.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionType.java new file mode 100644 index 0000000..61afbc9 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionType.java @@ -0,0 +1,270 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * FdaSubmissionType + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FdaSubmissionType implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + PMA("PMA"), + + DE_NOVO("DE_NOVO"), + + HDE("HDE"), + + PMN("PMN"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_SHORT_NAME = "shortName"; + @SerializedName(SERIALIZED_NAME_SHORT_NAME) + private String shortName; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public FdaSubmissionType() { + } + + public FdaSubmissionType id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public FdaSubmissionType type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public FdaSubmissionType name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public FdaSubmissionType shortName(String shortName) { + + this.shortName = shortName; + return this; + } + + /** + * Get shortName + * @return shortName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getShortName() { + return shortName; + } + + + public void setShortName(String shortName) { + this.shortName = shortName; + } + + + public FdaSubmissionType description(String description) { + + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getDescription() { + return description; + } + + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FdaSubmissionType fdaSubmissionType = (FdaSubmissionType) o; + return Objects.equals(this.id, fdaSubmissionType.id) && + Objects.equals(this.type, fdaSubmissionType.type) && + Objects.equals(this.name, fdaSubmissionType.name) && + Objects.equals(this.shortName, fdaSubmissionType.shortName) && + Objects.equals(this.description, fdaSubmissionType.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, name, shortName, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FdaSubmissionType {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" shortName: ").append(toIndentedString(shortName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApi.java new file mode 100644 index 0000000..5caf401 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.FdaSubmissionType; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class FdaSubmissionTypeResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public FdaSubmissionTypeResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public FdaSubmissionTypeResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createFdaSubmissionType + * @param fdaSubmissionType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createFdaSubmissionTypeCall(FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaSubmissionType; + + // create path and map variables + String localVarPath = "/api/fda-submission-types"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createFdaSubmissionTypeValidateBeforeCall(FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'fdaSubmissionType' is set + if (fdaSubmissionType == null) { + throw new ApiException("Missing the required parameter 'fdaSubmissionType' when calling createFdaSubmissionType(Async)"); + } + + + okhttp3.Call localVarCall = createFdaSubmissionTypeCall(fdaSubmissionType, _callback); + return localVarCall; + + } + + /** + * + * + * @param fdaSubmissionType (required) + * @return FdaSubmissionType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmissionType createFdaSubmissionType(FdaSubmissionType fdaSubmissionType) throws ApiException { + ApiResponse localVarResp = createFdaSubmissionTypeWithHttpInfo(fdaSubmissionType); + return localVarResp.getData(); + } + + /** + * + * + * @param fdaSubmissionType (required) + * @return ApiResponse<FdaSubmissionType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createFdaSubmissionTypeWithHttpInfo(FdaSubmissionType fdaSubmissionType) throws ApiException { + okhttp3.Call localVarCall = createFdaSubmissionTypeValidateBeforeCall(fdaSubmissionType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param fdaSubmissionType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createFdaSubmissionTypeAsync(FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createFdaSubmissionTypeValidateBeforeCall(fdaSubmissionType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteFdaSubmissionType + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteFdaSubmissionTypeCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submission-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteFdaSubmissionTypeValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteFdaSubmissionType(Async)"); + } + + + okhttp3.Call localVarCall = deleteFdaSubmissionTypeCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteFdaSubmissionType(Long id) throws ApiException { + deleteFdaSubmissionTypeWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteFdaSubmissionTypeWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteFdaSubmissionTypeValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteFdaSubmissionTypeAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteFdaSubmissionTypeValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllFdaSubmissionTypes + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllFdaSubmissionTypesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submission-types"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllFdaSubmissionTypesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllFdaSubmissionTypesCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<FdaSubmissionType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllFdaSubmissionTypes() throws ApiException { + ApiResponse> localVarResp = getAllFdaSubmissionTypesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<FdaSubmissionType>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllFdaSubmissionTypesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllFdaSubmissionTypesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllFdaSubmissionTypesAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllFdaSubmissionTypesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getFdaSubmissionType + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaSubmissionTypeCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/fda-submission-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getFdaSubmissionTypeValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getFdaSubmissionType(Async)"); + } + + + okhttp3.Call localVarCall = getFdaSubmissionTypeCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return FdaSubmissionType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmissionType getFdaSubmissionType(Long id) throws ApiException { + ApiResponse localVarResp = getFdaSubmissionTypeWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<FdaSubmissionType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getFdaSubmissionTypeWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getFdaSubmissionTypeValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getFdaSubmissionTypeAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getFdaSubmissionTypeValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateFdaSubmissionType + * @param id (required) + * @param fdaSubmissionType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateFdaSubmissionTypeCall(Long id, FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaSubmissionType; + + // create path and map variables + String localVarPath = "/api/fda-submission-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateFdaSubmissionTypeValidateBeforeCall(Long id, FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateFdaSubmissionType(Async)"); + } + + // verify the required parameter 'fdaSubmissionType' is set + if (fdaSubmissionType == null) { + throw new ApiException("Missing the required parameter 'fdaSubmissionType' when calling partialUpdateFdaSubmissionType(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateFdaSubmissionTypeCall(id, fdaSubmissionType, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param fdaSubmissionType (required) + * @return FdaSubmissionType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmissionType partialUpdateFdaSubmissionType(Long id, FdaSubmissionType fdaSubmissionType) throws ApiException { + ApiResponse localVarResp = partialUpdateFdaSubmissionTypeWithHttpInfo(id, fdaSubmissionType); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param fdaSubmissionType (required) + * @return ApiResponse<FdaSubmissionType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateFdaSubmissionTypeWithHttpInfo(Long id, FdaSubmissionType fdaSubmissionType) throws ApiException { + okhttp3.Call localVarCall = partialUpdateFdaSubmissionTypeValidateBeforeCall(id, fdaSubmissionType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param fdaSubmissionType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateFdaSubmissionTypeAsync(Long id, FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateFdaSubmissionTypeValidateBeforeCall(id, fdaSubmissionType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateFdaSubmissionType + * @param id (required) + * @param fdaSubmissionType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateFdaSubmissionTypeCall(Long id, FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fdaSubmissionType; + + // create path and map variables + String localVarPath = "/api/fda-submission-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateFdaSubmissionTypeValidateBeforeCall(Long id, FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateFdaSubmissionType(Async)"); + } + + // verify the required parameter 'fdaSubmissionType' is set + if (fdaSubmissionType == null) { + throw new ApiException("Missing the required parameter 'fdaSubmissionType' when calling updateFdaSubmissionType(Async)"); + } + + + okhttp3.Call localVarCall = updateFdaSubmissionTypeCall(id, fdaSubmissionType, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param fdaSubmissionType (required) + * @return FdaSubmissionType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public FdaSubmissionType updateFdaSubmissionType(Long id, FdaSubmissionType fdaSubmissionType) throws ApiException { + ApiResponse localVarResp = updateFdaSubmissionTypeWithHttpInfo(id, fdaSubmissionType); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param fdaSubmissionType (required) + * @return ApiResponse<FdaSubmissionType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateFdaSubmissionTypeWithHttpInfo(Long id, FdaSubmissionType fdaSubmissionType) throws ApiException { + okhttp3.Call localVarCall = updateFdaSubmissionTypeValidateBeforeCall(id, fdaSubmissionType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param fdaSubmissionType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateFdaSubmissionTypeAsync(Long id, FdaSubmissionType fdaSubmissionType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateFdaSubmissionTypeValidateBeforeCall(id, fdaSubmissionType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Gene.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Gene.java similarity index 57% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Gene.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Gene.java index 3cac0e5..4a77ddc 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Gene.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Gene.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,11 +23,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import org.oncokb.oncokb_transcript.client.EnsemblGene; -import org.oncokb.oncokb_transcript.client.GeneAlias; import java.io.Serializable; /** @@ -37,57 +32,41 @@ public class Gene implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_ENSEMBL_GENES = "ensemblGenes"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_GENES) - private Set ensemblGenes = null; + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; public static final String SERIALIZED_NAME_ENTREZ_GENE_ID = "entrezGeneId"; @SerializedName(SERIALIZED_NAME_ENTREZ_GENE_ID) private Integer entrezGeneId; - public static final String SERIALIZED_NAME_GENE_ALIASES = "geneAliases"; - @SerializedName(SERIALIZED_NAME_GENE_ALIASES) - private Set geneAliases = null; - public static final String SERIALIZED_NAME_HUGO_SYMBOL = "hugoSymbol"; @SerializedName(SERIALIZED_NAME_HUGO_SYMBOL) private String hugoSymbol; - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private Long id; - public Gene() { } - public Gene ensemblGenes(Set ensemblGenes) { + public Gene id(Long id) { - this.ensemblGenes = ensemblGenes; - return this; - } - - public Gene addEnsemblGenesItem(EnsemblGene ensemblGenesItem) { - if (this.ensemblGenes == null) { - this.ensemblGenes = new LinkedHashSet(); - } - this.ensemblGenes.add(ensemblGenesItem); + this.id = id; return this; } /** - * Get ensemblGenes - * @return ensemblGenes + * Get id + * @return id **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Set getEnsemblGenes() { - return ensemblGenes; + public Long getId() { + return id; } - public void setEnsemblGenes(Set ensemblGenes) { - this.ensemblGenes = ensemblGenes; + public void setId(Long id) { + this.id = id; } @@ -114,37 +93,6 @@ public void setEntrezGeneId(Integer entrezGeneId) { } - public Gene geneAliases(Set geneAliases) { - - this.geneAliases = geneAliases; - return this; - } - - public Gene addGeneAliasesItem(GeneAlias geneAliasesItem) { - if (this.geneAliases == null) { - this.geneAliases = new LinkedHashSet(); - } - this.geneAliases.add(geneAliasesItem); - return this; - } - - /** - * Get geneAliases - * @return geneAliases - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Set getGeneAliases() { - return geneAliases; - } - - - public void setGeneAliases(Set geneAliases) { - this.geneAliases = geneAliases; - } - - public Gene hugoSymbol(String hugoSymbol) { this.hugoSymbol = hugoSymbol; @@ -168,29 +116,6 @@ public void setHugoSymbol(String hugoSymbol) { } - public Gene id(Long id) { - - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Long getId() { - return id; - } - - - public void setId(Long id) { - this.id = id; - } - - @Override public boolean equals(Object o) { if (this == o) { @@ -200,27 +125,23 @@ public boolean equals(Object o) { return false; } Gene gene = (Gene) o; - return Objects.equals(this.ensemblGenes, gene.ensemblGenes) && + return Objects.equals(this.id, gene.id) && Objects.equals(this.entrezGeneId, gene.entrezGeneId) && - Objects.equals(this.geneAliases, gene.geneAliases) && - Objects.equals(this.hugoSymbol, gene.hugoSymbol) && - Objects.equals(this.id, gene.id); + Objects.equals(this.hugoSymbol, gene.hugoSymbol); } @Override public int hashCode() { - return Objects.hash(ensemblGenes, entrezGeneId, geneAliases, hugoSymbol, id); + return Objects.hash(id, entrezGeneId, hugoSymbol); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Gene {\n"); - sb.append(" ensemblGenes: ").append(toIndentedString(ensemblGenes)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" entrezGeneId: ").append(toIndentedString(entrezGeneId)).append("\n"); - sb.append(" geneAliases: ").append(toIndentedString(geneAliases)).append("\n"); sb.append(" hugoSymbol: ").append(toIndentedString(hugoSymbol)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneAlias.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneAlias.java similarity index 86% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneAlias.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneAlias.java index 094a748..e1eb56b 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneAlias.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneAlias.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Gene; +import org.oncokb.oncokb_curation.client.Gene; import java.io.Serializable; /** @@ -33,10 +33,6 @@ public class GeneAlias implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_GENE = "gene"; - @SerializedName(SERIALIZED_NAME_GENE) - private Gene gene; - public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private Long id; @@ -45,32 +41,13 @@ public class GeneAlias implements Serializable { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public GeneAlias() { - } - - public GeneAlias gene(Gene gene) { - - this.gene = gene; - return this; - } - - /** - * Get gene - * @return gene - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Gene getGene() { - return gene; - } - + public static final String SERIALIZED_NAME_GENE = "gene"; + @SerializedName(SERIALIZED_NAME_GENE) + private Gene gene; - public void setGene(Gene gene) { - this.gene = gene; + public GeneAlias() { } - public GeneAlias id(Long id) { this.id = id; @@ -117,6 +94,29 @@ public void setName(String name) { } + public GeneAlias gene(Gene gene) { + + this.gene = gene; + return this; + } + + /** + * Get gene + * @return gene + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Gene getGene() { + return gene; + } + + + public void setGene(Gene gene) { + this.gene = gene; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -126,23 +126,23 @@ public boolean equals(Object o) { return false; } GeneAlias geneAlias = (GeneAlias) o; - return Objects.equals(this.gene, geneAlias.gene) && - Objects.equals(this.id, geneAlias.id) && - Objects.equals(this.name, geneAlias.name); + return Objects.equals(this.id, geneAlias.id) && + Objects.equals(this.name, geneAlias.name) && + Objects.equals(this.gene, geneAlias.gene); } @Override public int hashCode() { - return Objects.hash(gene, id, name); + return Objects.hash(id, name, gene); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GeneAlias {\n"); - sb.append(" gene: ").append(toIndentedString(gene)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" gene: ").append(toIndentedString(gene)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApi.java new file mode 100644 index 0000000..53254db --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.GeneAlias; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class GeneAliasResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public GeneAliasResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public GeneAliasResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createGeneAlias + * @param geneAlias (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createGeneAliasCall(GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = geneAlias; + + // create path and map variables + String localVarPath = "/api/gene-aliases"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createGeneAliasValidateBeforeCall(GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'geneAlias' is set + if (geneAlias == null) { + throw new ApiException("Missing the required parameter 'geneAlias' when calling createGeneAlias(Async)"); + } + + + okhttp3.Call localVarCall = createGeneAliasCall(geneAlias, _callback); + return localVarCall; + + } + + /** + * + * + * @param geneAlias (required) + * @return GeneAlias + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GeneAlias createGeneAlias(GeneAlias geneAlias) throws ApiException { + ApiResponse localVarResp = createGeneAliasWithHttpInfo(geneAlias); + return localVarResp.getData(); + } + + /** + * + * + * @param geneAlias (required) + * @return ApiResponse<GeneAlias> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createGeneAliasWithHttpInfo(GeneAlias geneAlias) throws ApiException { + okhttp3.Call localVarCall = createGeneAliasValidateBeforeCall(geneAlias, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param geneAlias (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createGeneAliasAsync(GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createGeneAliasValidateBeforeCall(geneAlias, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteGeneAlias + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteGeneAliasCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/gene-aliases/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteGeneAliasValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteGeneAlias(Async)"); + } + + + okhttp3.Call localVarCall = deleteGeneAliasCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteGeneAlias(Long id) throws ApiException { + deleteGeneAliasWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteGeneAliasWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteGeneAliasValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteGeneAliasAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteGeneAliasValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllGeneAliases + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllGeneAliasesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/gene-aliases"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllGeneAliasesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllGeneAliasesCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<GeneAlias> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllGeneAliases() throws ApiException { + ApiResponse> localVarResp = getAllGeneAliasesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<GeneAlias>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllGeneAliasesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllGeneAliasesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllGeneAliasesAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllGeneAliasesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGeneAlias + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGeneAliasCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/gene-aliases/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGeneAliasValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getGeneAlias(Async)"); + } + + + okhttp3.Call localVarCall = getGeneAliasCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return GeneAlias + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GeneAlias getGeneAlias(Long id) throws ApiException { + ApiResponse localVarResp = getGeneAliasWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<GeneAlias> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getGeneAliasWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getGeneAliasValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGeneAliasAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGeneAliasValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateGeneAlias + * @param id (required) + * @param geneAlias (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateGeneAliasCall(Long id, GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = geneAlias; + + // create path and map variables + String localVarPath = "/api/gene-aliases/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateGeneAliasValidateBeforeCall(Long id, GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateGeneAlias(Async)"); + } + + // verify the required parameter 'geneAlias' is set + if (geneAlias == null) { + throw new ApiException("Missing the required parameter 'geneAlias' when calling partialUpdateGeneAlias(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateGeneAliasCall(id, geneAlias, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param geneAlias (required) + * @return GeneAlias + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GeneAlias partialUpdateGeneAlias(Long id, GeneAlias geneAlias) throws ApiException { + ApiResponse localVarResp = partialUpdateGeneAliasWithHttpInfo(id, geneAlias); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param geneAlias (required) + * @return ApiResponse<GeneAlias> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateGeneAliasWithHttpInfo(Long id, GeneAlias geneAlias) throws ApiException { + okhttp3.Call localVarCall = partialUpdateGeneAliasValidateBeforeCall(id, geneAlias, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param geneAlias (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateGeneAliasAsync(Long id, GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateGeneAliasValidateBeforeCall(id, geneAlias, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateGeneAlias + * @param id (required) + * @param geneAlias (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGeneAliasCall(Long id, GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = geneAlias; + + // create path and map variables + String localVarPath = "/api/gene-aliases/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateGeneAliasValidateBeforeCall(Long id, GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateGeneAlias(Async)"); + } + + // verify the required parameter 'geneAlias' is set + if (geneAlias == null) { + throw new ApiException("Missing the required parameter 'geneAlias' when calling updateGeneAlias(Async)"); + } + + + okhttp3.Call localVarCall = updateGeneAliasCall(id, geneAlias, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param geneAlias (required) + * @return GeneAlias + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GeneAlias updateGeneAlias(Long id, GeneAlias geneAlias) throws ApiException { + ApiResponse localVarResp = updateGeneAliasWithHttpInfo(id, geneAlias); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param geneAlias (required) + * @return ApiResponse<GeneAlias> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateGeneAliasWithHttpInfo(Long id, GeneAlias geneAlias) throws ApiException { + okhttp3.Call localVarCall = updateGeneAliasValidateBeforeCall(id, geneAlias, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param geneAlias (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGeneAliasAsync(Long id, GeneAlias geneAlias, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateGeneAliasValidateBeforeCall(id, geneAlias, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneControllerApi.java similarity index 65% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneControllerApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneControllerApi.java index 67dc3e0..ca9c136 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GeneControllerApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneControllerApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Gene; +import org.oncokb.oncokb_curation.client.Gene; import java.util.Set; import java.lang.reflect.Type; @@ -74,8 +74,8 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for findGeneBySymbolUsingGET - * @param symbol symbol (required) + * Build call for findGeneBySymbol + * @param symbol (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -83,12 +83,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findGeneBySymbolUsingGETCall(String symbol, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findGeneBySymbolCall(String symbol, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -134,69 +131,63 @@ public okhttp3.Call findGeneBySymbolUsingGETCall(String symbol, final ApiCallbac localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call findGeneBySymbolUsingGETValidateBeforeCall(String symbol, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findGeneBySymbolValidateBeforeCall(String symbol, final ApiCallback _callback) throws ApiException { // verify the required parameter 'symbol' is set if (symbol == null) { - throw new ApiException("Missing the required parameter 'symbol' when calling findGeneBySymbolUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'symbol' when calling findGeneBySymbol(Async)"); } - okhttp3.Call localVarCall = findGeneBySymbolUsingGETCall(symbol, _callback); + okhttp3.Call localVarCall = findGeneBySymbolCall(symbol, _callback); return localVarCall; } /** - * findGeneBySymbol * - * @param symbol symbol (required) + * + * @param symbol (required) * @return Gene * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public Gene findGeneBySymbolUsingGET(String symbol) throws ApiException { - ApiResponse localVarResp = findGeneBySymbolUsingGETWithHttpInfo(symbol); + public Gene findGeneBySymbol(String symbol) throws ApiException { + ApiResponse localVarResp = findGeneBySymbolWithHttpInfo(symbol); return localVarResp.getData(); } /** - * findGeneBySymbol * - * @param symbol symbol (required) + * + * @param symbol (required) * @return ApiResponse<Gene> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse findGeneBySymbolUsingGETWithHttpInfo(String symbol) throws ApiException { - okhttp3.Call localVarCall = findGeneBySymbolUsingGETValidateBeforeCall(symbol, null); + public ApiResponse findGeneBySymbolWithHttpInfo(String symbol) throws ApiException { + okhttp3.Call localVarCall = findGeneBySymbolValidateBeforeCall(symbol, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * findGeneBySymbol (asynchronously) + * (asynchronously) * - * @param symbol symbol (required) + * @param symbol (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -204,21 +195,18 @@ public ApiResponse findGeneBySymbolUsingGETWithHttpInfo(String symbol) thr - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findGeneBySymbolUsingGETAsync(String symbol, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findGeneBySymbolAsync(String symbol, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = findGeneBySymbolUsingGETValidateBeforeCall(symbol, _callback); + okhttp3.Call localVarCall = findGeneBySymbolValidateBeforeCall(symbol, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for findGenesBySymbolsUsingPOST - * @param requestBody (optional) + * Build call for findGenesBySymbols + * @param requestBody (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -226,13 +214,9 @@ public okhttp3.Call findGeneBySymbolUsingGETAsync(String symbol, final ApiCallba - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findGenesBySymbolsUsingPOSTCall(List requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findGenesBySymbolsCall(List requestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -274,66 +258,63 @@ public okhttp3.Call findGenesBySymbolsUsingPOSTCall(List requestBody, fi localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call findGenesBySymbolsUsingPOSTValidateBeforeCall(List requestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findGenesBySymbolsValidateBeforeCall(List requestBody, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'requestBody' is set + if (requestBody == null) { + throw new ApiException("Missing the required parameter 'requestBody' when calling findGenesBySymbols(Async)"); + } - okhttp3.Call localVarCall = findGenesBySymbolsUsingPOSTCall(requestBody, _callback); + okhttp3.Call localVarCall = findGenesBySymbolsCall(requestBody, _callback); return localVarCall; } /** - * findGenesBySymbols * - * @param requestBody (optional) + * + * @param requestBody (required) * @return Set<Gene> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public Set findGenesBySymbolsUsingPOST(List requestBody) throws ApiException { - ApiResponse> localVarResp = findGenesBySymbolsUsingPOSTWithHttpInfo(requestBody); + public Set findGenesBySymbols(List requestBody) throws ApiException { + ApiResponse> localVarResp = findGenesBySymbolsWithHttpInfo(requestBody); return localVarResp.getData(); } /** - * findGenesBySymbols * - * @param requestBody (optional) + * + * @param requestBody (required) * @return ApiResponse<Set<Gene>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse> findGenesBySymbolsUsingPOSTWithHttpInfo(List requestBody) throws ApiException { - okhttp3.Call localVarCall = findGenesBySymbolsUsingPOSTValidateBeforeCall(requestBody, null); + public ApiResponse> findGenesBySymbolsWithHttpInfo(List requestBody) throws ApiException { + okhttp3.Call localVarCall = findGenesBySymbolsValidateBeforeCall(requestBody, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * findGenesBySymbols (asynchronously) + * (asynchronously) * - * @param requestBody (optional) + * @param requestBody (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -341,15 +322,11 @@ public ApiResponse> findGenesBySymbolsUsingPOSTWithHttpInfo(List Status Code Description Response Headers 200 OK - - 201 Created - - 401 Unauthorized - - 403 Forbidden - - 404 Not Found - */ - public okhttp3.Call findGenesBySymbolsUsingPOSTAsync(List requestBody, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findGenesBySymbolsAsync(List requestBody, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = findGenesBySymbolsUsingPOSTValidateBeforeCall(requestBody, _callback); + okhttp3.Call localVarCall = findGenesBySymbolsValidateBeforeCall(requestBody, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneCriteria.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneCriteria.java new file mode 100644 index 0000000..132e743 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneCriteria.java @@ -0,0 +1,280 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.IntegerFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import java.io.Serializable; + +/** + * GeneCriteria + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GeneCriteria implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private LongFilter id; + + public static final String SERIALIZED_NAME_ENTREZ_GENE_ID = "entrezGeneId"; + @SerializedName(SERIALIZED_NAME_ENTREZ_GENE_ID) + private IntegerFilter entrezGeneId; + + public static final String SERIALIZED_NAME_HUGO_SYMBOL = "hugoSymbol"; + @SerializedName(SERIALIZED_NAME_HUGO_SYMBOL) + private StringFilter hugoSymbol; + + public static final String SERIALIZED_NAME_GENE_ALIAS_ID = "geneAliasId"; + @SerializedName(SERIALIZED_NAME_GENE_ALIAS_ID) + private LongFilter geneAliasId; + + public static final String SERIALIZED_NAME_ENSEMBL_GENE_ID = "ensemblGeneId"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE_ID) + private LongFilter ensemblGeneId; + + public static final String SERIALIZED_NAME_ALTERATION_ID = "alterationId"; + @SerializedName(SERIALIZED_NAME_ALTERATION_ID) + private LongFilter alterationId; + + public static final String SERIALIZED_NAME_DISTINCT = "distinct"; + @SerializedName(SERIALIZED_NAME_DISTINCT) + private Boolean distinct; + + public GeneCriteria() { + } + + public GeneCriteria id(LongFilter id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getId() { + return id; + } + + + public void setId(LongFilter id) { + this.id = id; + } + + + public GeneCriteria entrezGeneId(IntegerFilter entrezGeneId) { + + this.entrezGeneId = entrezGeneId; + return this; + } + + /** + * Get entrezGeneId + * @return entrezGeneId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public IntegerFilter getEntrezGeneId() { + return entrezGeneId; + } + + + public void setEntrezGeneId(IntegerFilter entrezGeneId) { + this.entrezGeneId = entrezGeneId; + } + + + public GeneCriteria hugoSymbol(StringFilter hugoSymbol) { + + this.hugoSymbol = hugoSymbol; + return this; + } + + /** + * Get hugoSymbol + * @return hugoSymbol + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public StringFilter getHugoSymbol() { + return hugoSymbol; + } + + + public void setHugoSymbol(StringFilter hugoSymbol) { + this.hugoSymbol = hugoSymbol; + } + + + public GeneCriteria geneAliasId(LongFilter geneAliasId) { + + this.geneAliasId = geneAliasId; + return this; + } + + /** + * Get geneAliasId + * @return geneAliasId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getGeneAliasId() { + return geneAliasId; + } + + + public void setGeneAliasId(LongFilter geneAliasId) { + this.geneAliasId = geneAliasId; + } + + + public GeneCriteria ensemblGeneId(LongFilter ensemblGeneId) { + + this.ensemblGeneId = ensemblGeneId; + return this; + } + + /** + * Get ensemblGeneId + * @return ensemblGeneId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getEnsemblGeneId() { + return ensemblGeneId; + } + + + public void setEnsemblGeneId(LongFilter ensemblGeneId) { + this.ensemblGeneId = ensemblGeneId; + } + + + public GeneCriteria alterationId(LongFilter alterationId) { + + this.alterationId = alterationId; + return this; + } + + /** + * Get alterationId + * @return alterationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LongFilter getAlterationId() { + return alterationId; + } + + + public void setAlterationId(LongFilter alterationId) { + this.alterationId = alterationId; + } + + + public GeneCriteria distinct(Boolean distinct) { + + this.distinct = distinct; + return this; + } + + /** + * Get distinct + * @return distinct + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getDistinct() { + return distinct; + } + + + public void setDistinct(Boolean distinct) { + this.distinct = distinct; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GeneCriteria geneCriteria = (GeneCriteria) o; + return Objects.equals(this.id, geneCriteria.id) && + Objects.equals(this.entrezGeneId, geneCriteria.entrezGeneId) && + Objects.equals(this.hugoSymbol, geneCriteria.hugoSymbol) && + Objects.equals(this.geneAliasId, geneCriteria.geneAliasId) && + Objects.equals(this.ensemblGeneId, geneCriteria.ensemblGeneId) && + Objects.equals(this.alterationId, geneCriteria.alterationId) && + Objects.equals(this.distinct, geneCriteria.distinct); + } + + @Override + public int hashCode() { + return Objects.hash(id, entrezGeneId, hugoSymbol, geneAliasId, ensemblGeneId, alterationId, distinct); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GeneCriteria {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" entrezGeneId: ").append(toIndentedString(entrezGeneId)).append("\n"); + sb.append(" hugoSymbol: ").append(toIndentedString(hugoSymbol)).append("\n"); + sb.append(" geneAliasId: ").append(toIndentedString(geneAliasId)).append("\n"); + sb.append(" ensemblGeneId: ").append(toIndentedString(ensemblGeneId)).append("\n"); + sb.append(" alterationId: ").append(toIndentedString(alterationId)).append("\n"); + sb.append(" distinct: ").append(toIndentedString(distinct)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneResourceApi.java new file mode 100644 index 0000000..2e82c80 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GeneResourceApi.java @@ -0,0 +1,1149 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Gene; +import org.oncokb.oncokb_curation.client.GeneCriteria; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class GeneResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public GeneResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public GeneResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for countGenes + * @param criteria (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countGenesCall(GeneCriteria criteria, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/genes/count"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call countGenesValidateBeforeCall(GeneCriteria criteria, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling countGenes(Async)"); + } + + + okhttp3.Call localVarCall = countGenesCall(criteria, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @return Long + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Long countGenes(GeneCriteria criteria) throws ApiException { + ApiResponse localVarResp = countGenesWithHttpInfo(criteria); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @return ApiResponse<Long> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse countGenesWithHttpInfo(GeneCriteria criteria) throws ApiException { + okhttp3.Call localVarCall = countGenesValidateBeforeCall(criteria, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call countGenesAsync(GeneCriteria criteria, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = countGenesValidateBeforeCall(criteria, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for createGene + * @param gene (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createGeneCall(Gene gene, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = gene; + + // create path and map variables + String localVarPath = "/api/genes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createGeneValidateBeforeCall(Gene gene, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'gene' is set + if (gene == null) { + throw new ApiException("Missing the required parameter 'gene' when calling createGene(Async)"); + } + + + okhttp3.Call localVarCall = createGeneCall(gene, _callback); + return localVarCall; + + } + + /** + * + * + * @param gene (required) + * @return Gene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Gene createGene(Gene gene) throws ApiException { + ApiResponse localVarResp = createGeneWithHttpInfo(gene); + return localVarResp.getData(); + } + + /** + * + * + * @param gene (required) + * @return ApiResponse<Gene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createGeneWithHttpInfo(Gene gene) throws ApiException { + okhttp3.Call localVarCall = createGeneValidateBeforeCall(gene, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param gene (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createGeneAsync(Gene gene, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createGeneValidateBeforeCall(gene, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteGene + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteGeneCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteGeneValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteGene(Async)"); + } + + + okhttp3.Call localVarCall = deleteGeneCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteGene(Long id) throws ApiException { + deleteGeneWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteGeneWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteGeneValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteGeneAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteGeneValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllGenes + * @param criteria (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllGenesCall(GeneCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/genes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (criteria != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("criteria", criteria)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllGenesValidateBeforeCall(GeneCriteria criteria, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'criteria' is set + if (criteria == null) { + throw new ApiException("Missing the required parameter 'criteria' when calling getAllGenes(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllGenes(Async)"); + } + + + okhttp3.Call localVarCall = getAllGenesCall(criteria, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return List<Gene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllGenes(GeneCriteria criteria, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllGenesWithHttpInfo(criteria, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param criteria (required) + * @param pageable (required) + * @return ApiResponse<List<Gene>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllGenesWithHttpInfo(GeneCriteria criteria, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllGenesValidateBeforeCall(criteria, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param criteria (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllGenesAsync(GeneCriteria criteria, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllGenesValidateBeforeCall(criteria, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGene + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGeneCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGeneValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getGene(Async)"); + } + + + okhttp3.Call localVarCall = getGeneCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return Gene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Gene getGene(Long id) throws ApiException { + ApiResponse localVarResp = getGeneWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Gene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getGeneWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getGeneValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGeneAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGeneValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateGene + * @param id (required) + * @param gene (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateGeneCall(Long id, Gene gene, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = gene; + + // create path and map variables + String localVarPath = "/api/genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateGeneValidateBeforeCall(Long id, Gene gene, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateGene(Async)"); + } + + // verify the required parameter 'gene' is set + if (gene == null) { + throw new ApiException("Missing the required parameter 'gene' when calling partialUpdateGene(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateGeneCall(id, gene, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param gene (required) + * @return Gene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Gene partialUpdateGene(Long id, Gene gene) throws ApiException { + ApiResponse localVarResp = partialUpdateGeneWithHttpInfo(id, gene); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param gene (required) + * @return ApiResponse<Gene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateGeneWithHttpInfo(Long id, Gene gene) throws ApiException { + okhttp3.Call localVarCall = partialUpdateGeneValidateBeforeCall(id, gene, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param gene (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateGeneAsync(Long id, Gene gene, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateGeneValidateBeforeCall(id, gene, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for searchGenes + * @param query (required) + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchGenesCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/genes"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchGenesValidateBeforeCall(String query, Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling searchGenes(Async)"); + } + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling searchGenes(Async)"); + } + + + okhttp3.Call localVarCall = searchGenesCall(query, pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return List<Gene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List searchGenes(String query, Pageable pageable) throws ApiException { + ApiResponse> localVarResp = searchGenesWithHttpInfo(query, pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @param pageable (required) + * @return ApiResponse<List<Gene>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> searchGenesWithHttpInfo(String query, Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = searchGenesValidateBeforeCall(query, pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchGenesAsync(String query, Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = searchGenesValidateBeforeCall(query, pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateGene + * @param id (required) + * @param gene (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGeneCall(Long id, Gene gene, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = gene; + + // create path and map variables + String localVarPath = "/api/genes/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateGeneValidateBeforeCall(Long id, Gene gene, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateGene(Async)"); + } + + // verify the required parameter 'gene' is set + if (gene == null) { + throw new ApiException("Missing the required parameter 'gene' when calling updateGene(Async)"); + } + + + okhttp3.Call localVarCall = updateGeneCall(id, gene, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param gene (required) + * @return Gene + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Gene updateGene(Long id, Gene gene) throws ApiException { + ApiResponse localVarResp = updateGeneWithHttpInfo(id, gene); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param gene (required) + * @return ApiResponse<Gene> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateGeneWithHttpInfo(Long id, Gene gene) throws ApiException { + okhttp3.Call localVarCall = updateGeneValidateBeforeCall(id, gene, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param gene (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGeneAsync(Long id, Gene gene, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateGeneValidateBeforeCall(id, gene, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GenomeFragment.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GenomeFragment.java similarity index 92% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GenomeFragment.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GenomeFragment.java index 647408f..36c4231 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/GenomeFragment.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GenomeFragment.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Transcript; +import org.oncokb.oncokb_curation.client.Transcript; import java.io.Serializable; /** @@ -33,41 +33,37 @@ public class GenomeFragment implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_CHROMOSOME = "chromosome"; - @SerializedName(SERIALIZED_NAME_CHROMOSOME) - private String chromosome; - - public static final String SERIALIZED_NAME_END = "end"; - @SerializedName(SERIALIZED_NAME_END) - private Integer end; - public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) private Long id; + public static final String SERIALIZED_NAME_CHROMOSOME = "chromosome"; + @SerializedName(SERIALIZED_NAME_CHROMOSOME) + private String chromosome; + public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) private Integer start; + public static final String SERIALIZED_NAME_END = "end"; + @SerializedName(SERIALIZED_NAME_END) + private Integer end; + public static final String SERIALIZED_NAME_STRAND = "strand"; @SerializedName(SERIALIZED_NAME_STRAND) private Integer strand; - public static final String SERIALIZED_NAME_TRANSCRIPT = "transcript"; - @SerializedName(SERIALIZED_NAME_TRANSCRIPT) - private Transcript transcript; - /** * Gets or Sets type */ @JsonAdapter(TypeEnum.Adapter.class) public enum TypeEnum { + GENE("GENE"), + EXON("EXON"), FIVE_PRIME_UTR("FIVE_PRIME_UTR"), - GENE("GENE"), - THREE_PRIME_UTR("THREE_PRIME_UTR"); private String value; @@ -112,98 +108,102 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_TYPE) private TypeEnum type; + public static final String SERIALIZED_NAME_TRANSCRIPT = "transcript"; + @SerializedName(SERIALIZED_NAME_TRANSCRIPT) + private Transcript transcript; + public GenomeFragment() { } - public GenomeFragment chromosome(String chromosome) { + public GenomeFragment id(Long id) { - this.chromosome = chromosome; + this.id = id; return this; } /** - * Get chromosome - * @return chromosome + * Get id + * @return id **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getChromosome() { - return chromosome; + public Long getId() { + return id; } - public void setChromosome(String chromosome) { - this.chromosome = chromosome; + public void setId(Long id) { + this.id = id; } - public GenomeFragment end(Integer end) { + public GenomeFragment chromosome(String chromosome) { - this.end = end; + this.chromosome = chromosome; return this; } /** - * Get end - * @return end + * Get chromosome + * @return chromosome **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getEnd() { - return end; + public String getChromosome() { + return chromosome; } - public void setEnd(Integer end) { - this.end = end; + public void setChromosome(String chromosome) { + this.chromosome = chromosome; } - public GenomeFragment id(Long id) { + public GenomeFragment start(Integer start) { - this.id = id; + this.start = start; return this; } /** - * Get id - * @return id + * Get start + * @return start **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Long getId() { - return id; + public Integer getStart() { + return start; } - public void setId(Long id) { - this.id = id; + public void setStart(Integer start) { + this.start = start; } - public GenomeFragment start(Integer start) { + public GenomeFragment end(Integer end) { - this.start = start; + this.end = end; return this; } /** - * Get start - * @return start + * Get end + * @return end **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getStart() { - return start; + public Integer getEnd() { + return end; } - public void setStart(Integer start) { - this.start = start; + public void setEnd(Integer end) { + this.end = end; } @@ -230,49 +230,49 @@ public void setStrand(Integer strand) { } - public GenomeFragment transcript(Transcript transcript) { + public GenomeFragment type(TypeEnum type) { - this.transcript = transcript; + this.type = type; return this; } /** - * Get transcript - * @return transcript + * Get type + * @return type **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Transcript getTranscript() { - return transcript; + public TypeEnum getType() { + return type; } - public void setTranscript(Transcript transcript) { - this.transcript = transcript; + public void setType(TypeEnum type) { + this.type = type; } - public GenomeFragment type(TypeEnum type) { + public GenomeFragment transcript(Transcript transcript) { - this.type = type; + this.transcript = transcript; return this; } /** - * Get type - * @return type + * Get transcript + * @return transcript **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public TypeEnum getType() { - return type; + public Transcript getTranscript() { + return transcript; } - public void setType(TypeEnum type) { - this.type = type; + public void setTranscript(Transcript transcript) { + this.transcript = transcript; } @@ -285,31 +285,31 @@ public boolean equals(Object o) { return false; } GenomeFragment genomeFragment = (GenomeFragment) o; - return Objects.equals(this.chromosome, genomeFragment.chromosome) && - Objects.equals(this.end, genomeFragment.end) && - Objects.equals(this.id, genomeFragment.id) && + return Objects.equals(this.id, genomeFragment.id) && + Objects.equals(this.chromosome, genomeFragment.chromosome) && Objects.equals(this.start, genomeFragment.start) && + Objects.equals(this.end, genomeFragment.end) && Objects.equals(this.strand, genomeFragment.strand) && - Objects.equals(this.transcript, genomeFragment.transcript) && - Objects.equals(this.type, genomeFragment.type); + Objects.equals(this.type, genomeFragment.type) && + Objects.equals(this.transcript, genomeFragment.transcript); } @Override public int hashCode() { - return Objects.hash(chromosome, end, id, start, strand, transcript, type); + return Objects.hash(id, chromosome, start, end, strand, type, transcript); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GenomeFragment {\n"); - sb.append(" chromosome: ").append(toIndentedString(chromosome)).append("\n"); - sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" chromosome: ").append(toIndentedString(chromosome)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" strand: ").append(toIndentedString(strand)).append("\n"); - sb.append(" transcript: ").append(toIndentedString(transcript)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" transcript: ").append(toIndentedString(transcript)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApi.java new file mode 100644 index 0000000..123e8fb --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApi.java @@ -0,0 +1,860 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.GenomeFragment; +import org.oncokb.oncokb_curation.client.Pageable; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class GenomeFragmentResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public GenomeFragmentResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public GenomeFragmentResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createGenomeFragment + * @param genomeFragment (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createGenomeFragmentCall(GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = genomeFragment; + + // create path and map variables + String localVarPath = "/api/genome-fragments"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createGenomeFragmentValidateBeforeCall(GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'genomeFragment' is set + if (genomeFragment == null) { + throw new ApiException("Missing the required parameter 'genomeFragment' when calling createGenomeFragment(Async)"); + } + + + okhttp3.Call localVarCall = createGenomeFragmentCall(genomeFragment, _callback); + return localVarCall; + + } + + /** + * + * + * @param genomeFragment (required) + * @return GenomeFragment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GenomeFragment createGenomeFragment(GenomeFragment genomeFragment) throws ApiException { + ApiResponse localVarResp = createGenomeFragmentWithHttpInfo(genomeFragment); + return localVarResp.getData(); + } + + /** + * + * + * @param genomeFragment (required) + * @return ApiResponse<GenomeFragment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createGenomeFragmentWithHttpInfo(GenomeFragment genomeFragment) throws ApiException { + okhttp3.Call localVarCall = createGenomeFragmentValidateBeforeCall(genomeFragment, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param genomeFragment (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createGenomeFragmentAsync(GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createGenomeFragmentValidateBeforeCall(genomeFragment, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteGenomeFragment + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteGenomeFragmentCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/genome-fragments/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteGenomeFragmentValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteGenomeFragment(Async)"); + } + + + okhttp3.Call localVarCall = deleteGenomeFragmentCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteGenomeFragment(Long id) throws ApiException { + deleteGenomeFragmentWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteGenomeFragmentWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteGenomeFragmentValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteGenomeFragmentAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteGenomeFragmentValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllGenomeFragments + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllGenomeFragmentsCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/genome-fragments"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllGenomeFragmentsValidateBeforeCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllGenomeFragments(Async)"); + } + + + okhttp3.Call localVarCall = getAllGenomeFragmentsCall(pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param pageable (required) + * @return List<GenomeFragment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllGenomeFragments(Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllGenomeFragmentsWithHttpInfo(pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param pageable (required) + * @return ApiResponse<List<GenomeFragment>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllGenomeFragmentsWithHttpInfo(Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllGenomeFragmentsValidateBeforeCall(pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllGenomeFragmentsAsync(Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllGenomeFragmentsValidateBeforeCall(pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getGenomeFragment + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGenomeFragmentCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/genome-fragments/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGenomeFragmentValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getGenomeFragment(Async)"); + } + + + okhttp3.Call localVarCall = getGenomeFragmentCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return GenomeFragment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GenomeFragment getGenomeFragment(Long id) throws ApiException { + ApiResponse localVarResp = getGenomeFragmentWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<GenomeFragment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getGenomeFragmentWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getGenomeFragmentValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getGenomeFragmentAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGenomeFragmentValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateGenomeFragment + * @param id (required) + * @param genomeFragment (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateGenomeFragmentCall(Long id, GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = genomeFragment; + + // create path and map variables + String localVarPath = "/api/genome-fragments/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateGenomeFragmentValidateBeforeCall(Long id, GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateGenomeFragment(Async)"); + } + + // verify the required parameter 'genomeFragment' is set + if (genomeFragment == null) { + throw new ApiException("Missing the required parameter 'genomeFragment' when calling partialUpdateGenomeFragment(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateGenomeFragmentCall(id, genomeFragment, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param genomeFragment (required) + * @return GenomeFragment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GenomeFragment partialUpdateGenomeFragment(Long id, GenomeFragment genomeFragment) throws ApiException { + ApiResponse localVarResp = partialUpdateGenomeFragmentWithHttpInfo(id, genomeFragment); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param genomeFragment (required) + * @return ApiResponse<GenomeFragment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateGenomeFragmentWithHttpInfo(Long id, GenomeFragment genomeFragment) throws ApiException { + okhttp3.Call localVarCall = partialUpdateGenomeFragmentValidateBeforeCall(id, genomeFragment, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param genomeFragment (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateGenomeFragmentAsync(Long id, GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateGenomeFragmentValidateBeforeCall(id, genomeFragment, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateGenomeFragment + * @param id (required) + * @param genomeFragment (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGenomeFragmentCall(Long id, GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = genomeFragment; + + // create path and map variables + String localVarPath = "/api/genome-fragments/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateGenomeFragmentValidateBeforeCall(Long id, GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateGenomeFragment(Async)"); + } + + // verify the required parameter 'genomeFragment' is set + if (genomeFragment == null) { + throw new ApiException("Missing the required parameter 'genomeFragment' when calling updateGenomeFragment(Async)"); + } + + + okhttp3.Call localVarCall = updateGenomeFragmentCall(id, genomeFragment, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param genomeFragment (required) + * @return GenomeFragment + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public GenomeFragment updateGenomeFragment(Long id, GenomeFragment genomeFragment) throws ApiException { + ApiResponse localVarResp = updateGenomeFragmentWithHttpInfo(id, genomeFragment); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param genomeFragment (required) + * @return ApiResponse<GenomeFragment> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateGenomeFragmentWithHttpInfo(Long id, GenomeFragment genomeFragment) throws ApiException { + okhttp3.Call localVarCall = updateGenomeFragmentValidateBeforeCall(id, genomeFragment, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param genomeFragment (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateGenomeFragmentAsync(Long id, GenomeFragment genomeFragment, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateGenomeFragmentValidateBeforeCall(id, genomeFragment, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Info.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Info.java new file mode 100644 index 0000000..90ac2f0 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Info.java @@ -0,0 +1,238 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; +import java.io.Serializable; + +/** + * Info + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Info implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + NCIT_VERSION("NCIT_VERSION"), + + GENE_LAST_UPDATED("GENE_LAST_UPDATED"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; + + public static final String SERIALIZED_NAME_LAST_UPDATED = "lastUpdated"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATED) + private OffsetDateTime lastUpdated; + + public Info() { + } + + public Info id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public Info type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + public Info value(String value) { + + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getValue() { + return value; + } + + + public void setValue(String value) { + this.value = value; + } + + + public Info lastUpdated(OffsetDateTime lastUpdated) { + + this.lastUpdated = lastUpdated; + return this; + } + + /** + * Get lastUpdated + * @return lastUpdated + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getLastUpdated() { + return lastUpdated; + } + + + public void setLastUpdated(OffsetDateTime lastUpdated) { + this.lastUpdated = lastUpdated; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Info info = (Info) o; + return Objects.equals(this.id, info.id) && + Objects.equals(this.type, info.type) && + Objects.equals(this.value, info.value) && + Objects.equals(this.lastUpdated, info.lastUpdated); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, value, lastUpdated); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Info {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" lastUpdated: ").append(toIndentedString(lastUpdated)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/InfoResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/InfoResourceApi.java new file mode 100644 index 0000000..4abc07b --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/InfoResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Info; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class InfoResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public InfoResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public InfoResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createInfo + * @param info (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createInfoCall(Info info, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = info; + + // create path and map variables + String localVarPath = "/api/infos"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createInfoValidateBeforeCall(Info info, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'info' is set + if (info == null) { + throw new ApiException("Missing the required parameter 'info' when calling createInfo(Async)"); + } + + + okhttp3.Call localVarCall = createInfoCall(info, _callback); + return localVarCall; + + } + + /** + * + * + * @param info (required) + * @return Info + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Info createInfo(Info info) throws ApiException { + ApiResponse localVarResp = createInfoWithHttpInfo(info); + return localVarResp.getData(); + } + + /** + * + * + * @param info (required) + * @return ApiResponse<Info> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createInfoWithHttpInfo(Info info) throws ApiException { + okhttp3.Call localVarCall = createInfoValidateBeforeCall(info, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param info (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createInfoAsync(Info info, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createInfoValidateBeforeCall(info, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteInfo + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteInfoCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/infos/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteInfoValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteInfo(Async)"); + } + + + okhttp3.Call localVarCall = deleteInfoCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteInfo(Long id) throws ApiException { + deleteInfoWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteInfoWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteInfoValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteInfoAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteInfoValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllInfos + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllInfosCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/infos"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllInfosValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllInfosCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<Info> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllInfos() throws ApiException { + ApiResponse> localVarResp = getAllInfosWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<Info>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllInfosWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllInfosValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllInfosAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllInfosValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getInfo + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getInfoCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/infos/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getInfoValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getInfo(Async)"); + } + + + okhttp3.Call localVarCall = getInfoCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return Info + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Info getInfo(Long id) throws ApiException { + ApiResponse localVarResp = getInfoWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Info> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getInfoWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getInfoValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getInfoAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getInfoValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateInfo + * @param id (required) + * @param info (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateInfoCall(Long id, Info info, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = info; + + // create path and map variables + String localVarPath = "/api/infos/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateInfoValidateBeforeCall(Long id, Info info, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateInfo(Async)"); + } + + // verify the required parameter 'info' is set + if (info == null) { + throw new ApiException("Missing the required parameter 'info' when calling partialUpdateInfo(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateInfoCall(id, info, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param info (required) + * @return Info + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Info partialUpdateInfo(Long id, Info info) throws ApiException { + ApiResponse localVarResp = partialUpdateInfoWithHttpInfo(id, info); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param info (required) + * @return ApiResponse<Info> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateInfoWithHttpInfo(Long id, Info info) throws ApiException { + okhttp3.Call localVarCall = partialUpdateInfoValidateBeforeCall(id, info, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param info (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateInfoAsync(Long id, Info info, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateInfoValidateBeforeCall(id, info, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateInfo + * @param id (required) + * @param info (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateInfoCall(Long id, Info info, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = info; + + // create path and map variables + String localVarPath = "/api/infos/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateInfoValidateBeforeCall(Long id, Info info, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateInfo(Async)"); + } + + // verify the required parameter 'info' is set + if (info == null) { + throw new ApiException("Missing the required parameter 'info' when calling updateInfo(Async)"); + } + + + okhttp3.Call localVarCall = updateInfoCall(id, info, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param info (required) + * @return Info + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Info updateInfo(Long id, Info info) throws ApiException { + ApiResponse localVarResp = updateInfoWithHttpInfo(id, info); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param info (required) + * @return ApiResponse<Info> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateInfoWithHttpInfo(Long id, Info info) throws ApiException { + okhttp3.Call localVarCall = updateInfoValidateBeforeCall(id, info, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param info (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateInfoAsync(Long id, Info info, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateInfoValidateBeforeCall(id, info, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/InstantFilter.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/InstantFilter.java new file mode 100644 index 0000000..b6377b3 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/InstantFilter.java @@ -0,0 +1,354 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; +import java.io.Serializable; + +/** + * InstantFilter + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InstantFilter implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_EQUALS = "equals"; + @SerializedName(SERIALIZED_NAME_EQUALS) + private OffsetDateTime equals; + + public static final String SERIALIZED_NAME_NOT_EQUALS = "notEquals"; + @SerializedName(SERIALIZED_NAME_NOT_EQUALS) + private OffsetDateTime notEquals; + + public static final String SERIALIZED_NAME_SPECIFIED = "specified"; + @SerializedName(SERIALIZED_NAME_SPECIFIED) + private Boolean specified; + + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + private List in = null; + + public static final String SERIALIZED_NAME_NOT_IN = "notIn"; + @SerializedName(SERIALIZED_NAME_NOT_IN) + private List notIn = null; + + public static final String SERIALIZED_NAME_GREATER_THAN = "greaterThan"; + @SerializedName(SERIALIZED_NAME_GREATER_THAN) + private OffsetDateTime greaterThan; + + public static final String SERIALIZED_NAME_LESS_THAN = "lessThan"; + @SerializedName(SERIALIZED_NAME_LESS_THAN) + private OffsetDateTime lessThan; + + public static final String SERIALIZED_NAME_GREATER_THAN_OR_EQUAL = "greaterThanOrEqual"; + @SerializedName(SERIALIZED_NAME_GREATER_THAN_OR_EQUAL) + private OffsetDateTime greaterThanOrEqual; + + public static final String SERIALIZED_NAME_LESS_THAN_OR_EQUAL = "lessThanOrEqual"; + @SerializedName(SERIALIZED_NAME_LESS_THAN_OR_EQUAL) + private OffsetDateTime lessThanOrEqual; + + public InstantFilter() { + } + + public InstantFilter equals(OffsetDateTime equals) { + + this.equals = equals; + return this; + } + + /** + * Get equals + * @return equals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getEquals() { + return equals; + } + + + public void setEquals(OffsetDateTime equals) { + this.equals = equals; + } + + + public InstantFilter notEquals(OffsetDateTime notEquals) { + + this.notEquals = notEquals; + return this; + } + + /** + * Get notEquals + * @return notEquals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getNotEquals() { + return notEquals; + } + + + public void setNotEquals(OffsetDateTime notEquals) { + this.notEquals = notEquals; + } + + + public InstantFilter specified(Boolean specified) { + + this.specified = specified; + return this; + } + + /** + * Get specified + * @return specified + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getSpecified() { + return specified; + } + + + public void setSpecified(Boolean specified) { + this.specified = specified; + } + + + public InstantFilter in(List in) { + + this.in = in; + return this; + } + + public InstantFilter addInItem(OffsetDateTime inItem) { + if (this.in == null) { + this.in = new ArrayList(); + } + this.in.add(inItem); + return this; + } + + /** + * Get in + * @return in + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getIn() { + return in; + } + + + public void setIn(List in) { + this.in = in; + } + + + public InstantFilter notIn(List notIn) { + + this.notIn = notIn; + return this; + } + + public InstantFilter addNotInItem(OffsetDateTime notInItem) { + if (this.notIn == null) { + this.notIn = new ArrayList(); + } + this.notIn.add(notInItem); + return this; + } + + /** + * Get notIn + * @return notIn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getNotIn() { + return notIn; + } + + + public void setNotIn(List notIn) { + this.notIn = notIn; + } + + + public InstantFilter greaterThan(OffsetDateTime greaterThan) { + + this.greaterThan = greaterThan; + return this; + } + + /** + * Get greaterThan + * @return greaterThan + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getGreaterThan() { + return greaterThan; + } + + + public void setGreaterThan(OffsetDateTime greaterThan) { + this.greaterThan = greaterThan; + } + + + public InstantFilter lessThan(OffsetDateTime lessThan) { + + this.lessThan = lessThan; + return this; + } + + /** + * Get lessThan + * @return lessThan + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getLessThan() { + return lessThan; + } + + + public void setLessThan(OffsetDateTime lessThan) { + this.lessThan = lessThan; + } + + + public InstantFilter greaterThanOrEqual(OffsetDateTime greaterThanOrEqual) { + + this.greaterThanOrEqual = greaterThanOrEqual; + return this; + } + + /** + * Get greaterThanOrEqual + * @return greaterThanOrEqual + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getGreaterThanOrEqual() { + return greaterThanOrEqual; + } + + + public void setGreaterThanOrEqual(OffsetDateTime greaterThanOrEqual) { + this.greaterThanOrEqual = greaterThanOrEqual; + } + + + public InstantFilter lessThanOrEqual(OffsetDateTime lessThanOrEqual) { + + this.lessThanOrEqual = lessThanOrEqual; + return this; + } + + /** + * Get lessThanOrEqual + * @return lessThanOrEqual + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getLessThanOrEqual() { + return lessThanOrEqual; + } + + + public void setLessThanOrEqual(OffsetDateTime lessThanOrEqual) { + this.lessThanOrEqual = lessThanOrEqual; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InstantFilter instantFilter = (InstantFilter) o; + return Objects.equals(this.equals, instantFilter.equals) && + Objects.equals(this.notEquals, instantFilter.notEquals) && + Objects.equals(this.specified, instantFilter.specified) && + Objects.equals(this.in, instantFilter.in) && + Objects.equals(this.notIn, instantFilter.notIn) && + Objects.equals(this.greaterThan, instantFilter.greaterThan) && + Objects.equals(this.lessThan, instantFilter.lessThan) && + Objects.equals(this.greaterThanOrEqual, instantFilter.greaterThanOrEqual) && + Objects.equals(this.lessThanOrEqual, instantFilter.lessThanOrEqual); + } + + @Override + public int hashCode() { + return Objects.hash(equals, notEquals, specified, in, notIn, greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InstantFilter {\n"); + sb.append(" equals: ").append(toIndentedString(equals)).append("\n"); + sb.append(" notEquals: ").append(toIndentedString(notEquals)).append("\n"); + sb.append(" specified: ").append(toIndentedString(specified)).append("\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append(" notIn: ").append(toIndentedString(notIn)).append("\n"); + sb.append(" greaterThan: ").append(toIndentedString(greaterThan)).append("\n"); + sb.append(" lessThan: ").append(toIndentedString(lessThan)).append("\n"); + sb.append(" greaterThanOrEqual: ").append(toIndentedString(greaterThanOrEqual)).append("\n"); + sb.append(" lessThanOrEqual: ").append(toIndentedString(lessThanOrEqual)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/IntegerFilter.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/IntegerFilter.java new file mode 100644 index 0000000..425e761 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/IntegerFilter.java @@ -0,0 +1,353 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; + +/** + * IntegerFilter + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class IntegerFilter implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_EQUALS = "equals"; + @SerializedName(SERIALIZED_NAME_EQUALS) + private Integer equals; + + public static final String SERIALIZED_NAME_NOT_EQUALS = "notEquals"; + @SerializedName(SERIALIZED_NAME_NOT_EQUALS) + private Integer notEquals; + + public static final String SERIALIZED_NAME_SPECIFIED = "specified"; + @SerializedName(SERIALIZED_NAME_SPECIFIED) + private Boolean specified; + + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + private List in = null; + + public static final String SERIALIZED_NAME_NOT_IN = "notIn"; + @SerializedName(SERIALIZED_NAME_NOT_IN) + private List notIn = null; + + public static final String SERIALIZED_NAME_GREATER_THAN = "greaterThan"; + @SerializedName(SERIALIZED_NAME_GREATER_THAN) + private Integer greaterThan; + + public static final String SERIALIZED_NAME_LESS_THAN = "lessThan"; + @SerializedName(SERIALIZED_NAME_LESS_THAN) + private Integer lessThan; + + public static final String SERIALIZED_NAME_GREATER_THAN_OR_EQUAL = "greaterThanOrEqual"; + @SerializedName(SERIALIZED_NAME_GREATER_THAN_OR_EQUAL) + private Integer greaterThanOrEqual; + + public static final String SERIALIZED_NAME_LESS_THAN_OR_EQUAL = "lessThanOrEqual"; + @SerializedName(SERIALIZED_NAME_LESS_THAN_OR_EQUAL) + private Integer lessThanOrEqual; + + public IntegerFilter() { + } + + public IntegerFilter equals(Integer equals) { + + this.equals = equals; + return this; + } + + /** + * Get equals + * @return equals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getEquals() { + return equals; + } + + + public void setEquals(Integer equals) { + this.equals = equals; + } + + + public IntegerFilter notEquals(Integer notEquals) { + + this.notEquals = notEquals; + return this; + } + + /** + * Get notEquals + * @return notEquals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getNotEquals() { + return notEquals; + } + + + public void setNotEquals(Integer notEquals) { + this.notEquals = notEquals; + } + + + public IntegerFilter specified(Boolean specified) { + + this.specified = specified; + return this; + } + + /** + * Get specified + * @return specified + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getSpecified() { + return specified; + } + + + public void setSpecified(Boolean specified) { + this.specified = specified; + } + + + public IntegerFilter in(List in) { + + this.in = in; + return this; + } + + public IntegerFilter addInItem(Integer inItem) { + if (this.in == null) { + this.in = new ArrayList(); + } + this.in.add(inItem); + return this; + } + + /** + * Get in + * @return in + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getIn() { + return in; + } + + + public void setIn(List in) { + this.in = in; + } + + + public IntegerFilter notIn(List notIn) { + + this.notIn = notIn; + return this; + } + + public IntegerFilter addNotInItem(Integer notInItem) { + if (this.notIn == null) { + this.notIn = new ArrayList(); + } + this.notIn.add(notInItem); + return this; + } + + /** + * Get notIn + * @return notIn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getNotIn() { + return notIn; + } + + + public void setNotIn(List notIn) { + this.notIn = notIn; + } + + + public IntegerFilter greaterThan(Integer greaterThan) { + + this.greaterThan = greaterThan; + return this; + } + + /** + * Get greaterThan + * @return greaterThan + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getGreaterThan() { + return greaterThan; + } + + + public void setGreaterThan(Integer greaterThan) { + this.greaterThan = greaterThan; + } + + + public IntegerFilter lessThan(Integer lessThan) { + + this.lessThan = lessThan; + return this; + } + + /** + * Get lessThan + * @return lessThan + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getLessThan() { + return lessThan; + } + + + public void setLessThan(Integer lessThan) { + this.lessThan = lessThan; + } + + + public IntegerFilter greaterThanOrEqual(Integer greaterThanOrEqual) { + + this.greaterThanOrEqual = greaterThanOrEqual; + return this; + } + + /** + * Get greaterThanOrEqual + * @return greaterThanOrEqual + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getGreaterThanOrEqual() { + return greaterThanOrEqual; + } + + + public void setGreaterThanOrEqual(Integer greaterThanOrEqual) { + this.greaterThanOrEqual = greaterThanOrEqual; + } + + + public IntegerFilter lessThanOrEqual(Integer lessThanOrEqual) { + + this.lessThanOrEqual = lessThanOrEqual; + return this; + } + + /** + * Get lessThanOrEqual + * @return lessThanOrEqual + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getLessThanOrEqual() { + return lessThanOrEqual; + } + + + public void setLessThanOrEqual(Integer lessThanOrEqual) { + this.lessThanOrEqual = lessThanOrEqual; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IntegerFilter integerFilter = (IntegerFilter) o; + return Objects.equals(this.equals, integerFilter.equals) && + Objects.equals(this.notEquals, integerFilter.notEquals) && + Objects.equals(this.specified, integerFilter.specified) && + Objects.equals(this.in, integerFilter.in) && + Objects.equals(this.notIn, integerFilter.notIn) && + Objects.equals(this.greaterThan, integerFilter.greaterThan) && + Objects.equals(this.lessThan, integerFilter.lessThan) && + Objects.equals(this.greaterThanOrEqual, integerFilter.greaterThanOrEqual) && + Objects.equals(this.lessThanOrEqual, integerFilter.lessThanOrEqual); + } + + @Override + public int hashCode() { + return Objects.hash(equals, notEquals, specified, in, notIn, greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IntegerFilter {\n"); + sb.append(" equals: ").append(toIndentedString(equals)).append("\n"); + sb.append(" notEquals: ").append(toIndentedString(notEquals)).append("\n"); + sb.append(" specified: ").append(toIndentedString(specified)).append("\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append(" notIn: ").append(toIndentedString(notIn)).append("\n"); + sb.append(" greaterThan: ").append(toIndentedString(greaterThan)).append("\n"); + sb.append(" lessThan: ").append(toIndentedString(lessThan)).append("\n"); + sb.append(" greaterThanOrEqual: ").append(toIndentedString(greaterThanOrEqual)).append("\n"); + sb.append(" lessThanOrEqual: ").append(toIndentedString(lessThanOrEqual)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/LogoutResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/LogoutResourceApi.java new file mode 100644 index 0000000..4ad9ec3 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/LogoutResourceApi.java @@ -0,0 +1,192 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class LogoutResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public LogoutResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public LogoutResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for logout + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call logoutCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/logout"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call logoutValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = logoutCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Object logout() throws ApiException { + ApiResponse localVarResp = logoutWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse logoutWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = logoutValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call logoutAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = logoutValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/LongFilter.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/LongFilter.java new file mode 100644 index 0000000..96d33ad --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/LongFilter.java @@ -0,0 +1,353 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; + +/** + * LongFilter + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class LongFilter implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_EQUALS = "equals"; + @SerializedName(SERIALIZED_NAME_EQUALS) + private Long equals; + + public static final String SERIALIZED_NAME_NOT_EQUALS = "notEquals"; + @SerializedName(SERIALIZED_NAME_NOT_EQUALS) + private Long notEquals; + + public static final String SERIALIZED_NAME_SPECIFIED = "specified"; + @SerializedName(SERIALIZED_NAME_SPECIFIED) + private Boolean specified; + + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + private List in = null; + + public static final String SERIALIZED_NAME_NOT_IN = "notIn"; + @SerializedName(SERIALIZED_NAME_NOT_IN) + private List notIn = null; + + public static final String SERIALIZED_NAME_GREATER_THAN = "greaterThan"; + @SerializedName(SERIALIZED_NAME_GREATER_THAN) + private Long greaterThan; + + public static final String SERIALIZED_NAME_LESS_THAN = "lessThan"; + @SerializedName(SERIALIZED_NAME_LESS_THAN) + private Long lessThan; + + public static final String SERIALIZED_NAME_GREATER_THAN_OR_EQUAL = "greaterThanOrEqual"; + @SerializedName(SERIALIZED_NAME_GREATER_THAN_OR_EQUAL) + private Long greaterThanOrEqual; + + public static final String SERIALIZED_NAME_LESS_THAN_OR_EQUAL = "lessThanOrEqual"; + @SerializedName(SERIALIZED_NAME_LESS_THAN_OR_EQUAL) + private Long lessThanOrEqual; + + public LongFilter() { + } + + public LongFilter equals(Long equals) { + + this.equals = equals; + return this; + } + + /** + * Get equals + * @return equals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getEquals() { + return equals; + } + + + public void setEquals(Long equals) { + this.equals = equals; + } + + + public LongFilter notEquals(Long notEquals) { + + this.notEquals = notEquals; + return this; + } + + /** + * Get notEquals + * @return notEquals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getNotEquals() { + return notEquals; + } + + + public void setNotEquals(Long notEquals) { + this.notEquals = notEquals; + } + + + public LongFilter specified(Boolean specified) { + + this.specified = specified; + return this; + } + + /** + * Get specified + * @return specified + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getSpecified() { + return specified; + } + + + public void setSpecified(Boolean specified) { + this.specified = specified; + } + + + public LongFilter in(List in) { + + this.in = in; + return this; + } + + public LongFilter addInItem(Long inItem) { + if (this.in == null) { + this.in = new ArrayList(); + } + this.in.add(inItem); + return this; + } + + /** + * Get in + * @return in + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getIn() { + return in; + } + + + public void setIn(List in) { + this.in = in; + } + + + public LongFilter notIn(List notIn) { + + this.notIn = notIn; + return this; + } + + public LongFilter addNotInItem(Long notInItem) { + if (this.notIn == null) { + this.notIn = new ArrayList(); + } + this.notIn.add(notInItem); + return this; + } + + /** + * Get notIn + * @return notIn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getNotIn() { + return notIn; + } + + + public void setNotIn(List notIn) { + this.notIn = notIn; + } + + + public LongFilter greaterThan(Long greaterThan) { + + this.greaterThan = greaterThan; + return this; + } + + /** + * Get greaterThan + * @return greaterThan + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getGreaterThan() { + return greaterThan; + } + + + public void setGreaterThan(Long greaterThan) { + this.greaterThan = greaterThan; + } + + + public LongFilter lessThan(Long lessThan) { + + this.lessThan = lessThan; + return this; + } + + /** + * Get lessThan + * @return lessThan + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getLessThan() { + return lessThan; + } + + + public void setLessThan(Long lessThan) { + this.lessThan = lessThan; + } + + + public LongFilter greaterThanOrEqual(Long greaterThanOrEqual) { + + this.greaterThanOrEqual = greaterThanOrEqual; + return this; + } + + /** + * Get greaterThanOrEqual + * @return greaterThanOrEqual + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getGreaterThanOrEqual() { + return greaterThanOrEqual; + } + + + public void setGreaterThanOrEqual(Long greaterThanOrEqual) { + this.greaterThanOrEqual = greaterThanOrEqual; + } + + + public LongFilter lessThanOrEqual(Long lessThanOrEqual) { + + this.lessThanOrEqual = lessThanOrEqual; + return this; + } + + /** + * Get lessThanOrEqual + * @return lessThanOrEqual + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getLessThanOrEqual() { + return lessThanOrEqual; + } + + + public void setLessThanOrEqual(Long lessThanOrEqual) { + this.lessThanOrEqual = lessThanOrEqual; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LongFilter longFilter = (LongFilter) o; + return Objects.equals(this.equals, longFilter.equals) && + Objects.equals(this.notEquals, longFilter.notEquals) && + Objects.equals(this.specified, longFilter.specified) && + Objects.equals(this.in, longFilter.in) && + Objects.equals(this.notIn, longFilter.notIn) && + Objects.equals(this.greaterThan, longFilter.greaterThan) && + Objects.equals(this.lessThan, longFilter.lessThan) && + Objects.equals(this.greaterThanOrEqual, longFilter.greaterThanOrEqual) && + Objects.equals(this.lessThanOrEqual, longFilter.lessThanOrEqual); + } + + @Override + public int hashCode() { + return Objects.hash(equals, notEquals, specified, in, notIn, greaterThan, lessThan, greaterThanOrEqual, lessThanOrEqual); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LongFilter {\n"); + sb.append(" equals: ").append(toIndentedString(equals)).append("\n"); + sb.append(" notEquals: ").append(toIndentedString(notEquals)).append("\n"); + sb.append(" specified: ").append(toIndentedString(specified)).append("\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append(" notIn: ").append(toIndentedString(notIn)).append("\n"); + sb.append(" greaterThan: ").append(toIndentedString(greaterThan)).append("\n"); + sb.append(" lessThan: ").append(toIndentedString(lessThan)).append("\n"); + sb.append(" greaterThanOrEqual: ").append(toIndentedString(greaterThanOrEqual)).append("\n"); + sb.append(" lessThanOrEqual: ").append(toIndentedString(lessThanOrEqual)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/MatchTranscriptVM.java similarity index 89% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVM.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/MatchTranscriptVM.java index 34559db..bfd6ec1 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVM.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/MatchTranscriptVM.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.TranscriptPairVM; +import org.oncokb.oncokb_curation.client.TranscriptPairVM; import java.io.Serializable; /** @@ -33,6 +33,10 @@ public class MatchTranscriptVM implements Serializable { private static final long serialVersionUID = 1L; + public static final String SERIALIZED_NAME_TRANSCRIPT = "transcript"; + @SerializedName(SERIALIZED_NAME_TRANSCRIPT) + private TranscriptPairVM transcript; + /** * Gets or Sets targetReferenceGenome */ @@ -84,56 +88,52 @@ public TargetReferenceGenomeEnum read(final JsonReader jsonReader) throws IOExce @SerializedName(SERIALIZED_NAME_TARGET_REFERENCE_GENOME) private TargetReferenceGenomeEnum targetReferenceGenome; - public static final String SERIALIZED_NAME_TRANSCRIPT = "transcript"; - @SerializedName(SERIALIZED_NAME_TRANSCRIPT) - private TranscriptPairVM transcript; - public MatchTranscriptVM() { } - public MatchTranscriptVM targetReferenceGenome(TargetReferenceGenomeEnum targetReferenceGenome) { + public MatchTranscriptVM transcript(TranscriptPairVM transcript) { - this.targetReferenceGenome = targetReferenceGenome; + this.transcript = transcript; return this; } /** - * Get targetReferenceGenome - * @return targetReferenceGenome + * Get transcript + * @return transcript **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public TargetReferenceGenomeEnum getTargetReferenceGenome() { - return targetReferenceGenome; + public TranscriptPairVM getTranscript() { + return transcript; } - public void setTargetReferenceGenome(TargetReferenceGenomeEnum targetReferenceGenome) { - this.targetReferenceGenome = targetReferenceGenome; + public void setTranscript(TranscriptPairVM transcript) { + this.transcript = transcript; } - public MatchTranscriptVM transcript(TranscriptPairVM transcript) { + public MatchTranscriptVM targetReferenceGenome(TargetReferenceGenomeEnum targetReferenceGenome) { - this.transcript = transcript; + this.targetReferenceGenome = targetReferenceGenome; return this; } /** - * Get transcript - * @return transcript + * Get targetReferenceGenome + * @return targetReferenceGenome **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public TranscriptPairVM getTranscript() { - return transcript; + public TargetReferenceGenomeEnum getTargetReferenceGenome() { + return targetReferenceGenome; } - public void setTranscript(TranscriptPairVM transcript) { - this.transcript = transcript; + public void setTargetReferenceGenome(TargetReferenceGenomeEnum targetReferenceGenome) { + this.targetReferenceGenome = targetReferenceGenome; } @@ -146,21 +146,21 @@ public boolean equals(Object o) { return false; } MatchTranscriptVM matchTranscriptVM = (MatchTranscriptVM) o; - return Objects.equals(this.targetReferenceGenome, matchTranscriptVM.targetReferenceGenome) && - Objects.equals(this.transcript, matchTranscriptVM.transcript); + return Objects.equals(this.transcript, matchTranscriptVM.transcript) && + Objects.equals(this.targetReferenceGenome, matchTranscriptVM.targetReferenceGenome); } @Override public int hashCode() { - return Objects.hash(targetReferenceGenome, transcript); + return Objects.hash(transcript, targetReferenceGenome); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MatchTranscriptVM {\n"); - sb.append(" targetReferenceGenome: ").append(toIndentedString(targetReferenceGenome)).append("\n"); sb.append(" transcript: ").append(toIndentedString(transcript)).append("\n"); + sb.append(" targetReferenceGenome: ").append(toIndentedString(targetReferenceGenome)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Pageable.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Pageable.java new file mode 100644 index 0000000..c1ccee7 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Pageable.java @@ -0,0 +1,173 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; + +/** + * Pageable + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Pageable implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_PAGE = "page"; + @SerializedName(SERIALIZED_NAME_PAGE) + private Integer page; + + public static final String SERIALIZED_NAME_SIZE = "size"; + @SerializedName(SERIALIZED_NAME_SIZE) + private Integer size; + + public static final String SERIALIZED_NAME_SORT = "sort"; + @SerializedName(SERIALIZED_NAME_SORT) + private List sort = null; + + public Pageable() { + } + + public Pageable page(Integer page) { + + this.page = page; + return this; + } + + /** + * Get page + * minimum: 0 + * @return page + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getPage() { + return page; + } + + + public void setPage(Integer page) { + this.page = page; + } + + + public Pageable size(Integer size) { + + this.size = size; + return this; + } + + /** + * Get size + * minimum: 1 + * @return size + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getSize() { + return size; + } + + + public void setSize(Integer size) { + this.size = size; + } + + + public Pageable sort(List sort) { + + this.sort = sort; + return this; + } + + public Pageable addSortItem(String sortItem) { + if (this.sort == null) { + this.sort = new ArrayList(); + } + this.sort.add(sortItem); + return this; + } + + /** + * Get sort + * @return sort + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getSort() { + return sort; + } + + + public void setSort(List sort) { + this.sort = sort; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Pageable pageable = (Pageable) o; + return Objects.equals(this.page, pageable.page) && + Objects.equals(this.size, pageable.size) && + Objects.equals(this.sort, pageable.sort); + } + + @Override + public int hashCode() { + return Objects.hash(page, size, sort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Pageable {\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/PfamDomainRange.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/PfamDomainRange.java similarity index 81% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/PfamDomainRange.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/PfamDomainRange.java index 94d460c..6a584e4 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/PfamDomainRange.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/PfamDomainRange.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -32,10 +32,6 @@ public class PfamDomainRange implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_PFAM_DOMAIN_END = "pfamDomainEnd"; - @SerializedName(SERIALIZED_NAME_PFAM_DOMAIN_END) - private Integer pfamDomainEnd; - public static final String SERIALIZED_NAME_PFAM_DOMAIN_ID = "pfamDomainId"; @SerializedName(SERIALIZED_NAME_PFAM_DOMAIN_ID) private String pfamDomainId; @@ -44,32 +40,13 @@ public class PfamDomainRange implements Serializable { @SerializedName(SERIALIZED_NAME_PFAM_DOMAIN_START) private Integer pfamDomainStart; - public PfamDomainRange() { - } - - public PfamDomainRange pfamDomainEnd(Integer pfamDomainEnd) { - - this.pfamDomainEnd = pfamDomainEnd; - return this; - } - - /** - * Pfam domain end amino acid - * @return pfamDomainEnd - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Pfam domain end amino acid") - - public Integer getPfamDomainEnd() { - return pfamDomainEnd; - } - + public static final String SERIALIZED_NAME_PFAM_DOMAIN_END = "pfamDomainEnd"; + @SerializedName(SERIALIZED_NAME_PFAM_DOMAIN_END) + private Integer pfamDomainEnd; - public void setPfamDomainEnd(Integer pfamDomainEnd) { - this.pfamDomainEnd = pfamDomainEnd; + public PfamDomainRange() { } - public PfamDomainRange pfamDomainId(String pfamDomainId) { this.pfamDomainId = pfamDomainId; @@ -77,11 +54,11 @@ public PfamDomainRange pfamDomainId(String pfamDomainId) { } /** - * Pfam domain id + * Get pfamDomainId * @return pfamDomainId **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Pfam domain id") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public String getPfamDomainId() { return pfamDomainId; @@ -100,11 +77,11 @@ public PfamDomainRange pfamDomainStart(Integer pfamDomainStart) { } /** - * Pfam domain start amino acid + * Get pfamDomainStart * @return pfamDomainStart **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Pfam domain start amino acid") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Integer getPfamDomainStart() { return pfamDomainStart; @@ -116,6 +93,29 @@ public void setPfamDomainStart(Integer pfamDomainStart) { } + public PfamDomainRange pfamDomainEnd(Integer pfamDomainEnd) { + + this.pfamDomainEnd = pfamDomainEnd; + return this; + } + + /** + * Get pfamDomainEnd + * @return pfamDomainEnd + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Integer getPfamDomainEnd() { + return pfamDomainEnd; + } + + + public void setPfamDomainEnd(Integer pfamDomainEnd) { + this.pfamDomainEnd = pfamDomainEnd; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -125,23 +125,23 @@ public boolean equals(Object o) { return false; } PfamDomainRange pfamDomainRange = (PfamDomainRange) o; - return Objects.equals(this.pfamDomainEnd, pfamDomainRange.pfamDomainEnd) && - Objects.equals(this.pfamDomainId, pfamDomainRange.pfamDomainId) && - Objects.equals(this.pfamDomainStart, pfamDomainRange.pfamDomainStart); + return Objects.equals(this.pfamDomainId, pfamDomainRange.pfamDomainId) && + Objects.equals(this.pfamDomainStart, pfamDomainRange.pfamDomainStart) && + Objects.equals(this.pfamDomainEnd, pfamDomainRange.pfamDomainEnd); } @Override public int hashCode() { - return Objects.hash(pfamDomainEnd, pfamDomainId, pfamDomainStart); + return Objects.hash(pfamDomainId, pfamDomainStart, pfamDomainEnd); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PfamDomainRange {\n"); - sb.append(" pfamDomainEnd: ").append(toIndentedString(pfamDomainEnd)).append("\n"); sb.append(" pfamDomainId: ").append(toIndentedString(pfamDomainId)).append("\n"); sb.append(" pfamDomainStart: ").append(toIndentedString(pfamDomainStart)).append("\n"); + sb.append(" pfamDomainEnd: ").append(toIndentedString(pfamDomainEnd)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/PipelineControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/PipelineControllerApi.java similarity index 65% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/PipelineControllerApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/PipelineControllerApi.java index 7257087..dcf08e6 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/PipelineControllerApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/PipelineControllerApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,16 +11,16 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; @@ -72,7 +72,7 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for updateNcitUsingPOST + * Build call for updateNcit * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -80,13 +80,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call updateNcitUsingPOSTCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNcitCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -128,39 +124,35 @@ public okhttp3.Call updateNcitUsingPOSTCall(final ApiCallback _callback) throws localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updateNcitUsingPOSTValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call updateNcitValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateNcitUsingPOSTCall(_callback); + okhttp3.Call localVarCall = updateNcitCall(_callback); return localVarCall; } /** - * updateNcit + * * * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public void updateNcitUsingPOST() throws ApiException { - updateNcitUsingPOSTWithHttpInfo(); + public void updateNcit() throws ApiException { + updateNcitWithHttpInfo(); } /** - * updateNcit + * * * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -168,19 +160,15 @@ public void updateNcitUsingPOST() throws ApiException { - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse updateNcitUsingPOSTWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = updateNcitUsingPOSTValidateBeforeCall(null); + public ApiResponse updateNcitWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = updateNcitValidateBeforeCall(null); return localVarApiClient.execute(localVarCall); } /** - * updateNcit (asynchronously) + * (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -189,20 +177,16 @@ public ApiResponse updateNcitUsingPOSTWithHttpInfo() throws ApiException { - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call updateNcitUsingPOSTAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call updateNcitAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updateNcitUsingPOSTValidateBeforeCall(_callback); + okhttp3.Call localVarCall = updateNcitValidateBeforeCall(_callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for updatePortalGeneUsingPOST + * Build call for updatePortalGene * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -210,13 +194,9 @@ public okhttp3.Call updateNcitUsingPOSTAsync(final ApiCallback _callback) - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call updatePortalGeneUsingPOSTCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePortalGeneCall(final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -258,39 +238,35 @@ public okhttp3.Call updatePortalGeneUsingPOSTCall(final ApiCallback _callback) t localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call updatePortalGeneUsingPOSTValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call updatePortalGeneValidateBeforeCall(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updatePortalGeneUsingPOSTCall(_callback); + okhttp3.Call localVarCall = updatePortalGeneCall(_callback); return localVarCall; } /** - * updatePortalGene + * * * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public void updatePortalGeneUsingPOST() throws ApiException { - updatePortalGeneUsingPOSTWithHttpInfo(); + public void updatePortalGene() throws ApiException { + updatePortalGeneWithHttpInfo(); } /** - * updatePortalGene + * * * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -298,19 +274,15 @@ public void updatePortalGeneUsingPOST() throws ApiException { - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse updatePortalGeneUsingPOSTWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = updatePortalGeneUsingPOSTValidateBeforeCall(null); + public ApiResponse updatePortalGeneWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = updatePortalGeneValidateBeforeCall(null); return localVarApiClient.execute(localVarCall); } /** - * updatePortalGene (asynchronously) + * (asynchronously) * * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -319,15 +291,11 @@ public ApiResponse updatePortalGeneUsingPOSTWithHttpInfo() throws ApiExcep - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call updatePortalGeneUsingPOSTAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call updatePortalGeneAsync(final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = updatePortalGeneUsingPOSTValidateBeforeCall(_callback); + okhttp3.Call localVarCall = updatePortalGeneValidateBeforeCall(_callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SearchControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SearchControllerApi.java new file mode 100644 index 0000000..daba86d --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SearchControllerApi.java @@ -0,0 +1,206 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.SearchResultDTO; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SearchControllerApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SearchControllerApi() { + this(Configuration.getDefaultApiClient()); + } + + public SearchControllerApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for search + * @param query (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchCall(String query, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/_search/all"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (query != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call searchValidateBeforeCall(String query, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'query' is set + if (query == null) { + throw new ApiException("Missing the required parameter 'query' when calling search(Async)"); + } + + + okhttp3.Call localVarCall = searchCall(query, _callback); + return localVarCall; + + } + + /** + * + * + * @param query (required) + * @return SearchResultDTO + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public SearchResultDTO search(String query) throws ApiException { + ApiResponse localVarResp = searchWithHttpInfo(query); + return localVarResp.getData(); + } + + /** + * + * + * @param query (required) + * @return ApiResponse<SearchResultDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse searchWithHttpInfo(String query) throws ApiException { + okhttp3.Call localVarCall = searchValidateBeforeCall(query, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param query (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call searchAsync(String query, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = searchValidateBeforeCall(query, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SearchResultDTO.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SearchResultDTO.java new file mode 100644 index 0000000..341291d --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SearchResultDTO.java @@ -0,0 +1,304 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.oncokb.oncokb_curation.client.Alteration; +import org.oncokb.oncokb_curation.client.Article; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import org.oncokb.oncokb_curation.client.Drug; +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.Gene; +import java.io.Serializable; + +/** + * SearchResultDTO + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SearchResultDTO implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_FDA_SUBMISSIONS = "fdaSubmissions"; + @SerializedName(SERIALIZED_NAME_FDA_SUBMISSIONS) + private List fdaSubmissions = null; + + public static final String SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICES = "companionDiagnosticDevices"; + @SerializedName(SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICES) + private List companionDiagnosticDevices = null; + + public static final String SERIALIZED_NAME_ARTICLES = "articles"; + @SerializedName(SERIALIZED_NAME_ARTICLES) + private List
articles = null; + + public static final String SERIALIZED_NAME_DRUGS = "drugs"; + @SerializedName(SERIALIZED_NAME_DRUGS) + private List drugs = null; + + public static final String SERIALIZED_NAME_GENES = "genes"; + @SerializedName(SERIALIZED_NAME_GENES) + private List genes = null; + + public static final String SERIALIZED_NAME_ALTERATIONS = "alterations"; + @SerializedName(SERIALIZED_NAME_ALTERATIONS) + private List alterations = null; + + public SearchResultDTO() { + } + + public SearchResultDTO fdaSubmissions(List fdaSubmissions) { + + this.fdaSubmissions = fdaSubmissions; + return this; + } + + public SearchResultDTO addFdaSubmissionsItem(FdaSubmission fdaSubmissionsItem) { + if (this.fdaSubmissions == null) { + this.fdaSubmissions = new ArrayList(); + } + this.fdaSubmissions.add(fdaSubmissionsItem); + return this; + } + + /** + * Get fdaSubmissions + * @return fdaSubmissions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getFdaSubmissions() { + return fdaSubmissions; + } + + + public void setFdaSubmissions(List fdaSubmissions) { + this.fdaSubmissions = fdaSubmissions; + } + + + public SearchResultDTO companionDiagnosticDevices(List companionDiagnosticDevices) { + + this.companionDiagnosticDevices = companionDiagnosticDevices; + return this; + } + + public SearchResultDTO addCompanionDiagnosticDevicesItem(CompanionDiagnosticDevice companionDiagnosticDevicesItem) { + if (this.companionDiagnosticDevices == null) { + this.companionDiagnosticDevices = new ArrayList(); + } + this.companionDiagnosticDevices.add(companionDiagnosticDevicesItem); + return this; + } + + /** + * Get companionDiagnosticDevices + * @return companionDiagnosticDevices + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getCompanionDiagnosticDevices() { + return companionDiagnosticDevices; + } + + + public void setCompanionDiagnosticDevices(List companionDiagnosticDevices) { + this.companionDiagnosticDevices = companionDiagnosticDevices; + } + + + public SearchResultDTO articles(List
articles) { + + this.articles = articles; + return this; + } + + public SearchResultDTO addArticlesItem(Article articlesItem) { + if (this.articles == null) { + this.articles = new ArrayList
(); + } + this.articles.add(articlesItem); + return this; + } + + /** + * Get articles + * @return articles + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List
getArticles() { + return articles; + } + + + public void setArticles(List
articles) { + this.articles = articles; + } + + + public SearchResultDTO drugs(List drugs) { + + this.drugs = drugs; + return this; + } + + public SearchResultDTO addDrugsItem(Drug drugsItem) { + if (this.drugs == null) { + this.drugs = new ArrayList(); + } + this.drugs.add(drugsItem); + return this; + } + + /** + * Get drugs + * @return drugs + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getDrugs() { + return drugs; + } + + + public void setDrugs(List drugs) { + this.drugs = drugs; + } + + + public SearchResultDTO genes(List genes) { + + this.genes = genes; + return this; + } + + public SearchResultDTO addGenesItem(Gene genesItem) { + if (this.genes == null) { + this.genes = new ArrayList(); + } + this.genes.add(genesItem); + return this; + } + + /** + * Get genes + * @return genes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getGenes() { + return genes; + } + + + public void setGenes(List genes) { + this.genes = genes; + } + + + public SearchResultDTO alterations(List alterations) { + + this.alterations = alterations; + return this; + } + + public SearchResultDTO addAlterationsItem(Alteration alterationsItem) { + if (this.alterations == null) { + this.alterations = new ArrayList(); + } + this.alterations.add(alterationsItem); + return this; + } + + /** + * Get alterations + * @return alterations + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getAlterations() { + return alterations; + } + + + public void setAlterations(List alterations) { + this.alterations = alterations; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchResultDTO searchResultDTO = (SearchResultDTO) o; + return Objects.equals(this.fdaSubmissions, searchResultDTO.fdaSubmissions) && + Objects.equals(this.companionDiagnosticDevices, searchResultDTO.companionDiagnosticDevices) && + Objects.equals(this.articles, searchResultDTO.articles) && + Objects.equals(this.drugs, searchResultDTO.drugs) && + Objects.equals(this.genes, searchResultDTO.genes) && + Objects.equals(this.alterations, searchResultDTO.alterations); + } + + @Override + public int hashCode() { + return Objects.hash(fdaSubmissions, companionDiagnosticDevices, articles, drugs, genes, alterations); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchResultDTO {\n"); + sb.append(" fdaSubmissions: ").append(toIndentedString(fdaSubmissions)).append("\n"); + sb.append(" companionDiagnosticDevices: ").append(toIndentedString(companionDiagnosticDevices)).append("\n"); + sb.append(" articles: ").append(toIndentedString(articles)).append("\n"); + sb.append(" drugs: ").append(toIndentedString(drugs)).append("\n"); + sb.append(" genes: ").append(toIndentedString(genes)).append("\n"); + sb.append(" alterations: ").append(toIndentedString(alterations)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Sequence.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Sequence.java similarity index 93% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Sequence.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Sequence.java index 46661ce..cf14654 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Sequence.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Sequence.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Transcript; +import org.oncokb.oncokb_curation.client.Transcript; import java.io.Serializable; /** @@ -37,18 +37,14 @@ public class Sequence implements Serializable { @SerializedName(SERIALIZED_NAME_ID) private Long id; - public static final String SERIALIZED_NAME_SEQUENCE = "sequence"; - @SerializedName(SERIALIZED_NAME_SEQUENCE) - private String sequence; - /** * Gets or Sets sequenceType */ @JsonAdapter(SequenceTypeEnum.Adapter.class) public enum SequenceTypeEnum { - CDNA("CDNA"), + PROTEIN("PROTEIN"), - PROTEIN("PROTEIN"); + CDNA("CDNA"); private String value; @@ -92,6 +88,10 @@ public SequenceTypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_SEQUENCE_TYPE) private SequenceTypeEnum sequenceType; + public static final String SERIALIZED_NAME_SEQUENCE = "sequence"; + @SerializedName(SERIALIZED_NAME_SEQUENCE) + private String sequence; + public static final String SERIALIZED_NAME_TRANSCRIPT = "transcript"; @SerializedName(SERIALIZED_NAME_TRANSCRIPT) private Transcript transcript; @@ -122,49 +122,49 @@ public void setId(Long id) { } - public Sequence sequence(String sequence) { + public Sequence sequenceType(SequenceTypeEnum sequenceType) { - this.sequence = sequence; + this.sequenceType = sequenceType; return this; } /** - * Get sequence - * @return sequence + * Get sequenceType + * @return sequenceType **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getSequence() { - return sequence; + public SequenceTypeEnum getSequenceType() { + return sequenceType; } - public void setSequence(String sequence) { - this.sequence = sequence; + public void setSequenceType(SequenceTypeEnum sequenceType) { + this.sequenceType = sequenceType; } - public Sequence sequenceType(SequenceTypeEnum sequenceType) { + public Sequence sequence(String sequence) { - this.sequenceType = sequenceType; + this.sequence = sequence; return this; } /** - * Get sequenceType - * @return sequenceType + * Get sequence + * @return sequence **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public SequenceTypeEnum getSequenceType() { - return sequenceType; + public String getSequence() { + return sequence; } - public void setSequenceType(SequenceTypeEnum sequenceType) { - this.sequenceType = sequenceType; + public void setSequence(String sequence) { + this.sequence = sequence; } @@ -201,14 +201,14 @@ public boolean equals(Object o) { } Sequence sequence = (Sequence) o; return Objects.equals(this.id, sequence.id) && - Objects.equals(this.sequence, sequence.sequence) && Objects.equals(this.sequenceType, sequence.sequenceType) && + Objects.equals(this.sequence, sequence.sequence) && Objects.equals(this.transcript, sequence.transcript); } @Override public int hashCode() { - return Objects.hash(id, sequence, sequenceType, transcript); + return Objects.hash(id, sequenceType, sequence, transcript); } @Override @@ -216,8 +216,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Sequence {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" sequence: ").append(toIndentedString(sequence)).append("\n"); sb.append(" sequenceType: ").append(toIndentedString(sequenceType)).append("\n"); + sb.append(" sequence: ").append(toIndentedString(sequence)).append("\n"); sb.append(" transcript: ").append(toIndentedString(transcript)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/SequenceControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SequenceControllerApi.java similarity index 60% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/SequenceControllerApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SequenceControllerApi.java index 409647f..074b82c 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/SequenceControllerApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SequenceControllerApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,23 +11,23 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Sequence; +import org.oncokb.oncokb_curation.client.Sequence; import java.lang.reflect.Type; import java.util.ArrayList; @@ -73,10 +73,10 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for findCanonicalSequenceUsingGET - * @param referenceGenome referenceGenome (required) - * @param entrezGeneId entrezGeneId (required) - * @param sequenceType sequenceType (optional) + * Build call for findCanonicalSequence + * @param referenceGenome (required) + * @param entrezGeneId (required) + * @param sequenceType (optional, default to PROTEIN) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -84,12 +84,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findCanonicalSequenceUsingGETCall(String referenceGenome, Integer entrezGeneId, String sequenceType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findCanonicalSequenceCall(String referenceGenome, Integer entrezGeneId, String sequenceType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -143,80 +140,74 @@ public okhttp3.Call findCanonicalSequenceUsingGETCall(String referenceGenome, In localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call findCanonicalSequenceUsingGETValidateBeforeCall(String referenceGenome, Integer entrezGeneId, String sequenceType, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findCanonicalSequenceValidateBeforeCall(String referenceGenome, Integer entrezGeneId, String sequenceType, final ApiCallback _callback) throws ApiException { // verify the required parameter 'referenceGenome' is set if (referenceGenome == null) { - throw new ApiException("Missing the required parameter 'referenceGenome' when calling findCanonicalSequenceUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'referenceGenome' when calling findCanonicalSequence(Async)"); } // verify the required parameter 'entrezGeneId' is set if (entrezGeneId == null) { - throw new ApiException("Missing the required parameter 'entrezGeneId' when calling findCanonicalSequenceUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'entrezGeneId' when calling findCanonicalSequence(Async)"); } - okhttp3.Call localVarCall = findCanonicalSequenceUsingGETCall(referenceGenome, entrezGeneId, sequenceType, _callback); + okhttp3.Call localVarCall = findCanonicalSequenceCall(referenceGenome, entrezGeneId, sequenceType, _callback); return localVarCall; } /** - * findCanonicalSequence * - * @param referenceGenome referenceGenome (required) - * @param entrezGeneId entrezGeneId (required) - * @param sequenceType sequenceType (optional) + * + * @param referenceGenome (required) + * @param entrezGeneId (required) + * @param sequenceType (optional, default to PROTEIN) * @return Sequence * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public Sequence findCanonicalSequenceUsingGET(String referenceGenome, Integer entrezGeneId, String sequenceType) throws ApiException { - ApiResponse localVarResp = findCanonicalSequenceUsingGETWithHttpInfo(referenceGenome, entrezGeneId, sequenceType); + public Sequence findCanonicalSequence(String referenceGenome, Integer entrezGeneId, String sequenceType) throws ApiException { + ApiResponse localVarResp = findCanonicalSequenceWithHttpInfo(referenceGenome, entrezGeneId, sequenceType); return localVarResp.getData(); } /** - * findCanonicalSequence * - * @param referenceGenome referenceGenome (required) - * @param entrezGeneId entrezGeneId (required) - * @param sequenceType sequenceType (optional) + * + * @param referenceGenome (required) + * @param entrezGeneId (required) + * @param sequenceType (optional, default to PROTEIN) * @return ApiResponse<Sequence> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse findCanonicalSequenceUsingGETWithHttpInfo(String referenceGenome, Integer entrezGeneId, String sequenceType) throws ApiException { - okhttp3.Call localVarCall = findCanonicalSequenceUsingGETValidateBeforeCall(referenceGenome, entrezGeneId, sequenceType, null); + public ApiResponse findCanonicalSequenceWithHttpInfo(String referenceGenome, Integer entrezGeneId, String sequenceType) throws ApiException { + okhttp3.Call localVarCall = findCanonicalSequenceValidateBeforeCall(referenceGenome, entrezGeneId, sequenceType, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * findCanonicalSequence (asynchronously) + * (asynchronously) * - * @param referenceGenome referenceGenome (required) - * @param entrezGeneId entrezGeneId (required) - * @param sequenceType sequenceType (optional) + * @param referenceGenome (required) + * @param entrezGeneId (required) + * @param sequenceType (optional, default to PROTEIN) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -224,23 +215,20 @@ public ApiResponse findCanonicalSequenceUsingGETWithHttpInfo(String re - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findCanonicalSequenceUsingGETAsync(String referenceGenome, Integer entrezGeneId, String sequenceType, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findCanonicalSequenceAsync(String referenceGenome, Integer entrezGeneId, String sequenceType, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = findCanonicalSequenceUsingGETValidateBeforeCall(referenceGenome, entrezGeneId, sequenceType, _callback); + okhttp3.Call localVarCall = findCanonicalSequenceValidateBeforeCall(referenceGenome, entrezGeneId, sequenceType, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for findCanonicalSequencesUsingPOST - * @param referenceGenome referenceGenome (required) - * @param sequenceType sequenceType (optional) - * @param requestBody (optional) + * Build call for findCanonicalSequences + * @param referenceGenome (required) + * @param requestBody (required) + * @param sequenceType (optional, default to PROTEIN) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -248,13 +236,9 @@ public okhttp3.Call findCanonicalSequenceUsingGETAsync(String referenceGenome, I - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findCanonicalSequencesUsingPOSTCall(String referenceGenome, String sequenceType, List requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findCanonicalSequencesCall(String referenceGenome, List requestBody, String sequenceType, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -304,77 +288,74 @@ public okhttp3.Call findCanonicalSequencesUsingPOSTCall(String referenceGenome, localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call findCanonicalSequencesUsingPOSTValidateBeforeCall(String referenceGenome, String sequenceType, List requestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findCanonicalSequencesValidateBeforeCall(String referenceGenome, List requestBody, String sequenceType, final ApiCallback _callback) throws ApiException { // verify the required parameter 'referenceGenome' is set if (referenceGenome == null) { - throw new ApiException("Missing the required parameter 'referenceGenome' when calling findCanonicalSequencesUsingPOST(Async)"); + throw new ApiException("Missing the required parameter 'referenceGenome' when calling findCanonicalSequences(Async)"); + } + + // verify the required parameter 'requestBody' is set + if (requestBody == null) { + throw new ApiException("Missing the required parameter 'requestBody' when calling findCanonicalSequences(Async)"); } - okhttp3.Call localVarCall = findCanonicalSequencesUsingPOSTCall(referenceGenome, sequenceType, requestBody, _callback); + okhttp3.Call localVarCall = findCanonicalSequencesCall(referenceGenome, requestBody, sequenceType, _callback); return localVarCall; } /** - * findCanonicalSequences * - * @param referenceGenome referenceGenome (required) - * @param sequenceType sequenceType (optional) - * @param requestBody (optional) + * + * @param referenceGenome (required) + * @param requestBody (required) + * @param sequenceType (optional, default to PROTEIN) * @return List<Sequence> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public List findCanonicalSequencesUsingPOST(String referenceGenome, String sequenceType, List requestBody) throws ApiException { - ApiResponse> localVarResp = findCanonicalSequencesUsingPOSTWithHttpInfo(referenceGenome, sequenceType, requestBody); + public List findCanonicalSequences(String referenceGenome, List requestBody, String sequenceType) throws ApiException { + ApiResponse> localVarResp = findCanonicalSequencesWithHttpInfo(referenceGenome, requestBody, sequenceType); return localVarResp.getData(); } /** - * findCanonicalSequences * - * @param referenceGenome referenceGenome (required) - * @param sequenceType sequenceType (optional) - * @param requestBody (optional) + * + * @param referenceGenome (required) + * @param requestBody (required) + * @param sequenceType (optional, default to PROTEIN) * @return ApiResponse<List<Sequence>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse> findCanonicalSequencesUsingPOSTWithHttpInfo(String referenceGenome, String sequenceType, List requestBody) throws ApiException { - okhttp3.Call localVarCall = findCanonicalSequencesUsingPOSTValidateBeforeCall(referenceGenome, sequenceType, requestBody, null); + public ApiResponse> findCanonicalSequencesWithHttpInfo(String referenceGenome, List requestBody, String sequenceType) throws ApiException { + okhttp3.Call localVarCall = findCanonicalSequencesValidateBeforeCall(referenceGenome, requestBody, sequenceType, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * findCanonicalSequences (asynchronously) + * (asynchronously) * - * @param referenceGenome referenceGenome (required) - * @param sequenceType sequenceType (optional) - * @param requestBody (optional) + * @param referenceGenome (required) + * @param requestBody (required) + * @param sequenceType (optional, default to PROTEIN) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -382,15 +363,11 @@ public ApiResponse> findCanonicalSequencesUsingPOSTWithHttpInfo(S - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findCanonicalSequencesUsingPOSTAsync(String referenceGenome, String sequenceType, List requestBody, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findCanonicalSequencesAsync(String referenceGenome, List requestBody, String sequenceType, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = findCanonicalSequencesUsingPOSTValidateBeforeCall(referenceGenome, sequenceType, requestBody, _callback); + okhttp3.Call localVarCall = findCanonicalSequencesValidateBeforeCall(referenceGenome, requestBody, sequenceType, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SequenceResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SequenceResourceApi.java new file mode 100644 index 0000000..0211a15 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SequenceResourceApi.java @@ -0,0 +1,860 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Pageable; +import org.oncokb.oncokb_curation.client.Sequence; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SequenceResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SequenceResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public SequenceResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createSequence + * @param sequence (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createSequenceCall(Sequence sequence, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = sequence; + + // create path and map variables + String localVarPath = "/api/sequences"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSequenceValidateBeforeCall(Sequence sequence, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'sequence' is set + if (sequence == null) { + throw new ApiException("Missing the required parameter 'sequence' when calling createSequence(Async)"); + } + + + okhttp3.Call localVarCall = createSequenceCall(sequence, _callback); + return localVarCall; + + } + + /** + * + * + * @param sequence (required) + * @return Sequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Sequence createSequence(Sequence sequence) throws ApiException { + ApiResponse localVarResp = createSequenceWithHttpInfo(sequence); + return localVarResp.getData(); + } + + /** + * + * + * @param sequence (required) + * @return ApiResponse<Sequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createSequenceWithHttpInfo(Sequence sequence) throws ApiException { + okhttp3.Call localVarCall = createSequenceValidateBeforeCall(sequence, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param sequence (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createSequenceAsync(Sequence sequence, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSequenceValidateBeforeCall(sequence, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteSequence + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteSequenceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/sequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSequenceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteSequence(Async)"); + } + + + okhttp3.Call localVarCall = deleteSequenceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteSequence(Long id) throws ApiException { + deleteSequenceWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteSequenceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteSequenceValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteSequenceAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteSequenceValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllSequences + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllSequencesCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/sequences"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllSequencesValidateBeforeCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllSequences(Async)"); + } + + + okhttp3.Call localVarCall = getAllSequencesCall(pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param pageable (required) + * @return List<Sequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllSequences(Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllSequencesWithHttpInfo(pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param pageable (required) + * @return ApiResponse<List<Sequence>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllSequencesWithHttpInfo(Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllSequencesValidateBeforeCall(pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllSequencesAsync(Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllSequencesValidateBeforeCall(pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSequence + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getSequenceCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/sequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSequenceValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getSequence(Async)"); + } + + + okhttp3.Call localVarCall = getSequenceCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return Sequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Sequence getSequence(Long id) throws ApiException { + ApiResponse localVarResp = getSequenceWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Sequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getSequenceWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getSequenceValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getSequenceAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSequenceValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateSequence + * @param id (required) + * @param sequence (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateSequenceCall(Long id, Sequence sequence, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = sequence; + + // create path and map variables + String localVarPath = "/api/sequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateSequenceValidateBeforeCall(Long id, Sequence sequence, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateSequence(Async)"); + } + + // verify the required parameter 'sequence' is set + if (sequence == null) { + throw new ApiException("Missing the required parameter 'sequence' when calling partialUpdateSequence(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateSequenceCall(id, sequence, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param sequence (required) + * @return Sequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Sequence partialUpdateSequence(Long id, Sequence sequence) throws ApiException { + ApiResponse localVarResp = partialUpdateSequenceWithHttpInfo(id, sequence); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param sequence (required) + * @return ApiResponse<Sequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateSequenceWithHttpInfo(Long id, Sequence sequence) throws ApiException { + okhttp3.Call localVarCall = partialUpdateSequenceValidateBeforeCall(id, sequence, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param sequence (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateSequenceAsync(Long id, Sequence sequence, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateSequenceValidateBeforeCall(id, sequence, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateSequence + * @param id (required) + * @param sequence (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateSequenceCall(Long id, Sequence sequence, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = sequence; + + // create path and map variables + String localVarPath = "/api/sequences/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSequenceValidateBeforeCall(Long id, Sequence sequence, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateSequence(Async)"); + } + + // verify the required parameter 'sequence' is set + if (sequence == null) { + throw new ApiException("Missing the required parameter 'sequence' when calling updateSequence(Async)"); + } + + + okhttp3.Call localVarCall = updateSequenceCall(id, sequence, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param sequence (required) + * @return Sequence + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public Sequence updateSequence(Long id, Sequence sequence) throws ApiException { + ApiResponse localVarResp = updateSequenceWithHttpInfo(id, sequence); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param sequence (required) + * @return ApiResponse<Sequence> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateSequenceWithHttpInfo(Long id, Sequence sequence) throws ApiException { + okhttp3.Call localVarCall = updateSequenceValidateBeforeCall(id, sequence, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param sequence (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateSequenceAsync(Long id, Sequence sequence, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSequenceValidateBeforeCall(id, sequence, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SpecimenType.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SpecimenType.java new file mode 100644 index 0000000..7d47c39 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SpecimenType.java @@ -0,0 +1,202 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import java.io.Serializable; + +/** + * SpecimenType + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SpecimenType implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICES = "companionDiagnosticDevices"; + @SerializedName(SERIALIZED_NAME_COMPANION_DIAGNOSTIC_DEVICES) + private Set companionDiagnosticDevices = null; + + public SpecimenType() { + } + + public SpecimenType id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public SpecimenType type(String type) { + + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getType() { + return type; + } + + + public void setType(String type) { + this.type = type; + } + + + public SpecimenType name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public SpecimenType companionDiagnosticDevices(Set companionDiagnosticDevices) { + + this.companionDiagnosticDevices = companionDiagnosticDevices; + return this; + } + + public SpecimenType addCompanionDiagnosticDevicesItem(CompanionDiagnosticDevice companionDiagnosticDevicesItem) { + if (this.companionDiagnosticDevices == null) { + this.companionDiagnosticDevices = new LinkedHashSet(); + } + this.companionDiagnosticDevices.add(companionDiagnosticDevicesItem); + return this; + } + + /** + * Get companionDiagnosticDevices + * @return companionDiagnosticDevices + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getCompanionDiagnosticDevices() { + return companionDiagnosticDevices; + } + + + public void setCompanionDiagnosticDevices(Set companionDiagnosticDevices) { + this.companionDiagnosticDevices = companionDiagnosticDevices; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SpecimenType specimenType = (SpecimenType) o; + return Objects.equals(this.id, specimenType.id) && + Objects.equals(this.type, specimenType.type) && + Objects.equals(this.name, specimenType.name) && + Objects.equals(this.companionDiagnosticDevices, specimenType.companionDiagnosticDevices); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, name, companionDiagnosticDevices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SpecimenType {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" companionDiagnosticDevices: ").append(toIndentedString(companionDiagnosticDevices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApi.java new file mode 100644 index 0000000..fa41b47 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApi.java @@ -0,0 +1,846 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.SpecimenType; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SpecimenTypeResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SpecimenTypeResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public SpecimenTypeResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createSpecimenType + * @param specimenType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createSpecimenTypeCall(SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = specimenType; + + // create path and map variables + String localVarPath = "/api/specimen-types"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSpecimenTypeValidateBeforeCall(SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'specimenType' is set + if (specimenType == null) { + throw new ApiException("Missing the required parameter 'specimenType' when calling createSpecimenType(Async)"); + } + + + okhttp3.Call localVarCall = createSpecimenTypeCall(specimenType, _callback); + return localVarCall; + + } + + /** + * + * + * @param specimenType (required) + * @return SpecimenType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public SpecimenType createSpecimenType(SpecimenType specimenType) throws ApiException { + ApiResponse localVarResp = createSpecimenTypeWithHttpInfo(specimenType); + return localVarResp.getData(); + } + + /** + * + * + * @param specimenType (required) + * @return ApiResponse<SpecimenType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createSpecimenTypeWithHttpInfo(SpecimenType specimenType) throws ApiException { + okhttp3.Call localVarCall = createSpecimenTypeValidateBeforeCall(specimenType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param specimenType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createSpecimenTypeAsync(SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSpecimenTypeValidateBeforeCall(specimenType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteSpecimenType + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteSpecimenTypeCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/specimen-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteSpecimenTypeValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteSpecimenType(Async)"); + } + + + okhttp3.Call localVarCall = deleteSpecimenTypeCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteSpecimenType(Long id) throws ApiException { + deleteSpecimenTypeWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteSpecimenTypeWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteSpecimenTypeValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteSpecimenTypeAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteSpecimenTypeValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllSpecimenTypes + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllSpecimenTypesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/specimen-types"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllSpecimenTypesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllSpecimenTypesCall(_callback); + return localVarCall; + + } + + /** + * + * + * @return List<SpecimenType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllSpecimenTypes() throws ApiException { + ApiResponse> localVarResp = getAllSpecimenTypesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * + * @return ApiResponse<List<SpecimenType>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllSpecimenTypesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllSpecimenTypesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllSpecimenTypesAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllSpecimenTypesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getSpecimenType + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getSpecimenTypeCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/specimen-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getSpecimenTypeValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getSpecimenType(Async)"); + } + + + okhttp3.Call localVarCall = getSpecimenTypeCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return SpecimenType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public SpecimenType getSpecimenType(Long id) throws ApiException { + ApiResponse localVarResp = getSpecimenTypeWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<SpecimenType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getSpecimenTypeWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getSpecimenTypeValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getSpecimenTypeAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getSpecimenTypeValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateSpecimenType + * @param id (required) + * @param specimenType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateSpecimenTypeCall(Long id, SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = specimenType; + + // create path and map variables + String localVarPath = "/api/specimen-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateSpecimenTypeValidateBeforeCall(Long id, SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateSpecimenType(Async)"); + } + + // verify the required parameter 'specimenType' is set + if (specimenType == null) { + throw new ApiException("Missing the required parameter 'specimenType' when calling partialUpdateSpecimenType(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateSpecimenTypeCall(id, specimenType, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param specimenType (required) + * @return SpecimenType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public SpecimenType partialUpdateSpecimenType(Long id, SpecimenType specimenType) throws ApiException { + ApiResponse localVarResp = partialUpdateSpecimenTypeWithHttpInfo(id, specimenType); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param specimenType (required) + * @return ApiResponse<SpecimenType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateSpecimenTypeWithHttpInfo(Long id, SpecimenType specimenType) throws ApiException { + okhttp3.Call localVarCall = partialUpdateSpecimenTypeValidateBeforeCall(id, specimenType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param specimenType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateSpecimenTypeAsync(Long id, SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateSpecimenTypeValidateBeforeCall(id, specimenType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateSpecimenType + * @param id (required) + * @param specimenType (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateSpecimenTypeCall(Long id, SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = specimenType; + + // create path and map variables + String localVarPath = "/api/specimen-types/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSpecimenTypeValidateBeforeCall(Long id, SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateSpecimenType(Async)"); + } + + // verify the required parameter 'specimenType' is set + if (specimenType == null) { + throw new ApiException("Missing the required parameter 'specimenType' when calling updateSpecimenType(Async)"); + } + + + okhttp3.Call localVarCall = updateSpecimenTypeCall(id, specimenType, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param specimenType (required) + * @return SpecimenType + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public SpecimenType updateSpecimenType(Long id, SpecimenType specimenType) throws ApiException { + ApiResponse localVarResp = updateSpecimenTypeWithHttpInfo(id, specimenType); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param specimenType (required) + * @return ApiResponse<SpecimenType> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateSpecimenTypeWithHttpInfo(Long id, SpecimenType specimenType) throws ApiException { + okhttp3.Call localVarCall = updateSpecimenTypeValidateBeforeCall(id, specimenType, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param specimenType (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateSpecimenTypeAsync(Long id, SpecimenType specimenType, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSpecimenTypeValidateBeforeCall(id, specimenType, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/StringFilter.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/StringFilter.java new file mode 100644 index 0000000..7554691 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/StringFilter.java @@ -0,0 +1,295 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; + +/** + * StringFilter + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class StringFilter implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_EQUALS = "equals"; + @SerializedName(SERIALIZED_NAME_EQUALS) + private String equals; + + public static final String SERIALIZED_NAME_NOT_EQUALS = "notEquals"; + @SerializedName(SERIALIZED_NAME_NOT_EQUALS) + private String notEquals; + + public static final String SERIALIZED_NAME_SPECIFIED = "specified"; + @SerializedName(SERIALIZED_NAME_SPECIFIED) + private Boolean specified; + + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + private List in = null; + + public static final String SERIALIZED_NAME_NOT_IN = "notIn"; + @SerializedName(SERIALIZED_NAME_NOT_IN) + private List notIn = null; + + public static final String SERIALIZED_NAME_CONTAINS = "contains"; + @SerializedName(SERIALIZED_NAME_CONTAINS) + private String contains; + + public static final String SERIALIZED_NAME_DOES_NOT_CONTAIN = "doesNotContain"; + @SerializedName(SERIALIZED_NAME_DOES_NOT_CONTAIN) + private String doesNotContain; + + public StringFilter() { + } + + public StringFilter equals(String equals) { + + this.equals = equals; + return this; + } + + /** + * Get equals + * @return equals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getEquals() { + return equals; + } + + + public void setEquals(String equals) { + this.equals = equals; + } + + + public StringFilter notEquals(String notEquals) { + + this.notEquals = notEquals; + return this; + } + + /** + * Get notEquals + * @return notEquals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getNotEquals() { + return notEquals; + } + + + public void setNotEquals(String notEquals) { + this.notEquals = notEquals; + } + + + public StringFilter specified(Boolean specified) { + + this.specified = specified; + return this; + } + + /** + * Get specified + * @return specified + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getSpecified() { + return specified; + } + + + public void setSpecified(Boolean specified) { + this.specified = specified; + } + + + public StringFilter in(List in) { + + this.in = in; + return this; + } + + public StringFilter addInItem(String inItem) { + if (this.in == null) { + this.in = new ArrayList(); + } + this.in.add(inItem); + return this; + } + + /** + * Get in + * @return in + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getIn() { + return in; + } + + + public void setIn(List in) { + this.in = in; + } + + + public StringFilter notIn(List notIn) { + + this.notIn = notIn; + return this; + } + + public StringFilter addNotInItem(String notInItem) { + if (this.notIn == null) { + this.notIn = new ArrayList(); + } + this.notIn.add(notInItem); + return this; + } + + /** + * Get notIn + * @return notIn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getNotIn() { + return notIn; + } + + + public void setNotIn(List notIn) { + this.notIn = notIn; + } + + + public StringFilter contains(String contains) { + + this.contains = contains; + return this; + } + + /** + * Get contains + * @return contains + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getContains() { + return contains; + } + + + public void setContains(String contains) { + this.contains = contains; + } + + + public StringFilter doesNotContain(String doesNotContain) { + + this.doesNotContain = doesNotContain; + return this; + } + + /** + * Get doesNotContain + * @return doesNotContain + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getDoesNotContain() { + return doesNotContain; + } + + + public void setDoesNotContain(String doesNotContain) { + this.doesNotContain = doesNotContain; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StringFilter stringFilter = (StringFilter) o; + return Objects.equals(this.equals, stringFilter.equals) && + Objects.equals(this.notEquals, stringFilter.notEquals) && + Objects.equals(this.specified, stringFilter.specified) && + Objects.equals(this.in, stringFilter.in) && + Objects.equals(this.notIn, stringFilter.notIn) && + Objects.equals(this.contains, stringFilter.contains) && + Objects.equals(this.doesNotContain, stringFilter.doesNotContain); + } + + @Override + public int hashCode() { + return Objects.hash(equals, notEquals, specified, in, notIn, contains, doesNotContain); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StringFilter {\n"); + sb.append(" equals: ").append(toIndentedString(equals)).append("\n"); + sb.append(" notEquals: ").append(toIndentedString(notEquals)).append("\n"); + sb.append(" specified: ").append(toIndentedString(specified)).append("\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append(" notIn: ").append(toIndentedString(notIn)).append("\n"); + sb.append(" contains: ").append(toIndentedString(contains)).append("\n"); + sb.append(" doesNotContain: ").append(toIndentedString(doesNotContain)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Transcript.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Transcript.java similarity index 92% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Transcript.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Transcript.java index 4e3d703..768f345 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/Transcript.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/Transcript.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -26,9 +26,9 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; -import org.oncokb.oncokb_transcript.client.EnsemblGene; -import org.oncokb.oncokb_transcript.client.GenomeFragment; -import org.oncokb.oncokb_transcript.client.Sequence; +import org.oncokb.oncokb_curation.client.EnsemblGene; +import org.oncokb.oncokb_curation.client.GenomeFragment; +import org.oncokb.oncokb_curation.client.Sequence; import java.io.Serializable; /** @@ -38,111 +38,111 @@ public class Transcript implements Serializable { private static final long serialVersionUID = 1L; + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID = "ensemblTranscriptId"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID) + private String ensemblTranscriptId; + public static final String SERIALIZED_NAME_CANONICAL = "canonical"; @SerializedName(SERIALIZED_NAME_CANONICAL) private Boolean canonical; - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_ENSEMBL_GENE = "ensemblGene"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE) - private EnsemblGene ensemblGene; - public static final String SERIALIZED_NAME_ENSEMBL_PROTEIN_ID = "ensemblProteinId"; @SerializedName(SERIALIZED_NAME_ENSEMBL_PROTEIN_ID) private String ensemblProteinId; - public static final String SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID = "ensemblTranscriptId"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID) - private String ensemblTranscriptId; + public static final String SERIALIZED_NAME_REFERENCE_SEQUENCE_ID = "referenceSequenceId"; + @SerializedName(SERIALIZED_NAME_REFERENCE_SEQUENCE_ID) + private String referenceSequenceId; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; public static final String SERIALIZED_NAME_FRAGMENTS = "fragments"; @SerializedName(SERIALIZED_NAME_FRAGMENTS) private Set fragments = null; - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private Long id; - - public static final String SERIALIZED_NAME_REFERENCE_SEQUENCE_ID = "referenceSequenceId"; - @SerializedName(SERIALIZED_NAME_REFERENCE_SEQUENCE_ID) - private String referenceSequenceId; - public static final String SERIALIZED_NAME_SEQUENCES = "sequences"; @SerializedName(SERIALIZED_NAME_SEQUENCES) private Set sequences = null; + public static final String SERIALIZED_NAME_ENSEMBL_GENE = "ensemblGene"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE) + private EnsemblGene ensemblGene; + public Transcript() { } - public Transcript canonical(Boolean canonical) { + public Transcript id(Long id) { - this.canonical = canonical; + this.id = id; return this; } /** - * Get canonical - * @return canonical + * Get id + * @return id **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public Boolean getCanonical() { - return canonical; + public Long getId() { + return id; } - public void setCanonical(Boolean canonical) { - this.canonical = canonical; + public void setId(Long id) { + this.id = id; } - public Transcript description(String description) { + public Transcript ensemblTranscriptId(String ensemblTranscriptId) { - this.description = description; + this.ensemblTranscriptId = ensemblTranscriptId; return this; } /** - * Get description - * @return description + * Get ensemblTranscriptId + * @return ensemblTranscriptId **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getDescription() { - return description; + public String getEnsemblTranscriptId() { + return ensemblTranscriptId; } - public void setDescription(String description) { - this.description = description; + public void setEnsemblTranscriptId(String ensemblTranscriptId) { + this.ensemblTranscriptId = ensemblTranscriptId; } - public Transcript ensemblGene(EnsemblGene ensemblGene) { + public Transcript canonical(Boolean canonical) { - this.ensemblGene = ensemblGene; + this.canonical = canonical; return this; } /** - * Get ensemblGene - * @return ensemblGene + * Get canonical + * @return canonical **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") - public EnsemblGene getEnsemblGene() { - return ensemblGene; + public Boolean getCanonical() { + return canonical; } - public void setEnsemblGene(EnsemblGene ensemblGene) { - this.ensemblGene = ensemblGene; + public void setCanonical(Boolean canonical) { + this.canonical = canonical; } @@ -169,103 +169,80 @@ public void setEnsemblProteinId(String ensemblProteinId) { } - public Transcript ensemblTranscriptId(String ensemblTranscriptId) { + public Transcript referenceSequenceId(String referenceSequenceId) { - this.ensemblTranscriptId = ensemblTranscriptId; + this.referenceSequenceId = referenceSequenceId; return this; } /** - * Get ensemblTranscriptId - * @return ensemblTranscriptId + * Get referenceSequenceId + * @return referenceSequenceId **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getEnsemblTranscriptId() { - return ensemblTranscriptId; + public String getReferenceSequenceId() { + return referenceSequenceId; } - public void setEnsemblTranscriptId(String ensemblTranscriptId) { - this.ensemblTranscriptId = ensemblTranscriptId; + public void setReferenceSequenceId(String referenceSequenceId) { + this.referenceSequenceId = referenceSequenceId; } - public Transcript fragments(Set fragments) { + public Transcript description(String description) { - this.fragments = fragments; - return this; - } - - public Transcript addFragmentsItem(GenomeFragment fragmentsItem) { - if (this.fragments == null) { - this.fragments = new LinkedHashSet(); - } - this.fragments.add(fragmentsItem); + this.description = description; return this; } /** - * Get fragments - * @return fragments + * Get description + * @return description **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Set getFragments() { - return fragments; + public String getDescription() { + return description; } - public void setFragments(Set fragments) { - this.fragments = fragments; + public void setDescription(String description) { + this.description = description; } - public Transcript id(Long id) { + public Transcript fragments(Set fragments) { - this.id = id; + this.fragments = fragments; return this; } - /** - * Get id - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Long getId() { - return id; - } - - - public void setId(Long id) { - this.id = id; - } - - - public Transcript referenceSequenceId(String referenceSequenceId) { - - this.referenceSequenceId = referenceSequenceId; + public Transcript addFragmentsItem(GenomeFragment fragmentsItem) { + if (this.fragments == null) { + this.fragments = new LinkedHashSet(); + } + this.fragments.add(fragmentsItem); return this; } /** - * Get referenceSequenceId - * @return referenceSequenceId + * Get fragments + * @return fragments **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getReferenceSequenceId() { - return referenceSequenceId; + public Set getFragments() { + return fragments; } - public void setReferenceSequenceId(String referenceSequenceId) { - this.referenceSequenceId = referenceSequenceId; + public void setFragments(Set fragments) { + this.fragments = fragments; } @@ -300,6 +277,29 @@ public void setSequences(Set sequences) { } + public Transcript ensemblGene(EnsemblGene ensemblGene) { + + this.ensemblGene = ensemblGene; + return this; + } + + /** + * Get ensemblGene + * @return ensemblGene + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public EnsemblGene getEnsemblGene() { + return ensemblGene; + } + + + public void setEnsemblGene(EnsemblGene ensemblGene) { + this.ensemblGene = ensemblGene; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -309,35 +309,35 @@ public boolean equals(Object o) { return false; } Transcript transcript = (Transcript) o; - return Objects.equals(this.canonical, transcript.canonical) && - Objects.equals(this.description, transcript.description) && - Objects.equals(this.ensemblGene, transcript.ensemblGene) && - Objects.equals(this.ensemblProteinId, transcript.ensemblProteinId) && + return Objects.equals(this.id, transcript.id) && Objects.equals(this.ensemblTranscriptId, transcript.ensemblTranscriptId) && - Objects.equals(this.fragments, transcript.fragments) && - Objects.equals(this.id, transcript.id) && + Objects.equals(this.canonical, transcript.canonical) && + Objects.equals(this.ensemblProteinId, transcript.ensemblProteinId) && Objects.equals(this.referenceSequenceId, transcript.referenceSequenceId) && - Objects.equals(this.sequences, transcript.sequences); + Objects.equals(this.description, transcript.description) && + Objects.equals(this.fragments, transcript.fragments) && + Objects.equals(this.sequences, transcript.sequences) && + Objects.equals(this.ensemblGene, transcript.ensemblGene); } @Override public int hashCode() { - return Objects.hash(canonical, description, ensemblGene, ensemblProteinId, ensemblTranscriptId, fragments, id, referenceSequenceId, sequences); + return Objects.hash(id, ensemblTranscriptId, canonical, ensemblProteinId, referenceSequenceId, description, fragments, sequences, ensemblGene); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Transcript {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" ensemblTranscriptId: ").append(toIndentedString(ensemblTranscriptId)).append("\n"); sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" ensemblGene: ").append(toIndentedString(ensemblGene)).append("\n"); sb.append(" ensemblProteinId: ").append(toIndentedString(ensemblProteinId)).append("\n"); - sb.append(" ensemblTranscriptId: ").append(toIndentedString(ensemblTranscriptId)).append("\n"); - sb.append(" fragments: ").append(toIndentedString(fragments)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" referenceSequenceId: ").append(toIndentedString(referenceSequenceId)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" fragments: ").append(toIndentedString(fragments)).append("\n"); sb.append(" sequences: ").append(toIndentedString(sequences)).append("\n"); + sb.append(" ensemblGene: ").append(toIndentedString(ensemblGene)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVM.java similarity index 94% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVM.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVM.java index f8661b8..41e8d05 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVM.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVM.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVM.java similarity index 93% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVM.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVM.java index dcef5c1..3d7d37b 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVM.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVM.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.TranscriptPairVM; +import org.oncokb.oncokb_curation.client.TranscriptPairVM; import java.io.Serializable; /** diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptControllerApi.java similarity index 60% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApi.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptControllerApi.java index f103d49..3b3cd14 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApi.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptControllerApi.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,29 +11,29 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiCallback; -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.ApiResponse; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.Pair; -import org.oncokb.oncokb_transcript.ProgressRequestBody; -import org.oncokb.oncokb_transcript.ProgressResponseBody; +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; import com.google.gson.reflect.TypeToken; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.AddTranscriptBody; -import org.oncokb.oncokb_transcript.client.AllReferenceTranscriptSuggestionVM; -import org.oncokb.oncokb_transcript.client.MatchTranscriptVM; -import org.oncokb.oncokb_transcript.client.TranscriptComparisonResultVM; -import org.oncokb.oncokb_transcript.client.TranscriptComparisonVM; -import org.oncokb.oncokb_transcript.client.TranscriptDTO; -import org.oncokb.oncokb_transcript.client.TranscriptMatchResultVM; +import org.oncokb.oncokb_curation.client.AddTranscriptBody; +import org.oncokb.oncokb_curation.client.AllReferenceTranscriptSuggestionVM; +import org.oncokb.oncokb_curation.client.MatchTranscriptVM; +import org.oncokb.oncokb_curation.client.TranscriptComparisonResultVM; +import org.oncokb.oncokb_curation.client.TranscriptComparisonVM; +import org.oncokb.oncokb_curation.client.TranscriptDTO; +import org.oncokb.oncokb_curation.client.TranscriptMatchResultVM; import java.lang.reflect.Type; import java.util.ArrayList; @@ -79,8 +79,8 @@ public void setCustomBaseUrl(String customBaseUrl) { } /** - * Build call for addTranscriptUsingPOST - * @param addTranscriptBody (optional) + * Build call for addTranscript + * @param addTranscriptBody (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -88,13 +88,9 @@ public void setCustomBaseUrl(String customBaseUrl) { - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call addTranscriptUsingPOSTCall(AddTranscriptBody addTranscriptBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addTranscriptCall(AddTranscriptBody addTranscriptBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -136,66 +132,63 @@ public okhttp3.Call addTranscriptUsingPOSTCall(AddTranscriptBody addTranscriptBo localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call addTranscriptUsingPOSTValidateBeforeCall(AddTranscriptBody addTranscriptBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call addTranscriptValidateBeforeCall(AddTranscriptBody addTranscriptBody, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'addTranscriptBody' is set + if (addTranscriptBody == null) { + throw new ApiException("Missing the required parameter 'addTranscriptBody' when calling addTranscript(Async)"); + } - okhttp3.Call localVarCall = addTranscriptUsingPOSTCall(addTranscriptBody, _callback); + okhttp3.Call localVarCall = addTranscriptCall(addTranscriptBody, _callback); return localVarCall; } /** - * addTranscript * - * @param addTranscriptBody (optional) + * + * @param addTranscriptBody (required) * @return TranscriptDTO * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public TranscriptDTO addTranscriptUsingPOST(AddTranscriptBody addTranscriptBody) throws ApiException { - ApiResponse localVarResp = addTranscriptUsingPOSTWithHttpInfo(addTranscriptBody); + public TranscriptDTO addTranscript(AddTranscriptBody addTranscriptBody) throws ApiException { + ApiResponse localVarResp = addTranscriptWithHttpInfo(addTranscriptBody); return localVarResp.getData(); } /** - * addTranscript * - * @param addTranscriptBody (optional) + * + * @param addTranscriptBody (required) * @return ApiResponse<TranscriptDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse addTranscriptUsingPOSTWithHttpInfo(AddTranscriptBody addTranscriptBody) throws ApiException { - okhttp3.Call localVarCall = addTranscriptUsingPOSTValidateBeforeCall(addTranscriptBody, null); + public ApiResponse addTranscriptWithHttpInfo(AddTranscriptBody addTranscriptBody) throws ApiException { + okhttp3.Call localVarCall = addTranscriptValidateBeforeCall(addTranscriptBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * addTranscript (asynchronously) + * (asynchronously) * - * @param addTranscriptBody (optional) + * @param addTranscriptBody (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -203,23 +196,19 @@ public ApiResponse addTranscriptUsingPOSTWithHttpInfo(AddTranscri - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call addTranscriptUsingPOSTAsync(AddTranscriptBody addTranscriptBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call addTranscriptAsync(AddTranscriptBody addTranscriptBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = addTranscriptUsingPOSTValidateBeforeCall(addTranscriptBody, _callback); + okhttp3.Call localVarCall = addTranscriptValidateBeforeCall(addTranscriptBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for compareTranscriptUsingPOST - * @param hugoSymbol hugoSymbol (required) - * @param transcriptComparisonVM (optional) + * Build call for compareTranscript + * @param hugoSymbol (required) + * @param transcriptComparisonVM (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -227,13 +216,9 @@ public okhttp3.Call addTranscriptUsingPOSTAsync(AddTranscriptBody addTranscriptB - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call compareTranscriptUsingPOSTCall(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM, final ApiCallback _callback) throws ApiException { + public okhttp3.Call compareTranscriptCall(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -276,74 +261,71 @@ public okhttp3.Call compareTranscriptUsingPOSTCall(String hugoSymbol, Transcript localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call compareTranscriptUsingPOSTValidateBeforeCall(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM, final ApiCallback _callback) throws ApiException { + private okhttp3.Call compareTranscriptValidateBeforeCall(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM, final ApiCallback _callback) throws ApiException { // verify the required parameter 'hugoSymbol' is set if (hugoSymbol == null) { - throw new ApiException("Missing the required parameter 'hugoSymbol' when calling compareTranscriptUsingPOST(Async)"); + throw new ApiException("Missing the required parameter 'hugoSymbol' when calling compareTranscript(Async)"); + } + + // verify the required parameter 'transcriptComparisonVM' is set + if (transcriptComparisonVM == null) { + throw new ApiException("Missing the required parameter 'transcriptComparisonVM' when calling compareTranscript(Async)"); } - okhttp3.Call localVarCall = compareTranscriptUsingPOSTCall(hugoSymbol, transcriptComparisonVM, _callback); + okhttp3.Call localVarCall = compareTranscriptCall(hugoSymbol, transcriptComparisonVM, _callback); return localVarCall; } /** - * compareTranscript * - * @param hugoSymbol hugoSymbol (required) - * @param transcriptComparisonVM (optional) + * + * @param hugoSymbol (required) + * @param transcriptComparisonVM (required) * @return TranscriptComparisonResultVM * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public TranscriptComparisonResultVM compareTranscriptUsingPOST(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM) throws ApiException { - ApiResponse localVarResp = compareTranscriptUsingPOSTWithHttpInfo(hugoSymbol, transcriptComparisonVM); + public TranscriptComparisonResultVM compareTranscript(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM) throws ApiException { + ApiResponse localVarResp = compareTranscriptWithHttpInfo(hugoSymbol, transcriptComparisonVM); return localVarResp.getData(); } /** - * compareTranscript * - * @param hugoSymbol hugoSymbol (required) - * @param transcriptComparisonVM (optional) + * + * @param hugoSymbol (required) + * @param transcriptComparisonVM (required) * @return ApiResponse<TranscriptComparisonResultVM> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse compareTranscriptUsingPOSTWithHttpInfo(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM) throws ApiException { - okhttp3.Call localVarCall = compareTranscriptUsingPOSTValidateBeforeCall(hugoSymbol, transcriptComparisonVM, null); + public ApiResponse compareTranscriptWithHttpInfo(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM) throws ApiException { + okhttp3.Call localVarCall = compareTranscriptValidateBeforeCall(hugoSymbol, transcriptComparisonVM, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * compareTranscript (asynchronously) + * (asynchronously) * - * @param hugoSymbol hugoSymbol (required) - * @param transcriptComparisonVM (optional) + * @param hugoSymbol (required) + * @param transcriptComparisonVM (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -351,23 +333,19 @@ public ApiResponse compareTranscriptUsingPOSTWithH - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call compareTranscriptUsingPOSTAsync(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM, final ApiCallback _callback) throws ApiException { + public okhttp3.Call compareTranscriptAsync(String hugoSymbol, TranscriptComparisonVM transcriptComparisonVM, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = compareTranscriptUsingPOSTValidateBeforeCall(hugoSymbol, transcriptComparisonVM, _callback); + okhttp3.Call localVarCall = compareTranscriptValidateBeforeCall(hugoSymbol, transcriptComparisonVM, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for findTranscriptsByEnsemblIdsUsingPOST - * @param referenceGenome referenceGenome (required) - * @param requestBody (optional) + * Build call for findTranscriptsByEnsemblIds + * @param referenceGenome (required) + * @param requestBody (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -375,13 +353,9 @@ public okhttp3.Call compareTranscriptUsingPOSTAsync(String hugoSymbol, Transcrip - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findTranscriptsByEnsemblIdsUsingPOSTCall(String referenceGenome, List requestBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call findTranscriptsByEnsemblIdsCall(String referenceGenome, List requestBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -427,74 +401,71 @@ public okhttp3.Call findTranscriptsByEnsemblIdsUsingPOSTCall(String referenceGen localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call findTranscriptsByEnsemblIdsUsingPOSTValidateBeforeCall(String referenceGenome, List requestBody, final ApiCallback _callback) throws ApiException { + private okhttp3.Call findTranscriptsByEnsemblIdsValidateBeforeCall(String referenceGenome, List requestBody, final ApiCallback _callback) throws ApiException { // verify the required parameter 'referenceGenome' is set if (referenceGenome == null) { - throw new ApiException("Missing the required parameter 'referenceGenome' when calling findTranscriptsByEnsemblIdsUsingPOST(Async)"); + throw new ApiException("Missing the required parameter 'referenceGenome' when calling findTranscriptsByEnsemblIds(Async)"); + } + + // verify the required parameter 'requestBody' is set + if (requestBody == null) { + throw new ApiException("Missing the required parameter 'requestBody' when calling findTranscriptsByEnsemblIds(Async)"); } - okhttp3.Call localVarCall = findTranscriptsByEnsemblIdsUsingPOSTCall(referenceGenome, requestBody, _callback); + okhttp3.Call localVarCall = findTranscriptsByEnsemblIdsCall(referenceGenome, requestBody, _callback); return localVarCall; } /** - * findTranscriptsByEnsemblIds * - * @param referenceGenome referenceGenome (required) - * @param requestBody (optional) + * + * @param referenceGenome (required) + * @param requestBody (required) * @return List<TranscriptDTO> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public List findTranscriptsByEnsemblIdsUsingPOST(String referenceGenome, List requestBody) throws ApiException { - ApiResponse> localVarResp = findTranscriptsByEnsemblIdsUsingPOSTWithHttpInfo(referenceGenome, requestBody); + public List findTranscriptsByEnsemblIds(String referenceGenome, List requestBody) throws ApiException { + ApiResponse> localVarResp = findTranscriptsByEnsemblIdsWithHttpInfo(referenceGenome, requestBody); return localVarResp.getData(); } /** - * findTranscriptsByEnsemblIds * - * @param referenceGenome referenceGenome (required) - * @param requestBody (optional) + * + * @param referenceGenome (required) + * @param requestBody (required) * @return ApiResponse<List<TranscriptDTO>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse> findTranscriptsByEnsemblIdsUsingPOSTWithHttpInfo(String referenceGenome, List requestBody) throws ApiException { - okhttp3.Call localVarCall = findTranscriptsByEnsemblIdsUsingPOSTValidateBeforeCall(referenceGenome, requestBody, null); + public ApiResponse> findTranscriptsByEnsemblIdsWithHttpInfo(String referenceGenome, List requestBody) throws ApiException { + okhttp3.Call localVarCall = findTranscriptsByEnsemblIdsValidateBeforeCall(referenceGenome, requestBody, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * findTranscriptsByEnsemblIds (asynchronously) + * (asynchronously) * - * @param referenceGenome referenceGenome (required) - * @param requestBody (optional) + * @param referenceGenome (required) + * @param requestBody (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -502,23 +473,19 @@ public ApiResponse> findTranscriptsByEnsemblIdsUsingPOSTWith - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call findTranscriptsByEnsemblIdsUsingPOSTAsync(String referenceGenome, List requestBody, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call findTranscriptsByEnsemblIdsAsync(String referenceGenome, List requestBody, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = findTranscriptsByEnsemblIdsUsingPOSTValidateBeforeCall(referenceGenome, requestBody, _callback); + okhttp3.Call localVarCall = findTranscriptsByEnsemblIdsValidateBeforeCall(referenceGenome, requestBody, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for matchTranscriptUsingPOST - * @param hugoSymbol hugoSymbol (required) - * @param matchTranscriptVM (optional) + * Build call for matchTranscript + * @param hugoSymbol (required) + * @param matchTranscriptVM (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -526,13 +493,9 @@ public okhttp3.Call findTranscriptsByEnsemblIdsUsingPOSTAsync(String referenceGe - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call matchTranscriptUsingPOSTCall(String hugoSymbol, MatchTranscriptVM matchTranscriptVM, final ApiCallback _callback) throws ApiException { + public okhttp3.Call matchTranscriptCall(String hugoSymbol, MatchTranscriptVM matchTranscriptVM, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -575,74 +538,71 @@ public okhttp3.Call matchTranscriptUsingPOSTCall(String hugoSymbol, MatchTranscr localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call matchTranscriptUsingPOSTValidateBeforeCall(String hugoSymbol, MatchTranscriptVM matchTranscriptVM, final ApiCallback _callback) throws ApiException { + private okhttp3.Call matchTranscriptValidateBeforeCall(String hugoSymbol, MatchTranscriptVM matchTranscriptVM, final ApiCallback _callback) throws ApiException { // verify the required parameter 'hugoSymbol' is set if (hugoSymbol == null) { - throw new ApiException("Missing the required parameter 'hugoSymbol' when calling matchTranscriptUsingPOST(Async)"); + throw new ApiException("Missing the required parameter 'hugoSymbol' when calling matchTranscript(Async)"); + } + + // verify the required parameter 'matchTranscriptVM' is set + if (matchTranscriptVM == null) { + throw new ApiException("Missing the required parameter 'matchTranscriptVM' when calling matchTranscript(Async)"); } - okhttp3.Call localVarCall = matchTranscriptUsingPOSTCall(hugoSymbol, matchTranscriptVM, _callback); + okhttp3.Call localVarCall = matchTranscriptCall(hugoSymbol, matchTranscriptVM, _callback); return localVarCall; } /** - * matchTranscript * - * @param hugoSymbol hugoSymbol (required) - * @param matchTranscriptVM (optional) + * + * @param hugoSymbol (required) + * @param matchTranscriptVM (required) * @return TranscriptMatchResultVM * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public TranscriptMatchResultVM matchTranscriptUsingPOST(String hugoSymbol, MatchTranscriptVM matchTranscriptVM) throws ApiException { - ApiResponse localVarResp = matchTranscriptUsingPOSTWithHttpInfo(hugoSymbol, matchTranscriptVM); + public TranscriptMatchResultVM matchTranscript(String hugoSymbol, MatchTranscriptVM matchTranscriptVM) throws ApiException { + ApiResponse localVarResp = matchTranscriptWithHttpInfo(hugoSymbol, matchTranscriptVM); return localVarResp.getData(); } /** - * matchTranscript * - * @param hugoSymbol hugoSymbol (required) - * @param matchTranscriptVM (optional) + * + * @param hugoSymbol (required) + * @param matchTranscriptVM (required) * @return ApiResponse<TranscriptMatchResultVM> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse matchTranscriptUsingPOSTWithHttpInfo(String hugoSymbol, MatchTranscriptVM matchTranscriptVM) throws ApiException { - okhttp3.Call localVarCall = matchTranscriptUsingPOSTValidateBeforeCall(hugoSymbol, matchTranscriptVM, null); + public ApiResponse matchTranscriptWithHttpInfo(String hugoSymbol, MatchTranscriptVM matchTranscriptVM) throws ApiException { + okhttp3.Call localVarCall = matchTranscriptValidateBeforeCall(hugoSymbol, matchTranscriptVM, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * matchTranscript (asynchronously) + * (asynchronously) * - * @param hugoSymbol hugoSymbol (required) - * @param matchTranscriptVM (optional) + * @param hugoSymbol (required) + * @param matchTranscriptVM (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -650,26 +610,22 @@ public ApiResponse matchTranscriptUsingPOSTWithHttpInfo - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call matchTranscriptUsingPOSTAsync(String hugoSymbol, MatchTranscriptVM matchTranscriptVM, final ApiCallback _callback) throws ApiException { + public okhttp3.Call matchTranscriptAsync(String hugoSymbol, MatchTranscriptVM matchTranscriptVM, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = matchTranscriptUsingPOSTValidateBeforeCall(hugoSymbol, matchTranscriptVM, _callback); + okhttp3.Call localVarCall = matchTranscriptValidateBeforeCall(hugoSymbol, matchTranscriptVM, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for suggestVariantUsingGET - * @param hugoSymbol hugoSymbol (required) - * @param proteinPosition proteinPosition (required) - * @param curatedResidue curatedResidue (required) - * @param grch37Transcript grch37Transcript (required) - * @param grch38Transcript grch38Transcript (required) + * Build call for suggestVariant + * @param hugoSymbol (required) + * @param proteinPosition (required) + * @param curatedResidue (required) + * @param grch37Transcript (required) + * @param grch38Transcript (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -677,12 +633,9 @@ public okhttp3.Call matchTranscriptUsingPOSTAsync(String hugoSymbol, MatchTransc - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call suggestVariantUsingGETCall(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript, final ApiCallback _callback) throws ApiException { + public okhttp3.Call suggestVariantCall(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -741,101 +694,95 @@ public okhttp3.Call suggestVariantUsingGETCall(String hugoSymbol, Integer protei localVarHeaderParams.put("Content-Type", localVarContentType); } - String[] localVarAuthNames = new String[] { "Authorization" }; + String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call suggestVariantUsingGETValidateBeforeCall(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript, final ApiCallback _callback) throws ApiException { + private okhttp3.Call suggestVariantValidateBeforeCall(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript, final ApiCallback _callback) throws ApiException { // verify the required parameter 'hugoSymbol' is set if (hugoSymbol == null) { - throw new ApiException("Missing the required parameter 'hugoSymbol' when calling suggestVariantUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'hugoSymbol' when calling suggestVariant(Async)"); } // verify the required parameter 'proteinPosition' is set if (proteinPosition == null) { - throw new ApiException("Missing the required parameter 'proteinPosition' when calling suggestVariantUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'proteinPosition' when calling suggestVariant(Async)"); } // verify the required parameter 'curatedResidue' is set if (curatedResidue == null) { - throw new ApiException("Missing the required parameter 'curatedResidue' when calling suggestVariantUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'curatedResidue' when calling suggestVariant(Async)"); } // verify the required parameter 'grch37Transcript' is set if (grch37Transcript == null) { - throw new ApiException("Missing the required parameter 'grch37Transcript' when calling suggestVariantUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'grch37Transcript' when calling suggestVariant(Async)"); } // verify the required parameter 'grch38Transcript' is set if (grch38Transcript == null) { - throw new ApiException("Missing the required parameter 'grch38Transcript' when calling suggestVariantUsingGET(Async)"); + throw new ApiException("Missing the required parameter 'grch38Transcript' when calling suggestVariant(Async)"); } - okhttp3.Call localVarCall = suggestVariantUsingGETCall(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript, _callback); + okhttp3.Call localVarCall = suggestVariantCall(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript, _callback); return localVarCall; } /** - * suggestVariant * - * @param hugoSymbol hugoSymbol (required) - * @param proteinPosition proteinPosition (required) - * @param curatedResidue curatedResidue (required) - * @param grch37Transcript grch37Transcript (required) - * @param grch38Transcript grch38Transcript (required) + * + * @param hugoSymbol (required) + * @param proteinPosition (required) + * @param curatedResidue (required) + * @param grch37Transcript (required) + * @param grch38Transcript (required) * @return AllReferenceTranscriptSuggestionVM * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public AllReferenceTranscriptSuggestionVM suggestVariantUsingGET(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript) throws ApiException { - ApiResponse localVarResp = suggestVariantUsingGETWithHttpInfo(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript); + public AllReferenceTranscriptSuggestionVM suggestVariant(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript) throws ApiException { + ApiResponse localVarResp = suggestVariantWithHttpInfo(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript); return localVarResp.getData(); } /** - * suggestVariant * - * @param hugoSymbol hugoSymbol (required) - * @param proteinPosition proteinPosition (required) - * @param curatedResidue curatedResidue (required) - * @param grch37Transcript grch37Transcript (required) - * @param grch38Transcript grch38Transcript (required) + * + * @param hugoSymbol (required) + * @param proteinPosition (required) + * @param curatedResidue (required) + * @param grch37Transcript (required) + * @param grch38Transcript (required) * @return ApiResponse<AllReferenceTranscriptSuggestionVM> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public ApiResponse suggestVariantUsingGETWithHttpInfo(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript) throws ApiException { - okhttp3.Call localVarCall = suggestVariantUsingGETValidateBeforeCall(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript, null); + public ApiResponse suggestVariantWithHttpInfo(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript) throws ApiException { + okhttp3.Call localVarCall = suggestVariantValidateBeforeCall(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * suggestVariant (asynchronously) + * (asynchronously) * - * @param hugoSymbol hugoSymbol (required) - * @param proteinPosition proteinPosition (required) - * @param curatedResidue curatedResidue (required) - * @param grch37Transcript grch37Transcript (required) - * @param grch38Transcript grch38Transcript (required) + * @param hugoSymbol (required) + * @param proteinPosition (required) + * @param curatedResidue (required) + * @param grch37Transcript (required) + * @param grch38Transcript (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -843,14 +790,11 @@ public ApiResponse suggestVariantUsingGETWit - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
403 Forbidden -
404 Not Found -
*/ - public okhttp3.Call suggestVariantUsingGETAsync(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript, final ApiCallback _callback) throws ApiException { + public okhttp3.Call suggestVariantAsync(String hugoSymbol, Integer proteinPosition, String curatedResidue, String grch37Transcript, String grch38Transcript, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = suggestVariantUsingGETValidateBeforeCall(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript, _callback); + okhttp3.Call localVarCall = suggestVariantValidateBeforeCall(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptDTO.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptDTO.java similarity index 94% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptDTO.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptDTO.java index e0c6bca..8beb6e1 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptDTO.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptDTO.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -25,8 +25,8 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.oncokb.oncokb_transcript.client.EnsemblGene; -import org.oncokb.oncokb_transcript.client.GenomeFragment; +import org.oncokb.oncokb_curation.client.EnsemblGene; +import org.oncokb.oncokb_curation.client.GenomeFragment; import java.io.Serializable; /** @@ -36,53 +36,53 @@ public class TranscriptDTO implements Serializable { private static final long serialVersionUID = 1L; + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID = "ensemblTranscriptId"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID) + private String ensemblTranscriptId; + public static final String SERIALIZED_NAME_CANONICAL = "canonical"; @SerializedName(SERIALIZED_NAME_CANONICAL) private Boolean canonical; - public static final String SERIALIZED_NAME_CHROMOSOME = "chromosome"; - @SerializedName(SERIALIZED_NAME_CHROMOSOME) - private String chromosome; + public static final String SERIALIZED_NAME_ENSEMBL_PROTEIN_ID = "ensemblProteinId"; + @SerializedName(SERIALIZED_NAME_ENSEMBL_PROTEIN_ID) + private String ensemblProteinId; + + public static final String SERIALIZED_NAME_REFERENCE_SEQUENCE_ID = "referenceSequenceId"; + @SerializedName(SERIALIZED_NAME_REFERENCE_SEQUENCE_ID) + private String referenceSequenceId; public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; - public static final String SERIALIZED_NAME_END = "end"; - @SerializedName(SERIALIZED_NAME_END) - private Integer end; - public static final String SERIALIZED_NAME_ENSEMBL_GENE = "ensemblGene"; @SerializedName(SERIALIZED_NAME_ENSEMBL_GENE) private EnsemblGene ensemblGene; - public static final String SERIALIZED_NAME_ENSEMBL_PROTEIN_ID = "ensemblProteinId"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_PROTEIN_ID) - private String ensemblProteinId; - - public static final String SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID = "ensemblTranscriptId"; - @SerializedName(SERIALIZED_NAME_ENSEMBL_TRANSCRIPT_ID) - private String ensemblTranscriptId; - - public static final String SERIALIZED_NAME_EXONS = "exons"; - @SerializedName(SERIALIZED_NAME_EXONS) - private List exons = null; - - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private Long id; + public static final String SERIALIZED_NAME_STRAND = "strand"; + @SerializedName(SERIALIZED_NAME_STRAND) + private Integer strand; - public static final String SERIALIZED_NAME_REFERENCE_SEQUENCE_ID = "referenceSequenceId"; - @SerializedName(SERIALIZED_NAME_REFERENCE_SEQUENCE_ID) - private String referenceSequenceId; + public static final String SERIALIZED_NAME_CHROMOSOME = "chromosome"; + @SerializedName(SERIALIZED_NAME_CHROMOSOME) + private String chromosome; public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) private Integer start; - public static final String SERIALIZED_NAME_STRAND = "strand"; - @SerializedName(SERIALIZED_NAME_STRAND) - private Integer strand; + public static final String SERIALIZED_NAME_END = "end"; + @SerializedName(SERIALIZED_NAME_END) + private Integer end; + + public static final String SERIALIZED_NAME_EXONS = "exons"; + @SerializedName(SERIALIZED_NAME_EXONS) + private List exons = null; public static final String SERIALIZED_NAME_UTRS = "utrs"; @SerializedName(SERIALIZED_NAME_UTRS) @@ -91,287 +91,287 @@ public class TranscriptDTO implements Serializable { public TranscriptDTO() { } - public TranscriptDTO canonical(Boolean canonical) { + public TranscriptDTO id(Long id) { - this.canonical = canonical; + this.id = id; return this; } /** - * Get canonical - * @return canonical + * Get id + * @return id **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public Boolean getCanonical() { - return canonical; + public Long getId() { + return id; } - public void setCanonical(Boolean canonical) { - this.canonical = canonical; + public void setId(Long id) { + this.id = id; } - public TranscriptDTO chromosome(String chromosome) { + public TranscriptDTO ensemblTranscriptId(String ensemblTranscriptId) { - this.chromosome = chromosome; + this.ensemblTranscriptId = ensemblTranscriptId; return this; } /** - * Get chromosome - * @return chromosome + * Get ensemblTranscriptId + * @return ensemblTranscriptId **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getChromosome() { - return chromosome; + public String getEnsemblTranscriptId() { + return ensemblTranscriptId; } - public void setChromosome(String chromosome) { - this.chromosome = chromosome; + public void setEnsemblTranscriptId(String ensemblTranscriptId) { + this.ensemblTranscriptId = ensemblTranscriptId; } - public TranscriptDTO description(String description) { + public TranscriptDTO canonical(Boolean canonical) { - this.description = description; + this.canonical = canonical; return this; } /** - * Get description - * @return description + * Get canonical + * @return canonical **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") - public String getDescription() { - return description; + public Boolean getCanonical() { + return canonical; } - public void setDescription(String description) { - this.description = description; + public void setCanonical(Boolean canonical) { + this.canonical = canonical; } - public TranscriptDTO end(Integer end) { + public TranscriptDTO ensemblProteinId(String ensemblProteinId) { - this.end = end; + this.ensemblProteinId = ensemblProteinId; return this; } /** - * Get end - * @return end + * Get ensemblProteinId + * @return ensemblProteinId **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getEnd() { - return end; + public String getEnsemblProteinId() { + return ensemblProteinId; } - public void setEnd(Integer end) { - this.end = end; + public void setEnsemblProteinId(String ensemblProteinId) { + this.ensemblProteinId = ensemblProteinId; } - public TranscriptDTO ensemblGene(EnsemblGene ensemblGene) { + public TranscriptDTO referenceSequenceId(String referenceSequenceId) { - this.ensemblGene = ensemblGene; + this.referenceSequenceId = referenceSequenceId; return this; } /** - * Get ensemblGene - * @return ensemblGene + * Get referenceSequenceId + * @return referenceSequenceId **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public EnsemblGene getEnsemblGene() { - return ensemblGene; + public String getReferenceSequenceId() { + return referenceSequenceId; } - public void setEnsemblGene(EnsemblGene ensemblGene) { - this.ensemblGene = ensemblGene; + public void setReferenceSequenceId(String referenceSequenceId) { + this.referenceSequenceId = referenceSequenceId; } - public TranscriptDTO ensemblProteinId(String ensemblProteinId) { + public TranscriptDTO description(String description) { - this.ensemblProteinId = ensemblProteinId; + this.description = description; return this; } /** - * Get ensemblProteinId - * @return ensemblProteinId + * Get description + * @return description **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getEnsemblProteinId() { - return ensemblProteinId; + public String getDescription() { + return description; } - public void setEnsemblProteinId(String ensemblProteinId) { - this.ensemblProteinId = ensemblProteinId; + public void setDescription(String description) { + this.description = description; } - public TranscriptDTO ensemblTranscriptId(String ensemblTranscriptId) { + public TranscriptDTO ensemblGene(EnsemblGene ensemblGene) { - this.ensemblTranscriptId = ensemblTranscriptId; + this.ensemblGene = ensemblGene; return this; } /** - * Get ensemblTranscriptId - * @return ensemblTranscriptId + * Get ensemblGene + * @return ensemblGene **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getEnsemblTranscriptId() { - return ensemblTranscriptId; + public EnsemblGene getEnsemblGene() { + return ensemblGene; } - public void setEnsemblTranscriptId(String ensemblTranscriptId) { - this.ensemblTranscriptId = ensemblTranscriptId; + public void setEnsemblGene(EnsemblGene ensemblGene) { + this.ensemblGene = ensemblGene; } - public TranscriptDTO exons(List exons) { + public TranscriptDTO strand(Integer strand) { - this.exons = exons; - return this; - } - - public TranscriptDTO addExonsItem(GenomeFragment exonsItem) { - if (this.exons == null) { - this.exons = new ArrayList(); - } - this.exons.add(exonsItem); + this.strand = strand; return this; } /** - * Get exons - * @return exons + * Get strand + * @return strand **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public List getExons() { - return exons; + public Integer getStrand() { + return strand; } - public void setExons(List exons) { - this.exons = exons; + public void setStrand(Integer strand) { + this.strand = strand; } - public TranscriptDTO id(Long id) { + public TranscriptDTO chromosome(String chromosome) { - this.id = id; + this.chromosome = chromosome; return this; } /** - * Get id - * @return id + * Get chromosome + * @return chromosome **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Long getId() { - return id; + public String getChromosome() { + return chromosome; } - public void setId(Long id) { - this.id = id; + public void setChromosome(String chromosome) { + this.chromosome = chromosome; } - public TranscriptDTO referenceSequenceId(String referenceSequenceId) { + public TranscriptDTO start(Integer start) { - this.referenceSequenceId = referenceSequenceId; + this.start = start; return this; } /** - * Get referenceSequenceId - * @return referenceSequenceId + * Get start + * @return start **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getReferenceSequenceId() { - return referenceSequenceId; + public Integer getStart() { + return start; } - public void setReferenceSequenceId(String referenceSequenceId) { - this.referenceSequenceId = referenceSequenceId; + public void setStart(Integer start) { + this.start = start; } - public TranscriptDTO start(Integer start) { + public TranscriptDTO end(Integer end) { - this.start = start; + this.end = end; return this; } /** - * Get start - * @return start + * Get end + * @return end **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getStart() { - return start; + public Integer getEnd() { + return end; } - public void setStart(Integer start) { - this.start = start; + public void setEnd(Integer end) { + this.end = end; } - public TranscriptDTO strand(Integer strand) { + public TranscriptDTO exons(List exons) { - this.strand = strand; + this.exons = exons; + return this; + } + + public TranscriptDTO addExonsItem(GenomeFragment exonsItem) { + if (this.exons == null) { + this.exons = new ArrayList(); + } + this.exons.add(exonsItem); return this; } /** - * Get strand - * @return strand + * Get exons + * @return exons **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Integer getStrand() { - return strand; + public List getExons() { + return exons; } - public void setStrand(Integer strand) { - this.strand = strand; + public void setExons(List exons) { + this.exons = exons; } @@ -415,42 +415,42 @@ public boolean equals(Object o) { return false; } TranscriptDTO transcriptDTO = (TranscriptDTO) o; - return Objects.equals(this.canonical, transcriptDTO.canonical) && - Objects.equals(this.chromosome, transcriptDTO.chromosome) && - Objects.equals(this.description, transcriptDTO.description) && - Objects.equals(this.end, transcriptDTO.end) && - Objects.equals(this.ensemblGene, transcriptDTO.ensemblGene) && - Objects.equals(this.ensemblProteinId, transcriptDTO.ensemblProteinId) && + return Objects.equals(this.id, transcriptDTO.id) && Objects.equals(this.ensemblTranscriptId, transcriptDTO.ensemblTranscriptId) && - Objects.equals(this.exons, transcriptDTO.exons) && - Objects.equals(this.id, transcriptDTO.id) && + Objects.equals(this.canonical, transcriptDTO.canonical) && + Objects.equals(this.ensemblProteinId, transcriptDTO.ensemblProteinId) && Objects.equals(this.referenceSequenceId, transcriptDTO.referenceSequenceId) && - Objects.equals(this.start, transcriptDTO.start) && + Objects.equals(this.description, transcriptDTO.description) && + Objects.equals(this.ensemblGene, transcriptDTO.ensemblGene) && Objects.equals(this.strand, transcriptDTO.strand) && + Objects.equals(this.chromosome, transcriptDTO.chromosome) && + Objects.equals(this.start, transcriptDTO.start) && + Objects.equals(this.end, transcriptDTO.end) && + Objects.equals(this.exons, transcriptDTO.exons) && Objects.equals(this.utrs, transcriptDTO.utrs); } @Override public int hashCode() { - return Objects.hash(canonical, chromosome, description, end, ensemblGene, ensemblProteinId, ensemblTranscriptId, exons, id, referenceSequenceId, start, strand, utrs); + return Objects.hash(id, ensemblTranscriptId, canonical, ensemblProteinId, referenceSequenceId, description, ensemblGene, strand, chromosome, start, end, exons, utrs); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TranscriptDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" ensemblTranscriptId: ").append(toIndentedString(ensemblTranscriptId)).append("\n"); sb.append(" canonical: ").append(toIndentedString(canonical)).append("\n"); - sb.append(" chromosome: ").append(toIndentedString(chromosome)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" end: ").append(toIndentedString(end)).append("\n"); - sb.append(" ensemblGene: ").append(toIndentedString(ensemblGene)).append("\n"); sb.append(" ensemblProteinId: ").append(toIndentedString(ensemblProteinId)).append("\n"); - sb.append(" ensemblTranscriptId: ").append(toIndentedString(ensemblTranscriptId)).append("\n"); - sb.append(" exons: ").append(toIndentedString(exons)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" referenceSequenceId: ").append(toIndentedString(referenceSequenceId)).append("\n"); - sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" ensemblGene: ").append(toIndentedString(ensemblGene)).append("\n"); sb.append(" strand: ").append(toIndentedString(strand)).append("\n"); + sb.append(" chromosome: ").append(toIndentedString(chromosome)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" exons: ").append(toIndentedString(exons)).append("\n"); sb.append(" utrs: ").append(toIndentedString(utrs)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVM.java similarity index 94% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVM.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVM.java index 5927745..8dee53c 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVM.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVM.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.EnsemblTranscript; +import org.oncokb.oncokb_curation.client.EnsemblTranscript; import java.io.Serializable; /** diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptPairVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptPairVM.java similarity index 95% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptPairVM.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptPairVM.java index db4b247..c259bde 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptPairVM.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptPairVM.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptResourceApi.java new file mode 100644 index 0000000..a752688 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptResourceApi.java @@ -0,0 +1,860 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Pageable; +import org.oncokb.oncokb_curation.client.TranscriptDTO; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TranscriptResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TranscriptResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public TranscriptResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createTranscript + * @param transcriptDTO (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createTranscriptCall(TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = transcriptDTO; + + // create path and map variables + String localVarPath = "/api/transcripts"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createTranscriptValidateBeforeCall(TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'transcriptDTO' is set + if (transcriptDTO == null) { + throw new ApiException("Missing the required parameter 'transcriptDTO' when calling createTranscript(Async)"); + } + + + okhttp3.Call localVarCall = createTranscriptCall(transcriptDTO, _callback); + return localVarCall; + + } + + /** + * + * + * @param transcriptDTO (required) + * @return TranscriptDTO + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public TranscriptDTO createTranscript(TranscriptDTO transcriptDTO) throws ApiException { + ApiResponse localVarResp = createTranscriptWithHttpInfo(transcriptDTO); + return localVarResp.getData(); + } + + /** + * + * + * @param transcriptDTO (required) + * @return ApiResponse<TranscriptDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createTranscriptWithHttpInfo(TranscriptDTO transcriptDTO) throws ApiException { + okhttp3.Call localVarCall = createTranscriptValidateBeforeCall(transcriptDTO, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param transcriptDTO (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createTranscriptAsync(TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createTranscriptValidateBeforeCall(transcriptDTO, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteTranscript + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteTranscriptCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/transcripts/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteTranscriptValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling deleteTranscript(Async)"); + } + + + okhttp3.Call localVarCall = deleteTranscriptCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteTranscript(Long id) throws ApiException { + deleteTranscriptWithHttpInfo(id); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteTranscriptWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = deleteTranscriptValidateBeforeCall(id, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteTranscriptAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteTranscriptValidateBeforeCall(id, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllTranscripts + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllTranscriptsCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/transcripts"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllTranscriptsValidateBeforeCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllTranscripts(Async)"); + } + + + okhttp3.Call localVarCall = getAllTranscriptsCall(pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param pageable (required) + * @return List<TranscriptDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllTranscripts(Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllTranscriptsWithHttpInfo(pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param pageable (required) + * @return ApiResponse<List<TranscriptDTO>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllTranscriptsWithHttpInfo(Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllTranscriptsValidateBeforeCall(pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllTranscriptsAsync(Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllTranscriptsValidateBeforeCall(pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getTranscript + * @param id (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getTranscriptCall(Long id, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/transcripts/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTranscriptValidateBeforeCall(Long id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getTranscript(Async)"); + } + + + okhttp3.Call localVarCall = getTranscriptCall(id, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @return TranscriptDTO + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public TranscriptDTO getTranscript(Long id) throws ApiException { + ApiResponse localVarResp = getTranscriptWithHttpInfo(id); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @return ApiResponse<TranscriptDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getTranscriptWithHttpInfo(Long id) throws ApiException { + okhttp3.Call localVarCall = getTranscriptValidateBeforeCall(id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getTranscriptAsync(Long id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTranscriptValidateBeforeCall(id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for partialUpdateTranscript + * @param id (required) + * @param transcriptDTO (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateTranscriptCall(Long id, TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = transcriptDTO; + + // create path and map variables + String localVarPath = "/api/transcripts/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json", "application/merge-patch+json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call partialUpdateTranscriptValidateBeforeCall(Long id, TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling partialUpdateTranscript(Async)"); + } + + // verify the required parameter 'transcriptDTO' is set + if (transcriptDTO == null) { + throw new ApiException("Missing the required parameter 'transcriptDTO' when calling partialUpdateTranscript(Async)"); + } + + + okhttp3.Call localVarCall = partialUpdateTranscriptCall(id, transcriptDTO, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param transcriptDTO (required) + * @return TranscriptDTO + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public TranscriptDTO partialUpdateTranscript(Long id, TranscriptDTO transcriptDTO) throws ApiException { + ApiResponse localVarResp = partialUpdateTranscriptWithHttpInfo(id, transcriptDTO); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param transcriptDTO (required) + * @return ApiResponse<TranscriptDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse partialUpdateTranscriptWithHttpInfo(Long id, TranscriptDTO transcriptDTO) throws ApiException { + okhttp3.Call localVarCall = partialUpdateTranscriptValidateBeforeCall(id, transcriptDTO, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param transcriptDTO (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call partialUpdateTranscriptAsync(Long id, TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = partialUpdateTranscriptValidateBeforeCall(id, transcriptDTO, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateTranscript + * @param id (required) + * @param transcriptDTO (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateTranscriptCall(Long id, TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = transcriptDTO; + + // create path and map variables + String localVarPath = "/api/transcripts/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTranscriptValidateBeforeCall(Long id, TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateTranscript(Async)"); + } + + // verify the required parameter 'transcriptDTO' is set + if (transcriptDTO == null) { + throw new ApiException("Missing the required parameter 'transcriptDTO' when calling updateTranscript(Async)"); + } + + + okhttp3.Call localVarCall = updateTranscriptCall(id, transcriptDTO, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param transcriptDTO (required) + * @return TranscriptDTO + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public TranscriptDTO updateTranscript(Long id, TranscriptDTO transcriptDTO) throws ApiException { + ApiResponse localVarResp = updateTranscriptWithHttpInfo(id, transcriptDTO); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param transcriptDTO (required) + * @return ApiResponse<TranscriptDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateTranscriptWithHttpInfo(Long id, TranscriptDTO transcriptDTO) throws ApiException { + okhttp3.Call localVarCall = updateTranscriptValidateBeforeCall(id, transcriptDTO, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param transcriptDTO (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateTranscriptAsync(Long id, TranscriptDTO transcriptDTO, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateTranscriptValidateBeforeCall(id, transcriptDTO, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVM.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVM.java similarity index 92% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVM.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVM.java index 7d7fad2..40c08c2 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVM.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVM.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -34,10 +34,6 @@ public class TranscriptSuggestionVM implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_NOTE = "note"; - @SerializedName(SERIALIZED_NAME_NOTE) - private String note; - /** * Gets or Sets referenceGenome */ @@ -89,6 +85,10 @@ public ReferenceGenomeEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_REFERENCE_GENOME) private ReferenceGenomeEnum referenceGenome; + public static final String SERIALIZED_NAME_NOTE = "note"; + @SerializedName(SERIALIZED_NAME_NOTE) + private String note; + public static final String SERIALIZED_NAME_SUGGESTIONS = "suggestions"; @SerializedName(SERIALIZED_NAME_SUGGESTIONS) private List suggestions = null; @@ -96,49 +96,49 @@ public ReferenceGenomeEnum read(final JsonReader jsonReader) throws IOException public TranscriptSuggestionVM() { } - public TranscriptSuggestionVM note(String note) { + public TranscriptSuggestionVM referenceGenome(ReferenceGenomeEnum referenceGenome) { - this.note = note; + this.referenceGenome = referenceGenome; return this; } /** - * Get note - * @return note + * Get referenceGenome + * @return referenceGenome **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getNote() { - return note; + public ReferenceGenomeEnum getReferenceGenome() { + return referenceGenome; } - public void setNote(String note) { - this.note = note; + public void setReferenceGenome(ReferenceGenomeEnum referenceGenome) { + this.referenceGenome = referenceGenome; } - public TranscriptSuggestionVM referenceGenome(ReferenceGenomeEnum referenceGenome) { + public TranscriptSuggestionVM note(String note) { - this.referenceGenome = referenceGenome; + this.note = note; return this; } /** - * Get referenceGenome - * @return referenceGenome + * Get note + * @return note **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public ReferenceGenomeEnum getReferenceGenome() { - return referenceGenome; + public String getNote() { + return note; } - public void setReferenceGenome(ReferenceGenomeEnum referenceGenome) { - this.referenceGenome = referenceGenome; + public void setNote(String note) { + this.note = note; } @@ -182,22 +182,22 @@ public boolean equals(Object o) { return false; } TranscriptSuggestionVM transcriptSuggestionVM = (TranscriptSuggestionVM) o; - return Objects.equals(this.note, transcriptSuggestionVM.note) && - Objects.equals(this.referenceGenome, transcriptSuggestionVM.referenceGenome) && + return Objects.equals(this.referenceGenome, transcriptSuggestionVM.referenceGenome) && + Objects.equals(this.note, transcriptSuggestionVM.note) && Objects.equals(this.suggestions, transcriptSuggestionVM.suggestions); } @Override public int hashCode() { - return Objects.hash(note, referenceGenome, suggestions); + return Objects.hash(referenceGenome, note, suggestions); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TranscriptSuggestionVM {\n"); - sb.append(" note: ").append(toIndentedString(note)).append("\n"); sb.append(" referenceGenome: ").append(toIndentedString(referenceGenome)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); sb.append(" suggestions: ").append(toIndentedString(suggestions)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TumorFormFilter.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TumorFormFilter.java new file mode 100644 index 0000000..38d3812 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/TumorFormFilter.java @@ -0,0 +1,433 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.io.Serializable; + +/** + * TumorFormFilter + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TumorFormFilter implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * Gets or Sets equals + */ + @JsonAdapter(EqualsEnum.Adapter.class) + public enum EqualsEnum { + SOLID("SOLID"), + + LIQUID("LIQUID"), + + MIXED("MIXED"); + + private String value; + + EqualsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EqualsEnum fromValue(String value) { + for (EqualsEnum b : EqualsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EqualsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EqualsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EqualsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_EQUALS = "equals"; + @SerializedName(SERIALIZED_NAME_EQUALS) + private EqualsEnum equals; + + /** + * Gets or Sets notEquals + */ + @JsonAdapter(NotEqualsEnum.Adapter.class) + public enum NotEqualsEnum { + SOLID("SOLID"), + + LIQUID("LIQUID"), + + MIXED("MIXED"); + + private String value; + + NotEqualsEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static NotEqualsEnum fromValue(String value) { + for (NotEqualsEnum b : NotEqualsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final NotEqualsEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public NotEqualsEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return NotEqualsEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_NOT_EQUALS = "notEquals"; + @SerializedName(SERIALIZED_NAME_NOT_EQUALS) + private NotEqualsEnum notEquals; + + public static final String SERIALIZED_NAME_SPECIFIED = "specified"; + @SerializedName(SERIALIZED_NAME_SPECIFIED) + private Boolean specified; + + /** + * Gets or Sets in + */ + @JsonAdapter(InEnum.Adapter.class) + public enum InEnum { + SOLID("SOLID"), + + LIQUID("LIQUID"), + + MIXED("MIXED"); + + private String value; + + InEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static InEnum fromValue(String value) { + for (InEnum b : InEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final InEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public InEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return InEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + private List in = null; + + /** + * Gets or Sets notIn + */ + @JsonAdapter(NotInEnum.Adapter.class) + public enum NotInEnum { + SOLID("SOLID"), + + LIQUID("LIQUID"), + + MIXED("MIXED"); + + private String value; + + NotInEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static NotInEnum fromValue(String value) { + for (NotInEnum b : NotInEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final NotInEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public NotInEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return NotInEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_NOT_IN = "notIn"; + @SerializedName(SERIALIZED_NAME_NOT_IN) + private List notIn = null; + + public TumorFormFilter() { + } + + public TumorFormFilter equals(EqualsEnum equals) { + + this.equals = equals; + return this; + } + + /** + * Get equals + * @return equals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public EqualsEnum getEquals() { + return equals; + } + + + public void setEquals(EqualsEnum equals) { + this.equals = equals; + } + + + public TumorFormFilter notEquals(NotEqualsEnum notEquals) { + + this.notEquals = notEquals; + return this; + } + + /** + * Get notEquals + * @return notEquals + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public NotEqualsEnum getNotEquals() { + return notEquals; + } + + + public void setNotEquals(NotEqualsEnum notEquals) { + this.notEquals = notEquals; + } + + + public TumorFormFilter specified(Boolean specified) { + + this.specified = specified; + return this; + } + + /** + * Get specified + * @return specified + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getSpecified() { + return specified; + } + + + public void setSpecified(Boolean specified) { + this.specified = specified; + } + + + public TumorFormFilter in(List in) { + + this.in = in; + return this; + } + + public TumorFormFilter addInItem(InEnum inItem) { + if (this.in == null) { + this.in = new ArrayList(); + } + this.in.add(inItem); + return this; + } + + /** + * Get in + * @return in + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getIn() { + return in; + } + + + public void setIn(List in) { + this.in = in; + } + + + public TumorFormFilter notIn(List notIn) { + + this.notIn = notIn; + return this; + } + + public TumorFormFilter addNotInItem(NotInEnum notInItem) { + if (this.notIn == null) { + this.notIn = new ArrayList(); + } + this.notIn.add(notInItem); + return this; + } + + /** + * Get notIn + * @return notIn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getNotIn() { + return notIn; + } + + + public void setNotIn(List notIn) { + this.notIn = notIn; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TumorFormFilter tumorFormFilter = (TumorFormFilter) o; + return Objects.equals(this.equals, tumorFormFilter.equals) && + Objects.equals(this.notEquals, tumorFormFilter.notEquals) && + Objects.equals(this.specified, tumorFormFilter.specified) && + Objects.equals(this.in, tumorFormFilter.in) && + Objects.equals(this.notIn, tumorFormFilter.notIn); + } + + @Override + public int hashCode() { + return Objects.hash(equals, notEquals, specified, in, notIn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TumorFormFilter {\n"); + sb.append(" equals: ").append(toIndentedString(equals)).append("\n"); + sb.append(" notEquals: ").append(toIndentedString(notEquals)).append("\n"); + sb.append(" specified: ").append(toIndentedString(specified)).append("\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append(" notIn: ").append(toIndentedString(notIn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/UntranslatedRegion.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UntranslatedRegion.java similarity index 79% rename from oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/UntranslatedRegion.java rename to oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UntranslatedRegion.java index 412913a..8943dbf 100644 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/UntranslatedRegion.java +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UntranslatedRegion.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import java.util.Objects; import java.util.Arrays; @@ -32,45 +32,45 @@ public class UntranslatedRegion implements Serializable { private static final long serialVersionUID = 1L; - public static final String SERIALIZED_NAME_END = "end"; - @SerializedName(SERIALIZED_NAME_END) - private Integer end; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) private Integer start; + public static final String SERIALIZED_NAME_END = "end"; + @SerializedName(SERIALIZED_NAME_END) + private Integer end; + public static final String SERIALIZED_NAME_STRAND = "strand"; @SerializedName(SERIALIZED_NAME_STRAND) private Integer strand; - public static final String SERIALIZED_NAME_TYPE = "type"; - @SerializedName(SERIALIZED_NAME_TYPE) - private String type; - public UntranslatedRegion() { } - public UntranslatedRegion end(Integer end) { + public UntranslatedRegion type(String type) { - this.end = end; + this.type = type; return this; } /** - * End position of UTR - * @return end + * Get type + * @return type **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "End position of UTR") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public Integer getEnd() { - return end; + public String getType() { + return type; } - public void setEnd(Integer end) { - this.end = end; + public void setType(String type) { + this.type = type; } @@ -81,11 +81,11 @@ public UntranslatedRegion start(Integer start) { } /** - * Start position of UTR + * Get start * @return start **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Start position of UTR") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public Integer getStart() { return start; @@ -97,49 +97,49 @@ public void setStart(Integer start) { } - public UntranslatedRegion strand(Integer strand) { + public UntranslatedRegion end(Integer end) { - this.strand = strand; + this.end = end; return this; } /** - * Strand UTR is on, -1 for - and 1 for + - * @return strand + * Get end + * @return end **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Strand UTR is on, -1 for - and 1 for +") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public Integer getStrand() { - return strand; + public Integer getEnd() { + return end; } - public void setStrand(Integer strand) { - this.strand = strand; + public void setEnd(Integer end) { + this.end = end; } - public UntranslatedRegion type(String type) { + public UntranslatedRegion strand(Integer strand) { - this.type = type; + this.strand = strand; return this; } /** - * UTR Type - * @return type + * Get strand + * @return strand **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "UTR Type") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getType() { - return type; + public Integer getStrand() { + return strand; } - public void setType(String type) { - this.type = type; + public void setStrand(Integer strand) { + this.strand = strand; } @@ -152,25 +152,25 @@ public boolean equals(Object o) { return false; } UntranslatedRegion untranslatedRegion = (UntranslatedRegion) o; - return Objects.equals(this.end, untranslatedRegion.end) && + return Objects.equals(this.type, untranslatedRegion.type) && Objects.equals(this.start, untranslatedRegion.start) && - Objects.equals(this.strand, untranslatedRegion.strand) && - Objects.equals(this.type, untranslatedRegion.type); + Objects.equals(this.end, untranslatedRegion.end) && + Objects.equals(this.strand, untranslatedRegion.strand); } @Override public int hashCode() { - return Objects.hash(end, start, strand, type); + return Objects.hash(type, start, end, strand); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UntranslatedRegion {\n"); - sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" strand: ").append(toIndentedString(strand)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/User.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/User.java new file mode 100644 index 0000000..512835a --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/User.java @@ -0,0 +1,306 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.io.Serializable; + +/** + * User + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class User implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_LOGIN = "login"; + @SerializedName(SERIALIZED_NAME_LOGIN) + private String login; + + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) + private String firstName; + + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) + private String lastName; + + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + private String email; + + public static final String SERIALIZED_NAME_ACTIVATED = "activated"; + @SerializedName(SERIALIZED_NAME_ACTIVATED) + private Boolean activated; + + public static final String SERIALIZED_NAME_LANG_KEY = "langKey"; + @SerializedName(SERIALIZED_NAME_LANG_KEY) + private String langKey; + + public static final String SERIALIZED_NAME_IMAGE_URL = "imageUrl"; + @SerializedName(SERIALIZED_NAME_IMAGE_URL) + private String imageUrl; + + public User() { + } + + public User id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public User login(String login) { + + this.login = login; + return this; + } + + /** + * Get login + * @return login + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getLogin() { + return login; + } + + + public void setLogin(String login) { + this.login = login; + } + + + public User firstName(String firstName) { + + this.firstName = firstName; + return this; + } + + /** + * Get firstName + * @return firstName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getFirstName() { + return firstName; + } + + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + + public User lastName(String lastName) { + + this.lastName = lastName; + return this; + } + + /** + * Get lastName + * @return lastName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getLastName() { + return lastName; + } + + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + + public User email(String email) { + + this.email = email; + return this; + } + + /** + * Get email + * @return email + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getEmail() { + return email; + } + + + public void setEmail(String email) { + this.email = email; + } + + + public User activated(Boolean activated) { + + this.activated = activated; + return this; + } + + /** + * Get activated + * @return activated + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Boolean getActivated() { + return activated; + } + + + public void setActivated(Boolean activated) { + this.activated = activated; + } + + + public User langKey(String langKey) { + + this.langKey = langKey; + return this; + } + + /** + * Get langKey + * @return langKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getLangKey() { + return langKey; + } + + + public void setLangKey(String langKey) { + this.langKey = langKey; + } + + + public User imageUrl(String imageUrl) { + + this.imageUrl = imageUrl; + return this; + } + + /** + * Get imageUrl + * @return imageUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getImageUrl() { + return imageUrl; + } + + + public void setImageUrl(String imageUrl) { + this.imageUrl = imageUrl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + User user = (User) o; + return Objects.equals(this.id, user.id) && + Objects.equals(this.login, user.login) && + Objects.equals(this.firstName, user.firstName) && + Objects.equals(this.lastName, user.lastName) && + Objects.equals(this.email, user.email) && + Objects.equals(this.activated, user.activated) && + Objects.equals(this.langKey, user.langKey) && + Objects.equals(this.imageUrl, user.imageUrl); + } + + @Override + public int hashCode() { + return Objects.hash(id, login, firstName, lastName, email, activated, langKey, imageUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class User {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" login: ").append(toIndentedString(login)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" activated: ").append(toIndentedString(activated)).append("\n"); + sb.append(" langKey: ").append(toIndentedString(langKey)).append("\n"); + sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UserDTO.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UserDTO.java new file mode 100644 index 0000000..b38dc41 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UserDTO.java @@ -0,0 +1,463 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.threeten.bp.OffsetDateTime; +import java.io.Serializable; + +/** + * UserDTO + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UserDTO implements Serializable { + private static final long serialVersionUID = 1L; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private Long id; + + public static final String SERIALIZED_NAME_LOGIN = "login"; + @SerializedName(SERIALIZED_NAME_LOGIN) + private String login; + + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) + private String firstName; + + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) + private String lastName; + + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + private String email; + + public static final String SERIALIZED_NAME_IMAGE_URL = "imageUrl"; + @SerializedName(SERIALIZED_NAME_IMAGE_URL) + private String imageUrl; + + public static final String SERIALIZED_NAME_ACTIVATED = "activated"; + @SerializedName(SERIALIZED_NAME_ACTIVATED) + private Boolean activated; + + public static final String SERIALIZED_NAME_LANG_KEY = "langKey"; + @SerializedName(SERIALIZED_NAME_LANG_KEY) + private String langKey; + + public static final String SERIALIZED_NAME_CREATED_BY = "createdBy"; + @SerializedName(SERIALIZED_NAME_CREATED_BY) + private String createdBy; + + public static final String SERIALIZED_NAME_CREATED_DATE = "createdDate"; + @SerializedName(SERIALIZED_NAME_CREATED_DATE) + private OffsetDateTime createdDate; + + public static final String SERIALIZED_NAME_LAST_MODIFIED_BY = "lastModifiedBy"; + @SerializedName(SERIALIZED_NAME_LAST_MODIFIED_BY) + private String lastModifiedBy; + + public static final String SERIALIZED_NAME_LAST_MODIFIED_DATE = "lastModifiedDate"; + @SerializedName(SERIALIZED_NAME_LAST_MODIFIED_DATE) + private OffsetDateTime lastModifiedDate; + + public static final String SERIALIZED_NAME_AUTHORITIES = "authorities"; + @SerializedName(SERIALIZED_NAME_AUTHORITIES) + private Set authorities = null; + + public UserDTO() { + } + + public UserDTO id(Long id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Long getId() { + return id; + } + + + public void setId(Long id) { + this.id = id; + } + + + public UserDTO login(String login) { + + this.login = login; + return this; + } + + /** + * Get login + * @return login + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getLogin() { + return login; + } + + + public void setLogin(String login) { + this.login = login; + } + + + public UserDTO firstName(String firstName) { + + this.firstName = firstName; + return this; + } + + /** + * Get firstName + * @return firstName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getFirstName() { + return firstName; + } + + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + + public UserDTO lastName(String lastName) { + + this.lastName = lastName; + return this; + } + + /** + * Get lastName + * @return lastName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getLastName() { + return lastName; + } + + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + + public UserDTO email(String email) { + + this.email = email; + return this; + } + + /** + * Get email + * @return email + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getEmail() { + return email; + } + + + public void setEmail(String email) { + this.email = email; + } + + + public UserDTO imageUrl(String imageUrl) { + + this.imageUrl = imageUrl; + return this; + } + + /** + * Get imageUrl + * @return imageUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getImageUrl() { + return imageUrl; + } + + + public void setImageUrl(String imageUrl) { + this.imageUrl = imageUrl; + } + + + public UserDTO activated(Boolean activated) { + + this.activated = activated; + return this; + } + + /** + * Get activated + * @return activated + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Boolean getActivated() { + return activated; + } + + + public void setActivated(Boolean activated) { + this.activated = activated; + } + + + public UserDTO langKey(String langKey) { + + this.langKey = langKey; + return this; + } + + /** + * Get langKey + * @return langKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getLangKey() { + return langKey; + } + + + public void setLangKey(String langKey) { + this.langKey = langKey; + } + + + public UserDTO createdBy(String createdBy) { + + this.createdBy = createdBy; + return this; + } + + /** + * Get createdBy + * @return createdBy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getCreatedBy() { + return createdBy; + } + + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + + public UserDTO createdDate(OffsetDateTime createdDate) { + + this.createdDate = createdDate; + return this; + } + + /** + * Get createdDate + * @return createdDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getCreatedDate() { + return createdDate; + } + + + public void setCreatedDate(OffsetDateTime createdDate) { + this.createdDate = createdDate; + } + + + public UserDTO lastModifiedBy(String lastModifiedBy) { + + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + * Get lastModifiedBy + * @return lastModifiedBy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getLastModifiedBy() { + return lastModifiedBy; + } + + + public void setLastModifiedBy(String lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + + public UserDTO lastModifiedDate(OffsetDateTime lastModifiedDate) { + + this.lastModifiedDate = lastModifiedDate; + return this; + } + + /** + * Get lastModifiedDate + * @return lastModifiedDate + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getLastModifiedDate() { + return lastModifiedDate; + } + + + public void setLastModifiedDate(OffsetDateTime lastModifiedDate) { + this.lastModifiedDate = lastModifiedDate; + } + + + public UserDTO authorities(Set authorities) { + + this.authorities = authorities; + return this; + } + + public UserDTO addAuthoritiesItem(String authoritiesItem) { + if (this.authorities == null) { + this.authorities = new LinkedHashSet(); + } + this.authorities.add(authoritiesItem); + return this; + } + + /** + * Get authorities + * @return authorities + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Set getAuthorities() { + return authorities; + } + + + public void setAuthorities(Set authorities) { + this.authorities = authorities; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserDTO userDTO = (UserDTO) o; + return Objects.equals(this.id, userDTO.id) && + Objects.equals(this.login, userDTO.login) && + Objects.equals(this.firstName, userDTO.firstName) && + Objects.equals(this.lastName, userDTO.lastName) && + Objects.equals(this.email, userDTO.email) && + Objects.equals(this.imageUrl, userDTO.imageUrl) && + Objects.equals(this.activated, userDTO.activated) && + Objects.equals(this.langKey, userDTO.langKey) && + Objects.equals(this.createdBy, userDTO.createdBy) && + Objects.equals(this.createdDate, userDTO.createdDate) && + Objects.equals(this.lastModifiedBy, userDTO.lastModifiedBy) && + Objects.equals(this.lastModifiedDate, userDTO.lastModifiedDate) && + Objects.equals(this.authorities, userDTO.authorities); + } + + @Override + public int hashCode() { + return Objects.hash(id, login, firstName, lastName, email, imageUrl, activated, langKey, createdBy, createdDate, lastModifiedBy, lastModifiedDate, authorities); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" login: ").append(toIndentedString(login)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); + sb.append(" activated: ").append(toIndentedString(activated)).append("\n"); + sb.append(" langKey: ").append(toIndentedString(langKey)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" createdDate: ").append(toIndentedString(createdDate)).append("\n"); + sb.append(" lastModifiedBy: ").append(toIndentedString(lastModifiedBy)).append("\n"); + sb.append(" lastModifiedDate: ").append(toIndentedString(lastModifiedDate)).append("\n"); + sb.append(" authorities: ").append(toIndentedString(authorities)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UserResourceApi.java b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UserResourceApi.java new file mode 100644 index 0000000..eb8b672 --- /dev/null +++ b/oncokbCurationApiClient/src/main/java/org/oncokb/oncokb_curation/client/UserResourceApi.java @@ -0,0 +1,724 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiCallback; +import org.oncokb.oncokb_curation.ApiClient; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.ApiResponse; +import org.oncokb.oncokb_curation.Configuration; +import org.oncokb.oncokb_curation.Pair; +import org.oncokb.oncokb_curation.ProgressRequestBody; +import org.oncokb.oncokb_curation.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import org.oncokb.oncokb_curation.client.Pageable; +import org.oncokb.oncokb_curation.client.User; +import org.oncokb.oncokb_curation.client.UserDTO; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class UserResourceApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public UserResourceApi() { + this(Configuration.getDefaultApiClient()); + } + + public UserResourceApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createUser + * @param userDTO (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createUserCall(UserDTO userDTO, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = userDTO; + + // create path and map variables + String localVarPath = "/api/admin/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createUserValidateBeforeCall(UserDTO userDTO, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'userDTO' is set + if (userDTO == null) { + throw new ApiException("Missing the required parameter 'userDTO' when calling createUser(Async)"); + } + + + okhttp3.Call localVarCall = createUserCall(userDTO, _callback); + return localVarCall; + + } + + /** + * + * + * @param userDTO (required) + * @return User + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public User createUser(UserDTO userDTO) throws ApiException { + ApiResponse localVarResp = createUserWithHttpInfo(userDTO); + return localVarResp.getData(); + } + + /** + * + * + * @param userDTO (required) + * @return ApiResponse<User> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse createUserWithHttpInfo(UserDTO userDTO) throws ApiException { + okhttp3.Call localVarCall = createUserValidateBeforeCall(userDTO, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param userDTO (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call createUserAsync(UserDTO userDTO, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createUserValidateBeforeCall(userDTO, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for deleteUser + * @param login (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteUserCall(String login, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/admin/users/{login}" + .replaceAll("\\{" + "login" + "\\}", localVarApiClient.escapeString(login.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUserValidateBeforeCall(String login, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'login' is set + if (login == null) { + throw new ApiException("Missing the required parameter 'login' when calling deleteUser(Async)"); + } + + + okhttp3.Call localVarCall = deleteUserCall(login, _callback); + return localVarCall; + + } + + /** + * + * + * @param login (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public void deleteUser(String login) throws ApiException { + deleteUserWithHttpInfo(login); + } + + /** + * + * + * @param login (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse deleteUserWithHttpInfo(String login) throws ApiException { + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(login, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * + * @param login (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call deleteUserAsync(String login, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUserValidateBeforeCall(login, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllUsers + * @param pageable (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllUsersCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/admin/users"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pageable != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageable", pageable)); + } + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllUsersValidateBeforeCall(Pageable pageable, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'pageable' is set + if (pageable == null) { + throw new ApiException("Missing the required parameter 'pageable' when calling getAllUsers(Async)"); + } + + + okhttp3.Call localVarCall = getAllUsersCall(pageable, _callback); + return localVarCall; + + } + + /** + * + * + * @param pageable (required) + * @return List<UserDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public List getAllUsers(Pageable pageable) throws ApiException { + ApiResponse> localVarResp = getAllUsersWithHttpInfo(pageable); + return localVarResp.getData(); + } + + /** + * + * + * @param pageable (required) + * @return ApiResponse<List<UserDTO>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse> getAllUsersWithHttpInfo(Pageable pageable) throws ApiException { + okhttp3.Call localVarCall = getAllUsersValidateBeforeCall(pageable, null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param pageable (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getAllUsersAsync(Pageable pageable, final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllUsersValidateBeforeCall(pageable, _callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getUser + * @param login (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getUserCall(String login, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/api/admin/users/{login}" + .replaceAll("\\{" + "login" + "\\}", localVarApiClient.escapeString(login.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getUserValidateBeforeCall(String login, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'login' is set + if (login == null) { + throw new ApiException("Missing the required parameter 'login' when calling getUser(Async)"); + } + + + okhttp3.Call localVarCall = getUserCall(login, _callback); + return localVarCall; + + } + + /** + * + * + * @param login (required) + * @return UserDTO + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserDTO getUser(String login) throws ApiException { + ApiResponse localVarResp = getUserWithHttpInfo(login); + return localVarResp.getData(); + } + + /** + * + * + * @param login (required) + * @return ApiResponse<UserDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse getUserWithHttpInfo(String login) throws ApiException { + okhttp3.Call localVarCall = getUserValidateBeforeCall(login, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param login (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call getUserAsync(String login, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getUserValidateBeforeCall(login, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateUser + * @param id (required) + * @param userDTO (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateUserCall(Long id, UserDTO userDTO, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = userDTO; + + // create path and map variables + String localVarPath = "/api/admin/users/{id}" + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "*/*" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarHeaderParams != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateUserValidateBeforeCall(Long id, UserDTO userDTO, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateUser(Async)"); + } + + // verify the required parameter 'userDTO' is set + if (userDTO == null) { + throw new ApiException("Missing the required parameter 'userDTO' when calling updateUser(Async)"); + } + + + okhttp3.Call localVarCall = updateUserCall(id, userDTO, _callback); + return localVarCall; + + } + + /** + * + * + * @param id (required) + * @param userDTO (required) + * @return UserDTO + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public UserDTO updateUser(Long id, UserDTO userDTO) throws ApiException { + ApiResponse localVarResp = updateUserWithHttpInfo(id, userDTO); + return localVarResp.getData(); + } + + /** + * + * + * @param id (required) + * @param userDTO (required) + * @return ApiResponse<UserDTO> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public ApiResponse updateUserWithHttpInfo(Long id, UserDTO userDTO) throws ApiException { + okhttp3.Call localVarCall = updateUserValidateBeforeCall(id, userDTO, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param id (required) + * @param userDTO (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
200 OK -
+ */ + public okhttp3.Call updateUserAsync(Long id, UserDTO userDTO, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateUserValidateBeforeCall(id, userDTO, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AccountResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AccountResourceApiTest.java new file mode 100644 index 0000000..8e3f108 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AccountResourceApiTest.java @@ -0,0 +1,77 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.UserDTO; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AccountResourceApi + */ +@Ignore +public class AccountResourceApiTest { + + private final AccountResourceApi api = new AccountResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAccountTest() throws ApiException { + UserDTO response = api.getAccount(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFirebaseTokenTest() throws ApiException { + String response = api.getFirebaseToken(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void isAuthenticatedTest() throws ApiException { + String response = api.isAuthenticated(); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBodyTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBodyTest.java similarity index 87% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBodyTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBodyTest.java index fcd2f88..2ee703f 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBodyTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AddEnsemblGeneBodyTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,35 +41,35 @@ public void testAddEnsemblGeneBody() { } /** - * Test the property 'canonical' + * Test the property 'referenceGenome' */ @Test - public void canonicalTest() { - // TODO: test canonical + public void referenceGenomeTest() { + // TODO: test referenceGenome } /** - * Test the property 'ensemblGeneId' + * Test the property 'entrezGeneId' */ @Test - public void ensemblGeneIdTest() { - // TODO: test ensemblGeneId + public void entrezGeneIdTest() { + // TODO: test entrezGeneId } /** - * Test the property 'entrezGeneId' + * Test the property 'ensemblGeneId' */ @Test - public void entrezGeneIdTest() { - // TODO: test entrezGeneId + public void ensemblGeneIdTest() { + // TODO: test ensemblGeneId } /** - * Test the property 'referenceGenome' + * Test the property 'canonical' */ @Test - public void referenceGenomeTest() { - // TODO: test referenceGenome + public void canonicalTest() { + // TODO: test canonical } } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AddTranscriptBodyTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AddTranscriptBodyTest.java similarity index 87% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AddTranscriptBodyTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AddTranscriptBodyTest.java index c97aa59..b2964d0 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AddTranscriptBodyTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AddTranscriptBodyTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,35 +41,35 @@ public void testAddTranscriptBody() { } /** - * Test the property 'canonical' + * Test the property 'entrezGeneId' */ @Test - public void canonicalTest() { - // TODO: test canonical + public void entrezGeneIdTest() { + // TODO: test entrezGeneId } /** - * Test the property 'ensemblTranscriptId' + * Test the property 'referenceGenome' */ @Test - public void ensemblTranscriptIdTest() { - // TODO: test ensemblTranscriptId + public void referenceGenomeTest() { + // TODO: test referenceGenome } /** - * Test the property 'entrezGeneId' + * Test the property 'ensemblTranscriptId' */ @Test - public void entrezGeneIdTest() { - // TODO: test entrezGeneId + public void ensemblTranscriptIdTest() { + // TODO: test ensemblTranscriptId } /** - * Test the property 'referenceGenome' + * Test the property 'canonical' */ @Test - public void referenceGenomeTest() { - // TODO: test referenceGenome + public void canonicalTest() { + // TODO: test canonical } } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVMTest.java similarity index 81% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVMTest.java index 8b7543e..80f8fbf 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AllReferenceTranscriptSuggestionVMTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.TranscriptSuggestionVM; +import org.oncokb.oncokb_curation.client.TranscriptSuggestionVM; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationControllerApiTest.java new file mode 100644 index 0000000..aaa9135 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationControllerApiTest.java @@ -0,0 +1,50 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Alteration; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AlterationControllerApi + */ +@Ignore +public class AlterationControllerApiTest { + + private final AlterationControllerApi api = new AlterationControllerApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void annotateAlterationTest() throws ApiException { + Alteration alteration = null; + Alteration response = api.annotateAlteration(alteration); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationCriteriaTest.java new file mode 100644 index 0000000..b40b18e --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationCriteriaTest.java @@ -0,0 +1,142 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.IntegerFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AlterationCriteria + */ +public class AlterationCriteriaTest { + private final AlterationCriteria model = new AlterationCriteria(); + + /** + * Model tests for AlterationCriteria + */ + @Test + public void testAlterationCriteria() { + // TODO: test AlterationCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'alteration' + */ + @Test + public void alterationTest() { + // TODO: test alteration + } + + /** + * Test the property 'proteinStart' + */ + @Test + public void proteinStartTest() { + // TODO: test proteinStart + } + + /** + * Test the property 'proteinEnd' + */ + @Test + public void proteinEndTest() { + // TODO: test proteinEnd + } + + /** + * Test the property 'refResidues' + */ + @Test + public void refResiduesTest() { + // TODO: test refResidues + } + + /** + * Test the property 'variantResidues' + */ + @Test + public void variantResiduesTest() { + // TODO: test variantResidues + } + + /** + * Test the property 'biomarkerAssociationId' + */ + @Test + public void biomarkerAssociationIdTest() { + // TODO: test biomarkerAssociationId + } + + /** + * Test the property 'referenceGenomesId' + */ + @Test + public void referenceGenomesIdTest() { + // TODO: test referenceGenomesId + } + + /** + * Test the property 'geneId' + */ + @Test + public void geneIdTest() { + // TODO: test geneId + } + + /** + * Test the property 'consequenceId' + */ + @Test + public void consequenceIdTest() { + // TODO: test consequenceId + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenomeTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenomeTest.java new file mode 100644 index 0000000..c9bbaf7 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationReferenceGenomeTest.java @@ -0,0 +1,68 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.Alteration; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AlterationReferenceGenome + */ +public class AlterationReferenceGenomeTest { + private final AlterationReferenceGenome model = new AlterationReferenceGenome(); + + /** + * Model tests for AlterationReferenceGenome + */ + @Test + public void testAlterationReferenceGenome() { + // TODO: test AlterationReferenceGenome + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'referenceGenome' + */ + @Test + public void referenceGenomeTest() { + // TODO: test referenceGenome + } + + /** + * Test the property 'alteration' + */ + @Test + public void alterationTest() { + // TODO: test alteration + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationResourceApiTest.java new file mode 100644 index 0000000..0616338 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationResourceApiTest.java @@ -0,0 +1,176 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Alteration; +import org.oncokb.oncokb_curation.client.AlterationCriteria; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AlterationResourceApi + */ +@Ignore +public class AlterationResourceApiTest { + + private final AlterationResourceApi api = new AlterationResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countAlterationsTest() throws ApiException { + AlterationCriteria criteria = null; + Long response = api.countAlterations(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createAlterationTest() throws ApiException { + Alteration alteration = null; + Alteration response = api.createAlteration(alteration); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteAlterationTest() throws ApiException { + Long id = null; + api.deleteAlteration(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void findByGeneIdTest() throws ApiException { + Long id = null; + List response = api.findByGeneId(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllAlterationsTest() throws ApiException { + AlterationCriteria criteria = null; + Pageable pageable = null; + List response = api.getAllAlterations(criteria, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAlterationTest() throws ApiException { + Long id = null; + Alteration response = api.getAlteration(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateAlterationTest() throws ApiException { + Long id = null; + Alteration alteration = null; + Alteration response = api.partialUpdateAlteration(id, alteration); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchAlterationsTest() throws ApiException { + String query = null; + Pageable pageable = null; + List response = api.searchAlterations(query, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateAlterationTest() throws ApiException { + Long id = null; + Alteration alteration = null; + Alteration response = api.updateAlteration(id, alteration); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationTest.java new file mode 100644 index 0000000..af58b74 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AlterationTest.java @@ -0,0 +1,138 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.AlterationReferenceGenome; +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.Consequence; +import org.oncokb.oncokb_curation.client.Gene; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for Alteration + */ +public class AlterationTest { + private final Alteration model = new Alteration(); + + /** + * Model tests for Alteration + */ + @Test + public void testAlteration() { + // TODO: test Alteration + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'alteration' + */ + @Test + public void alterationTest() { + // TODO: test alteration + } + + /** + * Test the property 'proteinStart' + */ + @Test + public void proteinStartTest() { + // TODO: test proteinStart + } + + /** + * Test the property 'proteinEnd' + */ + @Test + public void proteinEndTest() { + // TODO: test proteinEnd + } + + /** + * Test the property 'refResidues' + */ + @Test + public void refResiduesTest() { + // TODO: test refResidues + } + + /** + * Test the property 'variantResidues' + */ + @Test + public void variantResiduesTest() { + // TODO: test variantResidues + } + + /** + * Test the property 'referenceGenomes' + */ + @Test + public void referenceGenomesTest() { + // TODO: test referenceGenomes + } + + /** + * Test the property 'genes' + */ + @Test + public void genesTest() { + // TODO: test genes + } + + /** + * Test the property 'consequence' + */ + @Test + public void consequenceTest() { + // TODO: test consequence + } + + /** + * Test the property 'biomarkerAssociations' + */ + @Test + public void biomarkerAssociationsTest() { + // TODO: test biomarkerAssociations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleCriteriaTest.java new file mode 100644 index 0000000..5ed8bb9 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleCriteriaTest.java @@ -0,0 +1,117 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ArticleCriteria + */ +public class ArticleCriteriaTest { + private final ArticleCriteria model = new ArticleCriteria(); + + /** + * Model tests for ArticleCriteria + */ + @Test + public void testArticleCriteria() { + // TODO: test ArticleCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'pmid' + */ + @Test + public void pmidTest() { + // TODO: test pmid + } + + /** + * Test the property 'journal' + */ + @Test + public void journalTest() { + // TODO: test journal + } + + /** + * Test the property 'pubDate' + */ + @Test + public void pubDateTest() { + // TODO: test pubDate + } + + /** + * Test the property 'volume' + */ + @Test + public void volumeTest() { + // TODO: test volume + } + + /** + * Test the property 'issue' + */ + @Test + public void issueTest() { + // TODO: test issue + } + + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } + + /** + * Test the property 'authors' + */ + @Test + public void authorsTest() { + // TODO: test authors + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleResourceApiTest.java new file mode 100644 index 0000000..84e56ca --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleResourceApiTest.java @@ -0,0 +1,161 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Article; +import org.oncokb.oncokb_curation.client.ArticleCriteria; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ArticleResourceApi + */ +@Ignore +public class ArticleResourceApiTest { + + private final ArticleResourceApi api = new ArticleResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countArticlesTest() throws ApiException { + ArticleCriteria criteria = null; + Long response = api.countArticles(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createArticleTest() throws ApiException { + Article article = null; + Article response = api.createArticle(article); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteArticleTest() throws ApiException { + Long id = null; + api.deleteArticle(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllArticlesTest() throws ApiException { + ArticleCriteria criteria = null; + Pageable pageable = null; + List
response = api.getAllArticles(criteria, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getArticleTest() throws ApiException { + Long id = null; + Article response = api.getArticle(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateArticleTest() throws ApiException { + Long id = null; + Article article = null; + Article response = api.partialUpdateArticle(id, article); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchArticlesTest() throws ApiException { + String query = null; + Pageable pageable = null; + List
response = api.searchArticles(query, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateArticleTest() throws ApiException { + Long id = null; + Article article = null; + Article response = api.updateArticle(id, article); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleTest.java new file mode 100644 index 0000000..8097c22 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ArticleTest.java @@ -0,0 +1,115 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for Article + */ +public class ArticleTest { + private final Article model = new Article(); + + /** + * Model tests for Article + */ + @Test + public void testArticle() { + // TODO: test Article + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'pmid' + */ + @Test + public void pmidTest() { + // TODO: test pmid + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'journal' + */ + @Test + public void journalTest() { + // TODO: test journal + } + + /** + * Test the property 'pubDate' + */ + @Test + public void pubDateTest() { + // TODO: test pubDate + } + + /** + * Test the property 'volume' + */ + @Test + public void volumeTest() { + // TODO: test volume + } + + /** + * Test the property 'issue' + */ + @Test + public void issueTest() { + // TODO: test issue + } + + /** + * Test the property 'pages' + */ + @Test + public void pagesTest() { + // TODO: test pages + } + + /** + * Test the property 'authors' + */ + @Test + public void authorsTest() { + // TODO: test authors + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApiTest.java new file mode 100644 index 0000000..ea672dd --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AuthInfoResourceApiTest.java @@ -0,0 +1,49 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.AuthInfoVM; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for AuthInfoResourceApi + */ +@Ignore +public class AuthInfoResourceApiTest { + + private final AuthInfoResourceApi api = new AuthInfoResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAuthInfoTest() throws ApiException { + AuthInfoVM response = api.getAuthInfo(); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AuthInfoVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AuthInfoVMTest.java new file mode 100644 index 0000000..6017565 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/AuthInfoVMTest.java @@ -0,0 +1,59 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AuthInfoVM + */ +public class AuthInfoVMTest { + private final AuthInfoVM model = new AuthInfoVM(); + + /** + * Model tests for AuthInfoVM + */ + @Test + public void testAuthInfoVM() { + // TODO: test AuthInfoVM + } + + /** + * Test the property 'issuer' + */ + @Test + public void issuerTest() { + // TODO: test issuer + } + + /** + * Test the property 'clientId' + */ + @Test + public void clientIdTest() { + // TODO: test clientId + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTOTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTOTest.java new file mode 100644 index 0000000..5dceeaf --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationDTOTest.java @@ -0,0 +1,94 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BiomarkerAssociationDTO + */ +public class BiomarkerAssociationDTOTest { + private final BiomarkerAssociationDTO model = new BiomarkerAssociationDTO(); + + /** + * Model tests for BiomarkerAssociationDTO + */ + @Test + public void testBiomarkerAssociationDTO() { + // TODO: test BiomarkerAssociationDTO + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'alterations' + */ + @Test + public void alterationsTest() { + // TODO: test alterations + } + + /** + * Test the property 'drugs' + */ + @Test + public void drugsTest() { + // TODO: test drugs + } + + /** + * Test the property 'fdaSubmissions' + */ + @Test + public void fdaSubmissionsTest() { + // TODO: test fdaSubmissions + } + + /** + * Test the property 'cancerType' + */ + @Test + public void cancerTypeTest() { + // TODO: test cancerType + } + + /** + * Test the property 'gene' + */ + @Test + public void geneTest() { + // TODO: test gene + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApiTest.java new file mode 100644 index 0000000..df8ef67 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationResourceApiTest.java @@ -0,0 +1,142 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.BiomarkerAssociationDTO; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for BiomarkerAssociationResourceApi + */ +@Ignore +public class BiomarkerAssociationResourceApiTest { + + private final BiomarkerAssociationResourceApi api = new BiomarkerAssociationResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createBiomarkerAssociationTest() throws ApiException { + BiomarkerAssociationDTO biomarkerAssociationDTO = null; + BiomarkerAssociation response = api.createBiomarkerAssociation(biomarkerAssociationDTO); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteBiomarkerAssociationTest() throws ApiException { + Long id = null; + api.deleteBiomarkerAssociation(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllBiomarkerAssociationsTest() throws ApiException { + List response = api.getAllBiomarkerAssociations(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getBiomarkerAssociationTest() throws ApiException { + Long id = null; + BiomarkerAssociation response = api.getBiomarkerAssociation(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getBiomarkerAssociationByCompanionDiagnosticDeviceTest() throws ApiException { + Long id = null; + List response = api.getBiomarkerAssociationByCompanionDiagnosticDevice(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateBiomarkerAssociationTest() throws ApiException { + Long id = null; + BiomarkerAssociation biomarkerAssociation = null; + BiomarkerAssociation response = api.partialUpdateBiomarkerAssociation(id, biomarkerAssociation); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateBiomarkerAssociationTest() throws ApiException { + Long id = null; + BiomarkerAssociation biomarkerAssociation = null; + BiomarkerAssociation response = api.updateBiomarkerAssociation(id, biomarkerAssociation); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationTest.java new file mode 100644 index 0000000..f089bf7 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BiomarkerAssociationTest.java @@ -0,0 +1,99 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.Alteration; +import org.oncokb.oncokb_curation.client.CancerType; +import org.oncokb.oncokb_curation.client.Drug; +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.Gene; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BiomarkerAssociation + */ +public class BiomarkerAssociationTest { + private final BiomarkerAssociation model = new BiomarkerAssociation(); + + /** + * Model tests for BiomarkerAssociation + */ + @Test + public void testBiomarkerAssociation() { + // TODO: test BiomarkerAssociation + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'alterations' + */ + @Test + public void alterationsTest() { + // TODO: test alterations + } + + /** + * Test the property 'drugs' + */ + @Test + public void drugsTest() { + // TODO: test drugs + } + + /** + * Test the property 'fdaSubmissions' + */ + @Test + public void fdaSubmissionsTest() { + // TODO: test fdaSubmissions + } + + /** + * Test the property 'cancerType' + */ + @Test + public void cancerTypeTest() { + // TODO: test cancerType + } + + /** + * Test the property 'gene' + */ + @Test + public void geneTest() { + // TODO: test gene + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BooleanFilterTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BooleanFilterTest.java new file mode 100644 index 0000000..c2c344d --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/BooleanFilterTest.java @@ -0,0 +1,85 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for BooleanFilter + */ +public class BooleanFilterTest { + private final BooleanFilter model = new BooleanFilter(); + + /** + * Model tests for BooleanFilter + */ + @Test + public void testBooleanFilter() { + // TODO: test BooleanFilter + } + + /** + * Test the property 'equals' + */ + @Test + public void equalsTest() { + // TODO: test equals + } + + /** + * Test the property 'notEquals' + */ + @Test + public void notEqualsTest() { + // TODO: test notEquals + } + + /** + * Test the property 'specified' + */ + @Test + public void specifiedTest() { + // TODO: test specified + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeCriteriaTest.java new file mode 100644 index 0000000..472c4e0 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeCriteriaTest.java @@ -0,0 +1,143 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.IntegerFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.oncokb.oncokb_curation.client.TumorFormFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CancerTypeCriteria + */ +public class CancerTypeCriteriaTest { + private final CancerTypeCriteria model = new CancerTypeCriteria(); + + /** + * Model tests for CancerTypeCriteria + */ + @Test + public void testCancerTypeCriteria() { + // TODO: test CancerTypeCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'color' + */ + @Test + public void colorTest() { + // TODO: test color + } + + /** + * Test the property 'level' + */ + @Test + public void levelTest() { + // TODO: test level + } + + /** + * Test the property 'mainType' + */ + @Test + public void mainTypeTest() { + // TODO: test mainType + } + + /** + * Test the property 'subtype' + */ + @Test + public void subtypeTest() { + // TODO: test subtype + } + + /** + * Test the property 'tissue' + */ + @Test + public void tissueTest() { + // TODO: test tissue + } + + /** + * Test the property 'tumorForm' + */ + @Test + public void tumorFormTest() { + // TODO: test tumorForm + } + + /** + * Test the property 'childrenId' + */ + @Test + public void childrenIdTest() { + // TODO: test childrenId + } + + /** + * Test the property 'biomarkerAssociationId' + */ + @Test + public void biomarkerAssociationIdTest() { + // TODO: test biomarkerAssociationId + } + + /** + * Test the property 'parentId' + */ + @Test + public void parentIdTest() { + // TODO: test parentId + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApiTest.java new file mode 100644 index 0000000..f470044 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeResourceApiTest.java @@ -0,0 +1,161 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.CancerType; +import org.oncokb.oncokb_curation.client.CancerTypeCriteria; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CancerTypeResourceApi + */ +@Ignore +public class CancerTypeResourceApiTest { + + private final CancerTypeResourceApi api = new CancerTypeResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countCancerTypesTest() throws ApiException { + CancerTypeCriteria criteria = null; + Long response = api.countCancerTypes(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createCancerTypeTest() throws ApiException { + CancerType cancerType = null; + CancerType response = api.createCancerType(cancerType); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteCancerTypeTest() throws ApiException { + Long id = null; + api.deleteCancerType(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllCancerTypesTest() throws ApiException { + CancerTypeCriteria criteria = null; + Pageable pageable = null; + List response = api.getAllCancerTypes(criteria, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCancerTypeTest() throws ApiException { + Long id = null; + CancerType response = api.getCancerType(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateCancerTypeTest() throws ApiException { + Long id = null; + CancerType cancerType = null; + CancerType response = api.partialUpdateCancerType(id, cancerType); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchCancerTypesTest() throws ApiException { + String query = null; + Pageable pageable = null; + List response = api.searchCancerTypes(query, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCancerTypeTest() throws ApiException { + Long id = null; + CancerType cancerType = null; + CancerType response = api.updateCancerType(id, cancerType); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeTest.java new file mode 100644 index 0000000..b5871c2 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CancerTypeTest.java @@ -0,0 +1,107 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CancerType + */ +public class CancerTypeTest { + private final CancerType model = new CancerType(); + + /** + * Model tests for CancerType + */ + @Test + public void testCancerType() { + // TODO: test CancerType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'color' + */ + @Test + public void colorTest() { + // TODO: test color + } + + /** + * Test the property 'level' + */ + @Test + public void levelTest() { + // TODO: test level + } + + /** + * Test the property 'mainType' + */ + @Test + public void mainTypeTest() { + // TODO: test mainType + } + + /** + * Test the property 'subtype' + */ + @Test + public void subtypeTest() { + // TODO: test subtype + } + + /** + * Test the property 'tissue' + */ + @Test + public void tissueTest() { + // TODO: test tissue + } + + /** + * Test the property 'tumorForm' + */ + @Test + public void tumorFormTest() { + // TODO: test tumorForm + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApiTest.java new file mode 100644 index 0000000..fa7dfd8 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.CategoricalAlteration; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CategoricalAlterationResourceApi + */ +@Ignore +public class CategoricalAlterationResourceApiTest { + + private final CategoricalAlterationResourceApi api = new CategoricalAlterationResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createCategoricalAlterationTest() throws ApiException { + CategoricalAlteration categoricalAlteration = null; + CategoricalAlteration response = api.createCategoricalAlteration(categoricalAlteration); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteCategoricalAlterationTest() throws ApiException { + Long id = null; + api.deleteCategoricalAlteration(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllCategoricalAlterationsTest() throws ApiException { + List response = api.getAllCategoricalAlterations(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCategoricalAlterationTest() throws ApiException { + Long id = null; + CategoricalAlteration response = api.getCategoricalAlteration(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateCategoricalAlterationTest() throws ApiException { + Long id = null; + CategoricalAlteration categoricalAlteration = null; + CategoricalAlteration response = api.partialUpdateCategoricalAlteration(id, categoricalAlteration); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCategoricalAlterationTest() throws ApiException { + Long id = null; + CategoricalAlteration categoricalAlteration = null; + CategoricalAlteration response = api.updateCategoricalAlteration(id, categoricalAlteration); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationTest.java new file mode 100644 index 0000000..226a441 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CategoricalAlterationTest.java @@ -0,0 +1,75 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CategoricalAlteration + */ +public class CategoricalAlterationTest { + private final CategoricalAlteration model = new CategoricalAlteration(); + + /** + * Model tests for CategoricalAlteration + */ + @Test + public void testCategoricalAlteration() { + // TODO: test CategoricalAlteration + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'alterationType' + */ + @Test + public void alterationTypeTest() { + // TODO: test alterationType + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteriaTest.java new file mode 100644 index 0000000..f66eeed --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionCriteriaTest.java @@ -0,0 +1,77 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ClinicalTrialsGovConditionCriteria + */ +public class ClinicalTrialsGovConditionCriteriaTest { + private final ClinicalTrialsGovConditionCriteria model = new ClinicalTrialsGovConditionCriteria(); + + /** + * Model tests for ClinicalTrialsGovConditionCriteria + */ + @Test + public void testClinicalTrialsGovConditionCriteria() { + // TODO: test ClinicalTrialsGovConditionCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'cancerTypeId' + */ + @Test + public void cancerTypeIdTest() { + // TODO: test cancerTypeId + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApiTest.java new file mode 100644 index 0000000..5acf70e --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionResourceApiTest.java @@ -0,0 +1,161 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovCondition; +import org.oncokb.oncokb_curation.client.ClinicalTrialsGovConditionCriteria; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ClinicalTrialsGovConditionResourceApi + */ +@Ignore +public class ClinicalTrialsGovConditionResourceApiTest { + + private final ClinicalTrialsGovConditionResourceApi api = new ClinicalTrialsGovConditionResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countClinicalTrialsGovConditionsTest() throws ApiException { + ClinicalTrialsGovConditionCriteria criteria = null; + Long response = api.countClinicalTrialsGovConditions(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createClinicalTrialsGovConditionTest() throws ApiException { + ClinicalTrialsGovCondition clinicalTrialsGovCondition = null; + ClinicalTrialsGovCondition response = api.createClinicalTrialsGovCondition(clinicalTrialsGovCondition); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteClinicalTrialsGovConditionTest() throws ApiException { + Long id = null; + api.deleteClinicalTrialsGovCondition(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllClinicalTrialsGovConditionsTest() throws ApiException { + ClinicalTrialsGovConditionCriteria criteria = null; + Pageable pageable = null; + List response = api.getAllClinicalTrialsGovConditions(criteria, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getClinicalTrialsGovConditionTest() throws ApiException { + Long id = null; + ClinicalTrialsGovCondition response = api.getClinicalTrialsGovCondition(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateClinicalTrialsGovConditionTest() throws ApiException { + Long id = null; + ClinicalTrialsGovCondition clinicalTrialsGovCondition = null; + ClinicalTrialsGovCondition response = api.partialUpdateClinicalTrialsGovCondition(id, clinicalTrialsGovCondition); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchClinicalTrialsGovConditionsTest() throws ApiException { + String query = null; + Pageable pageable = null; + List response = api.searchClinicalTrialsGovConditions(query, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateClinicalTrialsGovConditionTest() throws ApiException { + Long id = null; + ClinicalTrialsGovCondition clinicalTrialsGovCondition = null; + ClinicalTrialsGovCondition response = api.updateClinicalTrialsGovCondition(id, clinicalTrialsGovCondition); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionTest.java new file mode 100644 index 0000000..1225c4f --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ClinicalTrialsGovConditionTest.java @@ -0,0 +1,71 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.CancerType; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ClinicalTrialsGovCondition + */ +public class ClinicalTrialsGovConditionTest { + private final ClinicalTrialsGovCondition model = new ClinicalTrialsGovCondition(); + + /** + * Model tests for ClinicalTrialsGovCondition + */ + @Test + public void testClinicalTrialsGovCondition() { + // TODO: test ClinicalTrialsGovCondition + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'cancerTypes' + */ + @Test + public void cancerTypesTest() { + // TODO: test cancerTypes + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteriaTest.java new file mode 100644 index 0000000..b4f1257 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceCriteriaTest.java @@ -0,0 +1,93 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CompanionDiagnosticDeviceCriteria + */ +public class CompanionDiagnosticDeviceCriteriaTest { + private final CompanionDiagnosticDeviceCriteria model = new CompanionDiagnosticDeviceCriteria(); + + /** + * Model tests for CompanionDiagnosticDeviceCriteria + */ + @Test + public void testCompanionDiagnosticDeviceCriteria() { + // TODO: test CompanionDiagnosticDeviceCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'manufacturer' + */ + @Test + public void manufacturerTest() { + // TODO: test manufacturer + } + + /** + * Test the property 'fdaSubmissionId' + */ + @Test + public void fdaSubmissionIdTest() { + // TODO: test fdaSubmissionId + } + + /** + * Test the property 'specimenTypeId' + */ + @Test + public void specimenTypeIdTest() { + // TODO: test specimenTypeId + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApiTest.java new file mode 100644 index 0000000..3630080 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceResourceApiTest.java @@ -0,0 +1,158 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDeviceCriteria; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for CompanionDiagnosticDeviceResourceApi + */ +@Ignore +public class CompanionDiagnosticDeviceResourceApiTest { + + private final CompanionDiagnosticDeviceResourceApi api = new CompanionDiagnosticDeviceResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countCompanionDiagnosticDevicesTest() throws ApiException { + CompanionDiagnosticDeviceCriteria criteria = null; + Long response = api.countCompanionDiagnosticDevices(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createCompanionDiagnosticDeviceTest() throws ApiException { + CompanionDiagnosticDevice companionDiagnosticDevice = null; + CompanionDiagnosticDevice response = api.createCompanionDiagnosticDevice(companionDiagnosticDevice); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteCompanionDiagnosticDeviceTest() throws ApiException { + Long id = null; + api.deleteCompanionDiagnosticDevice(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllCompanionDiagnosticDevicesTest() throws ApiException { + CompanionDiagnosticDeviceCriteria criteria = null; + List response = api.getAllCompanionDiagnosticDevices(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getCompanionDiagnosticDeviceTest() throws ApiException { + Long id = null; + CompanionDiagnosticDevice response = api.getCompanionDiagnosticDevice(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateCompanionDiagnosticDeviceTest() throws ApiException { + Long id = null; + CompanionDiagnosticDevice companionDiagnosticDevice = null; + CompanionDiagnosticDevice response = api.partialUpdateCompanionDiagnosticDevice(id, companionDiagnosticDevice); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchCompanionDiagnosticDevicesTest() throws ApiException { + String query = null; + List response = api.searchCompanionDiagnosticDevices(query); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateCompanionDiagnosticDeviceTest() throws ApiException { + Long id = null; + CompanionDiagnosticDevice companionDiagnosticDevice = null; + CompanionDiagnosticDevice response = api.updateCompanionDiagnosticDevice(id, companionDiagnosticDevice); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceTest.java new file mode 100644 index 0000000..6d0b138 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/CompanionDiagnosticDeviceTest.java @@ -0,0 +1,96 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.SpecimenType; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for CompanionDiagnosticDevice + */ +public class CompanionDiagnosticDeviceTest { + private final CompanionDiagnosticDevice model = new CompanionDiagnosticDevice(); + + /** + * Model tests for CompanionDiagnosticDevice + */ + @Test + public void testCompanionDiagnosticDevice() { + // TODO: test CompanionDiagnosticDevice + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'manufacturer' + */ + @Test + public void manufacturerTest() { + // TODO: test manufacturer + } + + /** + * Test the property 'indicationDetails' + */ + @Test + public void indicationDetailsTest() { + // TODO: test indicationDetails + } + + /** + * Test the property 'fdaSubmissions' + */ + @Test + public void fdaSubmissionsTest() { + // TODO: test fdaSubmissions + } + + /** + * Test the property 'specimenTypes' + */ + @Test + public void specimenTypesTest() { + // TODO: test specimenTypes + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApiTest.java new file mode 100644 index 0000000..ae7c31a --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ConsequenceResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Consequence; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for ConsequenceResourceApi + */ +@Ignore +public class ConsequenceResourceApiTest { + + private final ConsequenceResourceApi api = new ConsequenceResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createConsequenceTest() throws ApiException { + Consequence consequence = null; + Consequence response = api.createConsequence(consequence); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteConsequenceTest() throws ApiException { + Long id = null; + api.deleteConsequence(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllConsequencesTest() throws ApiException { + List response = api.getAllConsequences(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getConsequenceTest() throws ApiException { + Long id = null; + Consequence response = api.getConsequence(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateConsequenceTest() throws ApiException { + Long id = null; + Consequence consequence = null; + Consequence response = api.partialUpdateConsequence(id, consequence); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateConsequenceTest() throws ApiException { + Long id = null; + Consequence consequence = null; + Consequence response = api.updateConsequence(id, consequence); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ConsequenceTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ConsequenceTest.java new file mode 100644 index 0000000..bc18cab --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ConsequenceTest.java @@ -0,0 +1,91 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for Consequence + */ +public class ConsequenceTest { + private final Consequence model = new Consequence(); + + /** + * Model tests for Consequence + */ + @Test + public void testConsequence() { + // TODO: test Consequence + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'term' + */ + @Test + public void termTest() { + // TODO: test term + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'isGenerallyTruncating' + */ + @Test + public void isGenerallyTruncatingTest() { + // TODO: test isGenerallyTruncating + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApiTest.java new file mode 100644 index 0000000..12e96c2 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugBrandResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.DrugBrand; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DrugBrandResourceApi + */ +@Ignore +public class DrugBrandResourceApiTest { + + private final DrugBrandResourceApi api = new DrugBrandResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createDrugBrandTest() throws ApiException { + DrugBrand drugBrand = null; + DrugBrand response = api.createDrugBrand(drugBrand); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDrugBrandTest() throws ApiException { + Long id = null; + api.deleteDrugBrand(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllDrugBrandsTest() throws ApiException { + List response = api.getAllDrugBrands(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDrugBrandTest() throws ApiException { + Long id = null; + DrugBrand response = api.getDrugBrand(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateDrugBrandTest() throws ApiException { + Long id = null; + DrugBrand drugBrand = null; + DrugBrand response = api.partialUpdateDrugBrand(id, drugBrand); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateDrugBrandTest() throws ApiException { + Long id = null; + DrugBrand drugBrand = null; + DrugBrand response = api.updateDrugBrand(id, drugBrand); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugBrandTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugBrandTest.java new file mode 100644 index 0000000..fccbf88 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugBrandTest.java @@ -0,0 +1,76 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.Drug; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for DrugBrand + */ +public class DrugBrandTest { + private final DrugBrand model = new DrugBrand(); + + /** + * Model tests for DrugBrand + */ + @Test + public void testDrugBrand() { + // TODO: test DrugBrand + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'region' + */ + @Test + public void regionTest() { + // TODO: test region + } + + /** + * Test the property 'drug' + */ + @Test + public void drugTest() { + // TODO: test drug + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugControllerApiTest.java similarity index 60% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugControllerApiTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugControllerApiTest.java index 7bbf66d..4df8370 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugControllerApiTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugControllerApiTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.client.Drug; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Drug; import org.junit.Test; import org.junit.Ignore; @@ -33,7 +33,7 @@ public class DrugControllerApiTest { /** - * findDrugByCode + * * * * @@ -41,14 +41,14 @@ public class DrugControllerApiTest { * if the Api call fails */ @Test - public void findDrugByCodeUsingGETTest() throws ApiException { + public void findDrugByCodeTest() throws ApiException { String code = null; - Drug response = api.findDrugByCodeUsingGET(code); + Drug response = api.findDrugByCode(code); // TODO: test validations } /** - * findDrugs + * * * * @@ -56,9 +56,9 @@ public void findDrugByCodeUsingGETTest() throws ApiException { * if the Api call fails */ @Test - public void findDrugsUsingGETTest() throws ApiException { + public void findDrugsTest() throws ApiException { String query = null; - List response = api.findDrugsUsingGET(query); + List response = api.findDrugs(query); // TODO: test validations } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugCriteriaTest.java new file mode 100644 index 0000000..cf97dcc --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugCriteriaTest.java @@ -0,0 +1,109 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for DrugCriteria + */ +public class DrugCriteriaTest { + private final DrugCriteria model = new DrugCriteria(); + + /** + * Model tests for DrugCriteria + */ + @Test + public void testDrugCriteria() { + // TODO: test DrugCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'synonymsId' + */ + @Test + public void synonymsIdTest() { + // TODO: test synonymsId + } + + /** + * Test the property 'biomarkerAssociationId' + */ + @Test + public void biomarkerAssociationIdTest() { + // TODO: test biomarkerAssociationId + } + + /** + * Test the property 'brandsId' + */ + @Test + public void brandsIdTest() { + // TODO: test brandsId + } + + /** + * Test the property 'brandsName' + */ + @Test + public void brandsNameTest() { + // TODO: test brandsName + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugResourceApiTest.java new file mode 100644 index 0000000..cc1130a --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugResourceApiTest.java @@ -0,0 +1,161 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Drug; +import org.oncokb.oncokb_curation.client.DrugCriteria; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DrugResourceApi + */ +@Ignore +public class DrugResourceApiTest { + + private final DrugResourceApi api = new DrugResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countDrugsTest() throws ApiException { + DrugCriteria criteria = null; + Long response = api.countDrugs(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createDrugTest() throws ApiException { + Drug drug = null; + Drug response = api.createDrug(drug); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDrugTest() throws ApiException { + Long id = null; + api.deleteDrug(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllDrugsTest() throws ApiException { + DrugCriteria criteria = null; + Pageable pageable = null; + List response = api.getAllDrugs(criteria, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDrugTest() throws ApiException { + Long id = null; + Drug response = api.getDrug(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateDrugTest() throws ApiException { + Long id = null; + Drug drug = null; + Drug response = api.partialUpdateDrug(id, drug); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchDrugsTest() throws ApiException { + String query = null; + Pageable pageable = null; + List response = api.searchDrugs(query, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateDrugTest() throws ApiException { + Long id = null; + Drug drug = null; + Drug response = api.updateDrug(id, drug); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApiTest.java new file mode 100644 index 0000000..eceeff9 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.DrugSynonym; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DrugSynonymResourceApi + */ +@Ignore +public class DrugSynonymResourceApiTest { + + private final DrugSynonymResourceApi api = new DrugSynonymResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createDrugSynonymTest() throws ApiException { + DrugSynonym drugSynonym = null; + DrugSynonym response = api.createDrugSynonym(drugSynonym); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDrugSynonymTest() throws ApiException { + Long id = null; + api.deleteDrugSynonym(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllDrugSynonymsTest() throws ApiException { + List response = api.getAllDrugSynonyms(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDrugSynonymTest() throws ApiException { + Long id = null; + DrugSynonym response = api.getDrugSynonym(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateDrugSynonymTest() throws ApiException { + Long id = null; + DrugSynonym drugSynonym = null; + DrugSynonym response = api.partialUpdateDrugSynonym(id, drugSynonym); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateDrugSynonymTest() throws ApiException { + Long id = null; + DrugSynonym drugSynonym = null; + DrugSynonym response = api.updateDrugSynonym(id, drugSynonym); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugSynonymTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymTest.java similarity index 82% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugSynonymTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymTest.java index dc7b216..812dcdd 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugSynonymTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugSynonymTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Drug; +import org.oncokb.oncokb_curation.client.Drug; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -41,14 +41,6 @@ public void testDrugSynonym() { // TODO: test DrugSynonym } - /** - * Test the property 'drug' - */ - @Test - public void drugTest() { - // TODO: test drug - } - /** * Test the property 'id' */ @@ -65,4 +57,12 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'drug' + */ + @Test + public void drugTest() { + // TODO: test drug + } + } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugTest.java similarity index 63% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugTest.java index 47af4dd..db95490 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/DrugTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/DrugTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -24,7 +24,10 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; -import org.oncokb.oncokb_transcript.client.DrugSynonym; +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.DrugBrand; +import org.oncokb.oncokb_curation.client.DrugSynonym; +import org.oncokb.oncokb_curation.client.FdaDrug; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -44,14 +47,6 @@ public void testDrug() { // TODO: test Drug } - /** - * Test the property 'code' - */ - @Test - public void codeTest() { - // TODO: test code - } - /** * Test the property 'id' */ @@ -68,6 +63,14 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + /** * Test the property 'semanticType' */ @@ -76,6 +79,14 @@ public void semanticTypeTest() { // TODO: test semanticType } + /** + * Test the property 'fdaDrug' + */ + @Test + public void fdaDrugTest() { + // TODO: test fdaDrug + } + /** * Test the property 'synonyms' */ @@ -84,4 +95,20 @@ public void synonymsTest() { // TODO: test synonyms } + /** + * Test the property 'brands' + */ + @Test + public void brandsTest() { + // TODO: test brands + } + + /** + * Test the property 'biomarkerAssociations' + */ + @Test + public void biomarkerAssociationsTest() { + // TODO: test biomarkerAssociations + } + } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApiTest.java similarity index 58% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApiTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApiTest.java index 4393d61..8bd7477 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApiTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneControllerApiTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,11 +11,11 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.client.AddEnsemblGeneBody; -import org.oncokb.oncokb_transcript.client.EnsemblGene; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.AddEnsemblGeneBody; +import org.oncokb.oncokb_curation.client.EnsemblGene; import org.junit.Test; import org.junit.Ignore; @@ -34,7 +34,7 @@ public class EnsemblGeneControllerApiTest { /** - * addEnsemblGene + * * * * @@ -42,9 +42,9 @@ public class EnsemblGeneControllerApiTest { * if the Api call fails */ @Test - public void addEnsemblGeneUsingPOSTTest() throws ApiException { + public void addEnsemblGeneTest() throws ApiException { AddEnsemblGeneBody addEnsemblGeneBody = null; - EnsemblGene response = api.addEnsemblGeneUsingPOST(addEnsemblGeneBody); + EnsemblGene response = api.addEnsemblGene(addEnsemblGeneBody); // TODO: test validations } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApiTest.java new file mode 100644 index 0000000..84f5b01 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneResourceApiTest.java @@ -0,0 +1,128 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.EnsemblGene; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for EnsemblGeneResourceApi + */ +@Ignore +public class EnsemblGeneResourceApiTest { + + private final EnsemblGeneResourceApi api = new EnsemblGeneResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createEnsemblGeneTest() throws ApiException { + EnsemblGene ensemblGene = null; + EnsemblGene response = api.createEnsemblGene(ensemblGene); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteEnsemblGeneTest() throws ApiException { + Long id = null; + api.deleteEnsemblGene(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllEnsemblGenesTest() throws ApiException { + Pageable pageable = null; + List response = api.getAllEnsemblGenes(pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getEnsemblGeneTest() throws ApiException { + Long id = null; + EnsemblGene response = api.getEnsemblGene(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateEnsemblGeneTest() throws ApiException { + Long id = null; + EnsemblGene ensemblGene = null; + EnsemblGene response = api.partialUpdateEnsemblGene(id, ensemblGene); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateEnsemblGeneTest() throws ApiException { + Long id = null; + EnsemblGene ensemblGene = null; + EnsemblGene response = api.updateEnsemblGene(id, ensemblGene); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneTest.java similarity index 87% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneTest.java index 4922912..1666c59 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblGeneTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -24,8 +24,8 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; -import org.oncokb.oncokb_transcript.client.Gene; -import org.oncokb.oncokb_transcript.client.Transcript; +import org.oncokb.oncokb_curation.client.Gene; +import org.oncokb.oncokb_curation.client.Transcript; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -46,27 +46,19 @@ public void testEnsemblGene() { } /** - * Test the property 'canonical' - */ - @Test - public void canonicalTest() { - // TODO: test canonical - } - - /** - * Test the property 'chromosome' + * Test the property 'id' */ @Test - public void chromosomeTest() { - // TODO: test chromosome + public void idTest() { + // TODO: test id } /** - * Test the property 'end' + * Test the property 'referenceGenome' */ @Test - public void endTest() { - // TODO: test end + public void referenceGenomeTest() { + // TODO: test referenceGenome } /** @@ -78,35 +70,35 @@ public void ensemblGeneIdTest() { } /** - * Test the property 'gene' + * Test the property 'canonical' */ @Test - public void geneTest() { - // TODO: test gene + public void canonicalTest() { + // TODO: test canonical } /** - * Test the property 'id' + * Test the property 'chromosome' */ @Test - public void idTest() { - // TODO: test id + public void chromosomeTest() { + // TODO: test chromosome } /** - * Test the property 'referenceGenome' + * Test the property 'start' */ @Test - public void referenceGenomeTest() { - // TODO: test referenceGenome + public void startTest() { + // TODO: test start } /** - * Test the property 'start' + * Test the property 'end' */ @Test - public void startTest() { - // TODO: test start + public void endTest() { + // TODO: test end } /** @@ -125,4 +117,12 @@ public void transcriptsTest() { // TODO: test transcripts } + /** + * Test the property 'gene' + */ + @Test + public void geneTest() { + // TODO: test gene + } + } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblTranscriptTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblTranscriptTest.java similarity index 85% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblTranscriptTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblTranscriptTest.java index 9cb5279..366f0d9 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/EnsemblTranscriptTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/EnsemblTranscriptTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -23,9 +23,9 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.oncokb.oncokb_transcript.client.Exon; -import org.oncokb.oncokb_transcript.client.PfamDomainRange; -import org.oncokb.oncokb_transcript.client.UntranslatedRegion; +import org.oncokb.oncokb_curation.client.Exon; +import org.oncokb.oncokb_curation.client.PfamDomainRange; +import org.oncokb.oncokb_curation.client.UntranslatedRegion; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -46,35 +46,35 @@ public void testEnsemblTranscript() { } /** - * Test the property 'ccdsId' + * Test the property 'transcriptId' */ @Test - public void ccdsIdTest() { - // TODO: test ccdsId + public void transcriptIdTest() { + // TODO: test transcriptId } /** - * Test the property 'exons' + * Test the property 'geneId' */ @Test - public void exonsTest() { - // TODO: test exons + public void geneIdTest() { + // TODO: test geneId } /** - * Test the property 'geneId' + * Test the property 'proteinId' */ @Test - public void geneIdTest() { - // TODO: test geneId + public void proteinIdTest() { + // TODO: test proteinId } /** - * Test the property 'hugoSymbols' + * Test the property 'proteinLength' */ @Test - public void hugoSymbolsTest() { - // TODO: test hugoSymbols + public void proteinLengthTest() { + // TODO: test proteinLength } /** @@ -86,35 +86,35 @@ public void pfamDomainsTest() { } /** - * Test the property 'proteinId' + * Test the property 'hugoSymbols' */ @Test - public void proteinIdTest() { - // TODO: test proteinId + public void hugoSymbolsTest() { + // TODO: test hugoSymbols } /** - * Test the property 'proteinLength' + * Test the property 'refseqMrnaId' */ @Test - public void proteinLengthTest() { - // TODO: test proteinLength + public void refseqMrnaIdTest() { + // TODO: test refseqMrnaId } /** - * Test the property 'refseqMrnaId' + * Test the property 'ccdsId' */ @Test - public void refseqMrnaIdTest() { - // TODO: test refseqMrnaId + public void ccdsIdTest() { + // TODO: test ccdsId } /** - * Test the property 'transcriptId' + * Test the property 'exons' */ @Test - public void transcriptIdTest() { - // TODO: test transcriptId + public void exonsTest() { + // TODO: test exons } /** diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/ExonTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ExonTest.java similarity index 87% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/ExonTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ExonTest.java index 53f04c9..302df25 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/ExonTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/ExonTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -40,14 +40,6 @@ public void testExon() { // TODO: test Exon } - /** - * Test the property 'exonEnd' - */ - @Test - public void exonEndTest() { - // TODO: test exonEnd - } - /** * Test the property 'exonId' */ @@ -64,6 +56,14 @@ public void exonStartTest() { // TODO: test exonStart } + /** + * Test the property 'exonEnd' + */ + @Test + public void exonEndTest() { + // TODO: test exonEnd + } + /** * Test the property 'rank' */ diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApiTest.java new file mode 100644 index 0000000..594f2c4 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaDrugResourceApiTest.java @@ -0,0 +1,129 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.FdaDrug; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FdaDrugResourceApi + */ +@Ignore +public class FdaDrugResourceApiTest { + + private final FdaDrugResourceApi api = new FdaDrugResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createFdaDrugTest() throws ApiException { + FdaDrug fdaDrug = null; + FdaDrug response = api.createFdaDrug(fdaDrug); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteFdaDrugTest() throws ApiException { + Long id = null; + api.deleteFdaDrug(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllFdaDrugsTest() throws ApiException { + Pageable pageable = null; + String filter = null; + List response = api.getAllFdaDrugs(pageable, filter); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFdaDrugTest() throws ApiException { + Long id = null; + FdaDrug response = api.getFdaDrug(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateFdaDrugTest() throws ApiException { + Long id = null; + FdaDrug fdaDrug = null; + FdaDrug response = api.partialUpdateFdaDrug(id, fdaDrug); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateFdaDrugTest() throws ApiException { + Long id = null; + FdaDrug fdaDrug = null; + FdaDrug response = api.updateFdaDrug(id, fdaDrug); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaDrugTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaDrugTest.java new file mode 100644 index 0000000..8f4945f --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaDrugTest.java @@ -0,0 +1,59 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for FdaDrug + */ +public class FdaDrugTest { + private final FdaDrug model = new FdaDrug(); + + /** + * Model tests for FdaDrug + */ + @Test + public void testFdaDrug() { + // TODO: test FdaDrug + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'applicationNumber' + */ + @Test + public void applicationNumberTest() { + // TODO: test applicationNumber + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteriaTest.java new file mode 100644 index 0000000..a26239e --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionCriteriaTest.java @@ -0,0 +1,167 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.BooleanFilter; +import org.oncokb.oncokb_curation.client.InstantFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for FdaSubmissionCriteria + */ +public class FdaSubmissionCriteriaTest { + private final FdaSubmissionCriteria model = new FdaSubmissionCriteria(); + + /** + * Model tests for FdaSubmissionCriteria + */ + @Test + public void testFdaSubmissionCriteria() { + // TODO: test FdaSubmissionCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'number' + */ + @Test + public void numberTest() { + // TODO: test number + } + + /** + * Test the property 'supplementNumber' + */ + @Test + public void supplementNumberTest() { + // TODO: test supplementNumber + } + + /** + * Test the property 'deviceName' + */ + @Test + public void deviceNameTest() { + // TODO: test deviceName + } + + /** + * Test the property 'genericName' + */ + @Test + public void genericNameTest() { + // TODO: test genericName + } + + /** + * Test the property 'dateReceived' + */ + @Test + public void dateReceivedTest() { + // TODO: test dateReceived + } + + /** + * Test the property 'decisionDate' + */ + @Test + public void decisionDateTest() { + // TODO: test decisionDate + } + + /** + * Test the property 'curated' + */ + @Test + public void curatedTest() { + // TODO: test curated + } + + /** + * Test the property 'genetic' + */ + @Test + public void geneticTest() { + // TODO: test genetic + } + + /** + * Test the property 'biomarkerAssociationId' + */ + @Test + public void biomarkerAssociationIdTest() { + // TODO: test biomarkerAssociationId + } + + /** + * Test the property 'companionDiagnosticDeviceId' + */ + @Test + public void companionDiagnosticDeviceIdTest() { + // TODO: test companionDiagnosticDeviceId + } + + /** + * Test the property 'typeId' + */ + @Test + public void typeIdTest() { + // TODO: test typeId + } + + /** + * Test the property 'typeName' + */ + @Test + public void typeNameTest() { + // TODO: test typeName + } + + /** + * Test the property 'typeShortName' + */ + @Test + public void typeShortNameTest() { + // TODO: test typeShortName + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApiTest.java new file mode 100644 index 0000000..7ff346a --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionResourceApiTest.java @@ -0,0 +1,192 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.FdaSubmissionCriteria; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FdaSubmissionResourceApi + */ +@Ignore +public class FdaSubmissionResourceApiTest { + + private final FdaSubmissionResourceApi api = new FdaSubmissionResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countFdaSubmissionsTest() throws ApiException { + FdaSubmissionCriteria criteria = null; + Long response = api.countFdaSubmissions(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createFdaSubmissionTest() throws ApiException { + FdaSubmission fdaSubmission = null; + FdaSubmission response = api.createFdaSubmission(fdaSubmission); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteFdaSubmissionTest() throws ApiException { + Long id = null; + api.deleteFdaSubmission(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void findFdaSubmissionsByCompanionDiagnosticDeviceTest() throws ApiException { + Long id = null; + List response = api.findFdaSubmissionsByCompanionDiagnosticDevice(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllFdaSubmissionsTest() throws ApiException { + FdaSubmissionCriteria criteria = null; + Pageable pageable = null; + List response = api.getAllFdaSubmissions(criteria, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFdaSubmissionTest() throws ApiException { + Long id = null; + FdaSubmission response = api.getFdaSubmission(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFdaSubmissionByNumberTest() throws ApiException { + String number = null; + String supplementNumber = null; + FdaSubmission response = api.getFdaSubmissionByNumber(number, supplementNumber); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateFdaSubmissionTest() throws ApiException { + Long id = null; + FdaSubmission fdaSubmission = null; + FdaSubmission response = api.partialUpdateFdaSubmission(id, fdaSubmission); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchFdaSubmissionsTest() throws ApiException { + String query = null; + Pageable pageable = null; + List response = api.searchFdaSubmissions(query, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateFdaSubmissionTest() throws ApiException { + Long id = null; + FdaSubmission fdaSubmission = null; + FdaSubmission response = api.updateFdaSubmission(id, fdaSubmission); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTest.java new file mode 100644 index 0000000..60bb80b --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTest.java @@ -0,0 +1,170 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.BiomarkerAssociation; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import org.oncokb.oncokb_curation.client.FdaSubmissionType; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for FdaSubmission + */ +public class FdaSubmissionTest { + private final FdaSubmission model = new FdaSubmission(); + + /** + * Model tests for FdaSubmission + */ + @Test + public void testFdaSubmission() { + // TODO: test FdaSubmission + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'number' + */ + @Test + public void numberTest() { + // TODO: test number + } + + /** + * Test the property 'supplementNumber' + */ + @Test + public void supplementNumberTest() { + // TODO: test supplementNumber + } + + /** + * Test the property 'deviceName' + */ + @Test + public void deviceNameTest() { + // TODO: test deviceName + } + + /** + * Test the property 'genericName' + */ + @Test + public void genericNameTest() { + // TODO: test genericName + } + + /** + * Test the property 'dateReceived' + */ + @Test + public void dateReceivedTest() { + // TODO: test dateReceived + } + + /** + * Test the property 'decisionDate' + */ + @Test + public void decisionDateTest() { + // TODO: test decisionDate + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'platform' + */ + @Test + public void platformTest() { + // TODO: test platform + } + + /** + * Test the property 'curated' + */ + @Test + public void curatedTest() { + // TODO: test curated + } + + /** + * Test the property 'genetic' + */ + @Test + public void geneticTest() { + // TODO: test genetic + } + + /** + * Test the property 'additionalInfo' + */ + @Test + public void additionalInfoTest() { + // TODO: test additionalInfo + } + + /** + * Test the property 'companionDiagnosticDevice' + */ + @Test + public void companionDiagnosticDeviceTest() { + // TODO: test companionDiagnosticDevice + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'biomarkerAssociations' + */ + @Test + public void biomarkerAssociationsTest() { + // TODO: test biomarkerAssociations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApiTest.java new file mode 100644 index 0000000..e95747c --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.FdaSubmissionType; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for FdaSubmissionTypeResourceApi + */ +@Ignore +public class FdaSubmissionTypeResourceApiTest { + + private final FdaSubmissionTypeResourceApi api = new FdaSubmissionTypeResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createFdaSubmissionTypeTest() throws ApiException { + FdaSubmissionType fdaSubmissionType = null; + FdaSubmissionType response = api.createFdaSubmissionType(fdaSubmissionType); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteFdaSubmissionTypeTest() throws ApiException { + Long id = null; + api.deleteFdaSubmissionType(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllFdaSubmissionTypesTest() throws ApiException { + List response = api.getAllFdaSubmissionTypes(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getFdaSubmissionTypeTest() throws ApiException { + Long id = null; + FdaSubmissionType response = api.getFdaSubmissionType(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateFdaSubmissionTypeTest() throws ApiException { + Long id = null; + FdaSubmissionType fdaSubmissionType = null; + FdaSubmissionType response = api.partialUpdateFdaSubmissionType(id, fdaSubmissionType); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateFdaSubmissionTypeTest() throws ApiException { + Long id = null; + FdaSubmissionType fdaSubmissionType = null; + FdaSubmissionType response = api.updateFdaSubmissionType(id, fdaSubmissionType); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeTest.java new file mode 100644 index 0000000..74b336f --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/FdaSubmissionTypeTest.java @@ -0,0 +1,83 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for FdaSubmissionType + */ +public class FdaSubmissionTypeTest { + private final FdaSubmissionType model = new FdaSubmissionType(); + + /** + * Model tests for FdaSubmissionType + */ + @Test + public void testFdaSubmissionType() { + // TODO: test FdaSubmissionType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'shortName' + */ + @Test + public void shortNameTest() { + // TODO: test shortName + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApiTest.java new file mode 100644 index 0000000..5d5e2af --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneAliasResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.GeneAlias; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for GeneAliasResourceApi + */ +@Ignore +public class GeneAliasResourceApiTest { + + private final GeneAliasResourceApi api = new GeneAliasResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createGeneAliasTest() throws ApiException { + GeneAlias geneAlias = null; + GeneAlias response = api.createGeneAlias(geneAlias); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteGeneAliasTest() throws ApiException { + Long id = null; + api.deleteGeneAlias(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllGeneAliasesTest() throws ApiException { + List response = api.getAllGeneAliases(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getGeneAliasTest() throws ApiException { + Long id = null; + GeneAlias response = api.getGeneAlias(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateGeneAliasTest() throws ApiException { + Long id = null; + GeneAlias geneAlias = null; + GeneAlias response = api.partialUpdateGeneAlias(id, geneAlias); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateGeneAliasTest() throws ApiException { + Long id = null; + GeneAlias geneAlias = null; + GeneAlias response = api.updateGeneAlias(id, geneAlias); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneAliasTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneAliasTest.java similarity index 81% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneAliasTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneAliasTest.java index 3d51745..b565526 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneAliasTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneAliasTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Gene; +import org.oncokb.oncokb_curation.client.Gene; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -41,14 +41,6 @@ public void testGeneAlias() { // TODO: test GeneAlias } - /** - * Test the property 'gene' - */ - @Test - public void geneTest() { - // TODO: test gene - } - /** * Test the property 'id' */ @@ -65,4 +57,12 @@ public void nameTest() { // TODO: test name } + /** + * Test the property 'gene' + */ + @Test + public void geneTest() { + // TODO: test gene + } + } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneControllerApiTest.java similarity index 60% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneControllerApiTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneControllerApiTest.java index 00803f0..070b0d1 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneControllerApiTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneControllerApiTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.client.Gene; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Gene; import java.util.Set; import org.junit.Test; import org.junit.Ignore; @@ -34,7 +34,7 @@ public class GeneControllerApiTest { /** - * findGeneBySymbol + * * * * @@ -42,14 +42,14 @@ public class GeneControllerApiTest { * if the Api call fails */ @Test - public void findGeneBySymbolUsingGETTest() throws ApiException { + public void findGeneBySymbolTest() throws ApiException { String symbol = null; - Gene response = api.findGeneBySymbolUsingGET(symbol); + Gene response = api.findGeneBySymbol(symbol); // TODO: test validations } /** - * findGenesBySymbols + * * * * @@ -57,9 +57,9 @@ public void findGeneBySymbolUsingGETTest() throws ApiException { * if the Api call fails */ @Test - public void findGenesBySymbolsUsingPOSTTest() throws ApiException { + public void findGenesBySymbolsTest() throws ApiException { List requestBody = null; - Set response = api.findGenesBySymbolsUsingPOST(requestBody); + Set response = api.findGenesBySymbols(requestBody); // TODO: test validations } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneCriteriaTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneCriteriaTest.java new file mode 100644 index 0000000..cd665fa --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneCriteriaTest.java @@ -0,0 +1,102 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.oncokb.oncokb_curation.client.IntegerFilter; +import org.oncokb.oncokb_curation.client.LongFilter; +import org.oncokb.oncokb_curation.client.StringFilter; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for GeneCriteria + */ +public class GeneCriteriaTest { + private final GeneCriteria model = new GeneCriteria(); + + /** + * Model tests for GeneCriteria + */ + @Test + public void testGeneCriteria() { + // TODO: test GeneCriteria + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'entrezGeneId' + */ + @Test + public void entrezGeneIdTest() { + // TODO: test entrezGeneId + } + + /** + * Test the property 'hugoSymbol' + */ + @Test + public void hugoSymbolTest() { + // TODO: test hugoSymbol + } + + /** + * Test the property 'geneAliasId' + */ + @Test + public void geneAliasIdTest() { + // TODO: test geneAliasId + } + + /** + * Test the property 'ensemblGeneId' + */ + @Test + public void ensemblGeneIdTest() { + // TODO: test ensemblGeneId + } + + /** + * Test the property 'alterationId' + */ + @Test + public void alterationIdTest() { + // TODO: test alterationId + } + + /** + * Test the property 'distinct' + */ + @Test + public void distinctTest() { + // TODO: test distinct + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneResourceApiTest.java new file mode 100644 index 0000000..5d9e50e --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneResourceApiTest.java @@ -0,0 +1,161 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Gene; +import org.oncokb.oncokb_curation.client.GeneCriteria; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for GeneResourceApi + */ +@Ignore +public class GeneResourceApiTest { + + private final GeneResourceApi api = new GeneResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void countGenesTest() throws ApiException { + GeneCriteria criteria = null; + Long response = api.countGenes(criteria); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createGeneTest() throws ApiException { + Gene gene = null; + Gene response = api.createGene(gene); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteGeneTest() throws ApiException { + Long id = null; + api.deleteGene(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllGenesTest() throws ApiException { + GeneCriteria criteria = null; + Pageable pageable = null; + List response = api.getAllGenes(criteria, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getGeneTest() throws ApiException { + Long id = null; + Gene response = api.getGene(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateGeneTest() throws ApiException { + Long id = null; + Gene gene = null; + Gene response = api.partialUpdateGene(id, gene); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchGenesTest() throws ApiException { + String query = null; + Pageable pageable = null; + List response = api.searchGenes(query, pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateGeneTest() throws ApiException { + Long id = null; + Gene gene = null; + Gene response = api.updateGene(id, gene); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneTest.java similarity index 65% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneTest.java index 6615f1c..8b33e5a 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GeneTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,11 +21,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import org.oncokb.oncokb_transcript.client.EnsemblGene; -import org.oncokb.oncokb_transcript.client.GeneAlias; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -46,11 +41,11 @@ public void testGene() { } /** - * Test the property 'ensemblGenes' + * Test the property 'id' */ @Test - public void ensemblGenesTest() { - // TODO: test ensemblGenes + public void idTest() { + // TODO: test id } /** @@ -61,14 +56,6 @@ public void entrezGeneIdTest() { // TODO: test entrezGeneId } - /** - * Test the property 'geneAliases' - */ - @Test - public void geneAliasesTest() { - // TODO: test geneAliases - } - /** * Test the property 'hugoSymbol' */ @@ -77,12 +64,4 @@ public void hugoSymbolTest() { // TODO: test hugoSymbol } - /** - * Test the property 'id' - */ - @Test - public void idTest() { - // TODO: test id - } - } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApiTest.java new file mode 100644 index 0000000..83da4b8 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentResourceApiTest.java @@ -0,0 +1,128 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.GenomeFragment; +import org.oncokb.oncokb_curation.client.Pageable; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for GenomeFragmentResourceApi + */ +@Ignore +public class GenomeFragmentResourceApiTest { + + private final GenomeFragmentResourceApi api = new GenomeFragmentResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createGenomeFragmentTest() throws ApiException { + GenomeFragment genomeFragment = null; + GenomeFragment response = api.createGenomeFragment(genomeFragment); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteGenomeFragmentTest() throws ApiException { + Long id = null; + api.deleteGenomeFragment(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllGenomeFragmentsTest() throws ApiException { + Pageable pageable = null; + List response = api.getAllGenomeFragments(pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getGenomeFragmentTest() throws ApiException { + Long id = null; + GenomeFragment response = api.getGenomeFragment(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateGenomeFragmentTest() throws ApiException { + Long id = null; + GenomeFragment genomeFragment = null; + GenomeFragment response = api.partialUpdateGenomeFragment(id, genomeFragment); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateGenomeFragmentTest() throws ApiException { + Long id = null; + GenomeFragment genomeFragment = null; + GenomeFragment response = api.updateGenomeFragment(id, genomeFragment); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GenomeFragmentTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentTest.java similarity index 86% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GenomeFragmentTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentTest.java index 5d9bd22..04f4334 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GenomeFragmentTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/GenomeFragmentTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Transcript; +import org.oncokb.oncokb_curation.client.Transcript; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -42,35 +42,35 @@ public void testGenomeFragment() { } /** - * Test the property 'chromosome' + * Test the property 'id' */ @Test - public void chromosomeTest() { - // TODO: test chromosome + public void idTest() { + // TODO: test id } /** - * Test the property 'end' + * Test the property 'chromosome' */ @Test - public void endTest() { - // TODO: test end + public void chromosomeTest() { + // TODO: test chromosome } /** - * Test the property 'id' + * Test the property 'start' */ @Test - public void idTest() { - // TODO: test id + public void startTest() { + // TODO: test start } /** - * Test the property 'start' + * Test the property 'end' */ @Test - public void startTest() { - // TODO: test start + public void endTest() { + // TODO: test end } /** @@ -82,19 +82,19 @@ public void strandTest() { } /** - * Test the property 'transcript' + * Test the property 'type' */ @Test - public void transcriptTest() { - // TODO: test transcript + public void typeTest() { + // TODO: test type } /** - * Test the property 'type' + * Test the property 'transcript' */ @Test - public void typeTest() { - // TODO: test type + public void transcriptTest() { + // TODO: test transcript } } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InfoResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InfoResourceApiTest.java new file mode 100644 index 0000000..dc0ef1f --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InfoResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Info; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for InfoResourceApi + */ +@Ignore +public class InfoResourceApiTest { + + private final InfoResourceApi api = new InfoResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createInfoTest() throws ApiException { + Info info = null; + Info response = api.createInfo(info); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteInfoTest() throws ApiException { + Long id = null; + api.deleteInfo(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllInfosTest() throws ApiException { + List response = api.getAllInfos(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getInfoTest() throws ApiException { + Long id = null; + Info response = api.getInfo(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateInfoTest() throws ApiException { + Long id = null; + Info info = null; + Info response = api.partialUpdateInfo(id, info); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateInfoTest() throws ApiException { + Long id = null; + Info info = null; + Info response = api.updateInfo(id, info); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InfoTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InfoTest.java new file mode 100644 index 0000000..ca09f13 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InfoTest.java @@ -0,0 +1,76 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for Info + */ +public class InfoTest { + private final Info model = new Info(); + + /** + * Model tests for Info + */ + @Test + public void testInfo() { + // TODO: test Info + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'lastUpdated' + */ + @Test + public void lastUpdatedTest() { + // TODO: test lastUpdated + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InstantFilterTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InstantFilterTest.java new file mode 100644 index 0000000..6eec39d --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/InstantFilterTest.java @@ -0,0 +1,118 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for InstantFilter + */ +public class InstantFilterTest { + private final InstantFilter model = new InstantFilter(); + + /** + * Model tests for InstantFilter + */ + @Test + public void testInstantFilter() { + // TODO: test InstantFilter + } + + /** + * Test the property 'equals' + */ + @Test + public void equalsTest() { + // TODO: test equals + } + + /** + * Test the property 'notEquals' + */ + @Test + public void notEqualsTest() { + // TODO: test notEquals + } + + /** + * Test the property 'specified' + */ + @Test + public void specifiedTest() { + // TODO: test specified + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } + + /** + * Test the property 'greaterThan' + */ + @Test + public void greaterThanTest() { + // TODO: test greaterThan + } + + /** + * Test the property 'lessThan' + */ + @Test + public void lessThanTest() { + // TODO: test lessThan + } + + /** + * Test the property 'greaterThanOrEqual' + */ + @Test + public void greaterThanOrEqualTest() { + // TODO: test greaterThanOrEqual + } + + /** + * Test the property 'lessThanOrEqual' + */ + @Test + public void lessThanOrEqualTest() { + // TODO: test lessThanOrEqual + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/IntegerFilterTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/IntegerFilterTest.java new file mode 100644 index 0000000..e51d9c5 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/IntegerFilterTest.java @@ -0,0 +1,117 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for IntegerFilter + */ +public class IntegerFilterTest { + private final IntegerFilter model = new IntegerFilter(); + + /** + * Model tests for IntegerFilter + */ + @Test + public void testIntegerFilter() { + // TODO: test IntegerFilter + } + + /** + * Test the property 'equals' + */ + @Test + public void equalsTest() { + // TODO: test equals + } + + /** + * Test the property 'notEquals' + */ + @Test + public void notEqualsTest() { + // TODO: test notEquals + } + + /** + * Test the property 'specified' + */ + @Test + public void specifiedTest() { + // TODO: test specified + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } + + /** + * Test the property 'greaterThan' + */ + @Test + public void greaterThanTest() { + // TODO: test greaterThan + } + + /** + * Test the property 'lessThan' + */ + @Test + public void lessThanTest() { + // TODO: test lessThan + } + + /** + * Test the property 'greaterThanOrEqual' + */ + @Test + public void greaterThanOrEqualTest() { + // TODO: test greaterThanOrEqual + } + + /** + * Test the property 'lessThanOrEqual' + */ + @Test + public void lessThanOrEqualTest() { + // TODO: test lessThanOrEqual + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/LogoutResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/LogoutResourceApiTest.java new file mode 100644 index 0000000..d0c92da --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/LogoutResourceApiTest.java @@ -0,0 +1,48 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for LogoutResourceApi + */ +@Ignore +public class LogoutResourceApiTest { + + private final LogoutResourceApi api = new LogoutResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void logoutTest() throws ApiException { + Object response = api.logout(); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/LongFilterTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/LongFilterTest.java new file mode 100644 index 0000000..b209001 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/LongFilterTest.java @@ -0,0 +1,117 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for LongFilter + */ +public class LongFilterTest { + private final LongFilter model = new LongFilter(); + + /** + * Model tests for LongFilter + */ + @Test + public void testLongFilter() { + // TODO: test LongFilter + } + + /** + * Test the property 'equals' + */ + @Test + public void equalsTest() { + // TODO: test equals + } + + /** + * Test the property 'notEquals' + */ + @Test + public void notEqualsTest() { + // TODO: test notEquals + } + + /** + * Test the property 'specified' + */ + @Test + public void specifiedTest() { + // TODO: test specified + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } + + /** + * Test the property 'greaterThan' + */ + @Test + public void greaterThanTest() { + // TODO: test greaterThan + } + + /** + * Test the property 'lessThan' + */ + @Test + public void lessThanTest() { + // TODO: test lessThan + } + + /** + * Test the property 'greaterThanOrEqual' + */ + @Test + public void greaterThanOrEqualTest() { + // TODO: test greaterThanOrEqual + } + + /** + * Test the property 'lessThanOrEqual' + */ + @Test + public void lessThanOrEqualTest() { + // TODO: test lessThanOrEqual + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/MatchTranscriptVMTest.java similarity index 81% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/MatchTranscriptVMTest.java index 3e6f7cb..6012a24 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/MatchTranscriptVMTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.TranscriptPairVM; +import org.oncokb.oncokb_curation.client.TranscriptPairVM; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -42,19 +42,19 @@ public void testMatchTranscriptVM() { } /** - * Test the property 'targetReferenceGenome' + * Test the property 'transcript' */ @Test - public void targetReferenceGenomeTest() { - // TODO: test targetReferenceGenome + public void transcriptTest() { + // TODO: test transcript } /** - * Test the property 'transcript' + * Test the property 'targetReferenceGenome' */ @Test - public void transcriptTest() { - // TODO: test transcript + public void targetReferenceGenomeTest() { + // TODO: test targetReferenceGenome } } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/UserVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PageableTest.java similarity index 51% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/UserVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PageableTest.java index b3e4d4e..71bbafc 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/UserVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PageableTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,50 +21,49 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.LinkedHashSet; +import java.util.ArrayList; import java.util.List; -import java.util.Set; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; /** - * Model tests for UserVM + * Model tests for Pageable */ -public class UserVMTest { - private final UserVM model = new UserVM(); +public class PageableTest { + private final Pageable model = new Pageable(); /** - * Model tests for UserVM + * Model tests for Pageable */ @Test - public void testUserVM() { - // TODO: test UserVM + public void testPageable() { + // TODO: test Pageable } /** - * Test the property 'activated' + * Test the property 'page' */ @Test - public void activatedTest() { - // TODO: test activated + public void pageTest() { + // TODO: test page } /** - * Test the property 'authorities' + * Test the property 'size' */ @Test - public void authoritiesTest() { - // TODO: test authorities + public void sizeTest() { + // TODO: test size } /** - * Test the property 'login' + * Test the property 'sort' */ @Test - public void loginTest() { - // TODO: test login + public void sortTest() { + // TODO: test sort } } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/PfamDomainRangeTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PfamDomainRangeTest.java similarity index 85% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/PfamDomainRangeTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PfamDomainRangeTest.java index 1dc6ff2..2af2bb3 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/PfamDomainRangeTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PfamDomainRangeTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -40,14 +40,6 @@ public void testPfamDomainRange() { // TODO: test PfamDomainRange } - /** - * Test the property 'pfamDomainEnd' - */ - @Test - public void pfamDomainEndTest() { - // TODO: test pfamDomainEnd - } - /** * Test the property 'pfamDomainId' */ @@ -64,4 +56,12 @@ public void pfamDomainStartTest() { // TODO: test pfamDomainStart } + /** + * Test the property 'pfamDomainEnd' + */ + @Test + public void pfamDomainEndTest() { + // TODO: test pfamDomainEnd + } + } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/PipelineControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PipelineControllerApiTest.java similarity index 63% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/PipelineControllerApiTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PipelineControllerApiTest.java index a94f6ab..9a70b44 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/PipelineControllerApiTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/PipelineControllerApiTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,9 +11,9 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiException; +import org.oncokb.oncokb_curation.ApiException; import org.junit.Test; import org.junit.Ignore; @@ -32,7 +32,7 @@ public class PipelineControllerApiTest { /** - * updateNcit + * * * * @@ -40,13 +40,13 @@ public class PipelineControllerApiTest { * if the Api call fails */ @Test - public void updateNcitUsingPOSTTest() throws ApiException { - api.updateNcitUsingPOST(); + public void updateNcitTest() throws ApiException { + api.updateNcit(); // TODO: test validations } /** - * updatePortalGene + * * * * @@ -54,8 +54,8 @@ public void updateNcitUsingPOSTTest() throws ApiException { * if the Api call fails */ @Test - public void updatePortalGeneUsingPOSTTest() throws ApiException { - api.updatePortalGeneUsingPOST(); + public void updatePortalGeneTest() throws ApiException { + api.updatePortalGene(); // TODO: test validations } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SearchControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SearchControllerApiTest.java new file mode 100644 index 0000000..998d2b9 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SearchControllerApiTest.java @@ -0,0 +1,50 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.SearchResultDTO; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SearchControllerApi + */ +@Ignore +public class SearchControllerApiTest { + + private final SearchControllerApi api = new SearchControllerApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void searchTest() throws ApiException { + String query = null; + SearchResultDTO response = api.search(query); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SearchResultDTOTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SearchResultDTOTest.java new file mode 100644 index 0000000..d32ba67 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SearchResultDTOTest.java @@ -0,0 +1,99 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.oncokb.oncokb_curation.client.Alteration; +import org.oncokb.oncokb_curation.client.Article; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import org.oncokb.oncokb_curation.client.Drug; +import org.oncokb.oncokb_curation.client.FdaSubmission; +import org.oncokb.oncokb_curation.client.Gene; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for SearchResultDTO + */ +public class SearchResultDTOTest { + private final SearchResultDTO model = new SearchResultDTO(); + + /** + * Model tests for SearchResultDTO + */ + @Test + public void testSearchResultDTO() { + // TODO: test SearchResultDTO + } + + /** + * Test the property 'fdaSubmissions' + */ + @Test + public void fdaSubmissionsTest() { + // TODO: test fdaSubmissions + } + + /** + * Test the property 'companionDiagnosticDevices' + */ + @Test + public void companionDiagnosticDevicesTest() { + // TODO: test companionDiagnosticDevices + } + + /** + * Test the property 'articles' + */ + @Test + public void articlesTest() { + // TODO: test articles + } + + /** + * Test the property 'drugs' + */ + @Test + public void drugsTest() { + // TODO: test drugs + } + + /** + * Test the property 'genes' + */ + @Test + public void genesTest() { + // TODO: test genes + } + + /** + * Test the property 'alterations' + */ + @Test + public void alterationsTest() { + // TODO: test alterations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/SequenceControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceControllerApiTest.java similarity index 63% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/SequenceControllerApiTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceControllerApiTest.java index 5ac0a2d..e253756 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/SequenceControllerApiTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceControllerApiTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,10 +11,10 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.client.Sequence; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Sequence; import org.junit.Test; import org.junit.Ignore; @@ -33,7 +33,7 @@ public class SequenceControllerApiTest { /** - * findCanonicalSequence + * * * * @@ -41,16 +41,16 @@ public class SequenceControllerApiTest { * if the Api call fails */ @Test - public void findCanonicalSequenceUsingGETTest() throws ApiException { + public void findCanonicalSequenceTest() throws ApiException { String referenceGenome = null; Integer entrezGeneId = null; String sequenceType = null; - Sequence response = api.findCanonicalSequenceUsingGET(referenceGenome, entrezGeneId, sequenceType); + Sequence response = api.findCanonicalSequence(referenceGenome, entrezGeneId, sequenceType); // TODO: test validations } /** - * findCanonicalSequences + * * * * @@ -58,11 +58,11 @@ public void findCanonicalSequenceUsingGETTest() throws ApiException { * if the Api call fails */ @Test - public void findCanonicalSequencesUsingPOSTTest() throws ApiException { + public void findCanonicalSequencesTest() throws ApiException { String referenceGenome = null; - String sequenceType = null; List requestBody = null; - List response = api.findCanonicalSequencesUsingPOST(referenceGenome, sequenceType, requestBody); + String sequenceType = null; + List response = api.findCanonicalSequences(referenceGenome, requestBody, sequenceType); // TODO: test validations } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceResourceApiTest.java new file mode 100644 index 0000000..ba3e53c --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceResourceApiTest.java @@ -0,0 +1,128 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Pageable; +import org.oncokb.oncokb_curation.client.Sequence; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SequenceResourceApi + */ +@Ignore +public class SequenceResourceApiTest { + + private final SequenceResourceApi api = new SequenceResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createSequenceTest() throws ApiException { + Sequence sequence = null; + Sequence response = api.createSequence(sequence); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteSequenceTest() throws ApiException { + Long id = null; + api.deleteSequence(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllSequencesTest() throws ApiException { + Pageable pageable = null; + List response = api.getAllSequences(pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getSequenceTest() throws ApiException { + Long id = null; + Sequence response = api.getSequence(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateSequenceTest() throws ApiException { + Long id = null; + Sequence sequence = null; + Sequence response = api.partialUpdateSequence(id, sequence); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateSequenceTest() throws ApiException { + Long id = null; + Sequence sequence = null; + Sequence response = api.updateSequence(id, sequence); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/SequenceTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceTest.java similarity index 83% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/SequenceTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceTest.java index 51e1319..b39492c 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/SequenceTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SequenceTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.Transcript; +import org.oncokb.oncokb_curation.client.Transcript; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -50,19 +50,19 @@ public void idTest() { } /** - * Test the property 'sequence' + * Test the property 'sequenceType' */ @Test - public void sequenceTest() { - // TODO: test sequence + public void sequenceTypeTest() { + // TODO: test sequenceType } /** - * Test the property 'sequenceType' + * Test the property 'sequence' */ @Test - public void sequenceTypeTest() { - // TODO: test sequenceType + public void sequenceTest() { + // TODO: test sequence } /** diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApiTest.java new file mode 100644 index 0000000..1e61580 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeResourceApiTest.java @@ -0,0 +1,126 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.SpecimenType; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for SpecimenTypeResourceApi + */ +@Ignore +public class SpecimenTypeResourceApiTest { + + private final SpecimenTypeResourceApi api = new SpecimenTypeResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createSpecimenTypeTest() throws ApiException { + SpecimenType specimenType = null; + SpecimenType response = api.createSpecimenType(specimenType); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteSpecimenTypeTest() throws ApiException { + Long id = null; + api.deleteSpecimenType(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllSpecimenTypesTest() throws ApiException { + List response = api.getAllSpecimenTypes(); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getSpecimenTypeTest() throws ApiException { + Long id = null; + SpecimenType response = api.getSpecimenType(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateSpecimenTypeTest() throws ApiException { + Long id = null; + SpecimenType specimenType = null; + SpecimenType response = api.partialUpdateSpecimenType(id, specimenType); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateSpecimenTypeTest() throws ApiException { + Long id = null; + SpecimenType specimenType = null; + SpecimenType response = api.updateSpecimenType(id, specimenType); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeTest.java new file mode 100644 index 0000000..f76c644 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/SpecimenTypeTest.java @@ -0,0 +1,79 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.oncokb.oncokb_curation.client.CompanionDiagnosticDevice; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for SpecimenType + */ +public class SpecimenTypeTest { + private final SpecimenType model = new SpecimenType(); + + /** + * Model tests for SpecimenType + */ + @Test + public void testSpecimenType() { + // TODO: test SpecimenType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'companionDiagnosticDevices' + */ + @Test + public void companionDiagnosticDevicesTest() { + // TODO: test companionDiagnosticDevices + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/StringFilterTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/StringFilterTest.java new file mode 100644 index 0000000..7a9cbf6 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/StringFilterTest.java @@ -0,0 +1,101 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for StringFilter + */ +public class StringFilterTest { + private final StringFilter model = new StringFilter(); + + /** + * Model tests for StringFilter + */ + @Test + public void testStringFilter() { + // TODO: test StringFilter + } + + /** + * Test the property 'equals' + */ + @Test + public void equalsTest() { + // TODO: test equals + } + + /** + * Test the property 'notEquals' + */ + @Test + public void notEqualsTest() { + // TODO: test notEquals + } + + /** + * Test the property 'specified' + */ + @Test + public void specifiedTest() { + // TODO: test specified + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } + + /** + * Test the property 'contains' + */ + @Test + public void containsTest() { + // TODO: test contains + } + + /** + * Test the property 'doesNotContain' + */ + @Test + public void doesNotContainTest() { + // TODO: test doesNotContain + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVMTest.java similarity index 86% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVMTest.java index 0def062..49de0e2 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonResultVMTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVMTest.java similarity index 82% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVMTest.java index 1c2d8d3..a4af302 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptComparisonVMTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.TranscriptPairVM; +import org.oncokb.oncokb_curation.client.TranscriptPairVM; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptControllerApiTest.java similarity index 57% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApiTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptControllerApiTest.java index 4885be0..d62ba91 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApiTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptControllerApiTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,16 +11,16 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.client.AddTranscriptBody; -import org.oncokb.oncokb_transcript.client.AllReferenceTranscriptSuggestionVM; -import org.oncokb.oncokb_transcript.client.MatchTranscriptVM; -import org.oncokb.oncokb_transcript.client.TranscriptComparisonResultVM; -import org.oncokb.oncokb_transcript.client.TranscriptComparisonVM; -import org.oncokb.oncokb_transcript.client.TranscriptDTO; -import org.oncokb.oncokb_transcript.client.TranscriptMatchResultVM; +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.AddTranscriptBody; +import org.oncokb.oncokb_curation.client.AllReferenceTranscriptSuggestionVM; +import org.oncokb.oncokb_curation.client.MatchTranscriptVM; +import org.oncokb.oncokb_curation.client.TranscriptComparisonResultVM; +import org.oncokb.oncokb_curation.client.TranscriptComparisonVM; +import org.oncokb.oncokb_curation.client.TranscriptDTO; +import org.oncokb.oncokb_curation.client.TranscriptMatchResultVM; import org.junit.Test; import org.junit.Ignore; @@ -39,7 +39,7 @@ public class TranscriptControllerApiTest { /** - * addTranscript + * * * * @@ -47,14 +47,14 @@ public class TranscriptControllerApiTest { * if the Api call fails */ @Test - public void addTranscriptUsingPOSTTest() throws ApiException { + public void addTranscriptTest() throws ApiException { AddTranscriptBody addTranscriptBody = null; - TranscriptDTO response = api.addTranscriptUsingPOST(addTranscriptBody); + TranscriptDTO response = api.addTranscript(addTranscriptBody); // TODO: test validations } /** - * compareTranscript + * * * * @@ -62,15 +62,15 @@ public void addTranscriptUsingPOSTTest() throws ApiException { * if the Api call fails */ @Test - public void compareTranscriptUsingPOSTTest() throws ApiException { + public void compareTranscriptTest() throws ApiException { String hugoSymbol = null; TranscriptComparisonVM transcriptComparisonVM = null; - TranscriptComparisonResultVM response = api.compareTranscriptUsingPOST(hugoSymbol, transcriptComparisonVM); + TranscriptComparisonResultVM response = api.compareTranscript(hugoSymbol, transcriptComparisonVM); // TODO: test validations } /** - * findTranscriptsByEnsemblIds + * * * * @@ -78,15 +78,15 @@ public void compareTranscriptUsingPOSTTest() throws ApiException { * if the Api call fails */ @Test - public void findTranscriptsByEnsemblIdsUsingPOSTTest() throws ApiException { + public void findTranscriptsByEnsemblIdsTest() throws ApiException { String referenceGenome = null; List requestBody = null; - List response = api.findTranscriptsByEnsemblIdsUsingPOST(referenceGenome, requestBody); + List response = api.findTranscriptsByEnsemblIds(referenceGenome, requestBody); // TODO: test validations } /** - * matchTranscript + * * * * @@ -94,15 +94,15 @@ public void findTranscriptsByEnsemblIdsUsingPOSTTest() throws ApiException { * if the Api call fails */ @Test - public void matchTranscriptUsingPOSTTest() throws ApiException { + public void matchTranscriptTest() throws ApiException { String hugoSymbol = null; MatchTranscriptVM matchTranscriptVM = null; - TranscriptMatchResultVM response = api.matchTranscriptUsingPOST(hugoSymbol, matchTranscriptVM); + TranscriptMatchResultVM response = api.matchTranscript(hugoSymbol, matchTranscriptVM); // TODO: test validations } /** - * suggestVariant + * * * * @@ -110,13 +110,13 @@ public void matchTranscriptUsingPOSTTest() throws ApiException { * if the Api call fails */ @Test - public void suggestVariantUsingGETTest() throws ApiException { + public void suggestVariantTest() throws ApiException { String hugoSymbol = null; Integer proteinPosition = null; String curatedResidue = null; String grch37Transcript = null; String grch38Transcript = null; - AllReferenceTranscriptSuggestionVM response = api.suggestVariantUsingGET(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript); + AllReferenceTranscriptSuggestionVM response = api.suggestVariant(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript); // TODO: test validations } diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptDTOTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptDTOTest.java similarity index 89% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptDTOTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptDTOTest.java index 65c3f3f..340afd6 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptDTOTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptDTOTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -23,8 +23,8 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import org.oncokb.oncokb_transcript.client.EnsemblGene; -import org.oncokb.oncokb_transcript.client.GenomeFragment; +import org.oncokb.oncokb_curation.client.EnsemblGene; +import org.oncokb.oncokb_curation.client.GenomeFragment; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -45,99 +45,99 @@ public void testTranscriptDTO() { } /** - * Test the property 'canonical' + * Test the property 'id' */ @Test - public void canonicalTest() { - // TODO: test canonical + public void idTest() { + // TODO: test id } /** - * Test the property 'chromosome' + * Test the property 'ensemblTranscriptId' */ @Test - public void chromosomeTest() { - // TODO: test chromosome + public void ensemblTranscriptIdTest() { + // TODO: test ensemblTranscriptId } /** - * Test the property 'description' + * Test the property 'canonical' */ @Test - public void descriptionTest() { - // TODO: test description + public void canonicalTest() { + // TODO: test canonical } /** - * Test the property 'end' + * Test the property 'ensemblProteinId' */ @Test - public void endTest() { - // TODO: test end + public void ensemblProteinIdTest() { + // TODO: test ensemblProteinId } /** - * Test the property 'ensemblGene' + * Test the property 'referenceSequenceId' */ @Test - public void ensemblGeneTest() { - // TODO: test ensemblGene + public void referenceSequenceIdTest() { + // TODO: test referenceSequenceId } /** - * Test the property 'ensemblProteinId' + * Test the property 'description' */ @Test - public void ensemblProteinIdTest() { - // TODO: test ensemblProteinId + public void descriptionTest() { + // TODO: test description } /** - * Test the property 'ensemblTranscriptId' + * Test the property 'ensemblGene' */ @Test - public void ensemblTranscriptIdTest() { - // TODO: test ensemblTranscriptId + public void ensemblGeneTest() { + // TODO: test ensemblGene } /** - * Test the property 'exons' + * Test the property 'strand' */ @Test - public void exonsTest() { - // TODO: test exons + public void strandTest() { + // TODO: test strand } /** - * Test the property 'id' + * Test the property 'chromosome' */ @Test - public void idTest() { - // TODO: test id + public void chromosomeTest() { + // TODO: test chromosome } /** - * Test the property 'referenceSequenceId' + * Test the property 'start' */ @Test - public void referenceSequenceIdTest() { - // TODO: test referenceSequenceId + public void startTest() { + // TODO: test start } /** - * Test the property 'start' + * Test the property 'end' */ @Test - public void startTest() { - // TODO: test start + public void endTest() { + // TODO: test end } /** - * Test the property 'strand' + * Test the property 'exons' */ @Test - public void strandTest() { - // TODO: test strand + public void exonsTest() { + // TODO: test exons } /** diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVMTest.java similarity index 83% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVMTest.java index 7067eb1..5f27284 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptMatchResultVMTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -21,7 +21,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.oncokb.oncokb_transcript.client.EnsemblTranscript; +import org.oncokb.oncokb_curation.client.EnsemblTranscript; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptPairVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptPairVMTest.java similarity index 84% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptPairVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptPairVMTest.java index 2fb8e7e..78f886c 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptPairVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptPairVMTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptResourceApiTest.java new file mode 100644 index 0000000..83ffe1a --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptResourceApiTest.java @@ -0,0 +1,128 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Pageable; +import org.oncokb.oncokb_curation.client.TranscriptDTO; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TranscriptResourceApi + */ +@Ignore +public class TranscriptResourceApiTest { + + private final TranscriptResourceApi api = new TranscriptResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createTranscriptTest() throws ApiException { + TranscriptDTO transcriptDTO = null; + TranscriptDTO response = api.createTranscript(transcriptDTO); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteTranscriptTest() throws ApiException { + Long id = null; + api.deleteTranscript(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllTranscriptsTest() throws ApiException { + Pageable pageable = null; + List response = api.getAllTranscripts(pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getTranscriptTest() throws ApiException { + Long id = null; + TranscriptDTO response = api.getTranscript(id); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void partialUpdateTranscriptTest() throws ApiException { + Long id = null; + TranscriptDTO transcriptDTO = null; + TranscriptDTO response = api.partialUpdateTranscript(id, transcriptDTO); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateTranscriptTest() throws ApiException { + Long id = null; + TranscriptDTO transcriptDTO = null; + TranscriptDTO response = api.updateTranscript(id, transcriptDTO); + // TODO: test validations + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVMTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVMTest.java similarity index 86% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVMTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVMTest.java index e63fe68..155c28a 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVMTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptSuggestionVMTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -43,19 +43,19 @@ public void testTranscriptSuggestionVM() { } /** - * Test the property 'note' + * Test the property 'referenceGenome' */ @Test - public void noteTest() { - // TODO: test note + public void referenceGenomeTest() { + // TODO: test referenceGenome } /** - * Test the property 'referenceGenome' + * Test the property 'note' */ @Test - public void referenceGenomeTest() { - // TODO: test referenceGenome + public void noteTest() { + // TODO: test note } /** diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptTest.java similarity index 85% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptTest.java index 4d92921..8b9b2cb 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/TranscriptTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TranscriptTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -24,9 +24,9 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Set; -import org.oncokb.oncokb_transcript.client.EnsemblGene; -import org.oncokb.oncokb_transcript.client.GenomeFragment; -import org.oncokb.oncokb_transcript.client.Sequence; +import org.oncokb.oncokb_curation.client.EnsemblGene; +import org.oncokb.oncokb_curation.client.GenomeFragment; +import org.oncokb.oncokb_curation.client.Sequence; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; @@ -47,27 +47,27 @@ public void testTranscript() { } /** - * Test the property 'canonical' + * Test the property 'id' */ @Test - public void canonicalTest() { - // TODO: test canonical + public void idTest() { + // TODO: test id } /** - * Test the property 'description' + * Test the property 'ensemblTranscriptId' */ @Test - public void descriptionTest() { - // TODO: test description + public void ensemblTranscriptIdTest() { + // TODO: test ensemblTranscriptId } /** - * Test the property 'ensemblGene' + * Test the property 'canonical' */ @Test - public void ensemblGeneTest() { - // TODO: test ensemblGene + public void canonicalTest() { + // TODO: test canonical } /** @@ -79,43 +79,43 @@ public void ensemblProteinIdTest() { } /** - * Test the property 'ensemblTranscriptId' + * Test the property 'referenceSequenceId' */ @Test - public void ensemblTranscriptIdTest() { - // TODO: test ensemblTranscriptId + public void referenceSequenceIdTest() { + // TODO: test referenceSequenceId } /** - * Test the property 'fragments' + * Test the property 'description' */ @Test - public void fragmentsTest() { - // TODO: test fragments + public void descriptionTest() { + // TODO: test description } /** - * Test the property 'id' + * Test the property 'fragments' */ @Test - public void idTest() { - // TODO: test id + public void fragmentsTest() { + // TODO: test fragments } /** - * Test the property 'referenceSequenceId' + * Test the property 'sequences' */ @Test - public void referenceSequenceIdTest() { - // TODO: test referenceSequenceId + public void sequencesTest() { + // TODO: test sequences } /** - * Test the property 'sequences' + * Test the property 'ensemblGene' */ @Test - public void sequencesTest() { - // TODO: test sequences + public void ensemblGeneTest() { + // TODO: test ensemblGene } } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TumorFormFilterTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TumorFormFilterTest.java new file mode 100644 index 0000000..e456b46 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/TumorFormFilterTest.java @@ -0,0 +1,85 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for TumorFormFilter + */ +public class TumorFormFilterTest { + private final TumorFormFilter model = new TumorFormFilter(); + + /** + * Model tests for TumorFormFilter + */ + @Test + public void testTumorFormFilter() { + // TODO: test TumorFormFilter + } + + /** + * Test the property 'equals' + */ + @Test + public void equalsTest() { + // TODO: test equals + } + + /** + * Test the property 'notEquals' + */ + @Test + public void notEqualsTest() { + // TODO: test notEquals + } + + /** + * Test the property 'specified' + */ + @Test + public void specifiedTest() { + // TODO: test specified + } + + /** + * Test the property 'in' + */ + @Test + public void inTest() { + // TODO: test in + } + + /** + * Test the property 'notIn' + */ + @Test + public void notInTest() { + // TODO: test notIn + } + +} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/UntranslatedRegionTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UntranslatedRegionTest.java similarity index 86% rename from oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/UntranslatedRegionTest.java rename to oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UntranslatedRegionTest.java index 4fdb9ee..0a4a2f0 100644 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/UntranslatedRegionTest.java +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UntranslatedRegionTest.java @@ -1,8 +1,8 @@ /* - * oncokb-transcript API - * oncokb-transcript API documentation + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 0.0.1 + * The version of the OpenAPI document: v0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,7 +11,7 @@ */ -package org.oncokb.oncokb_transcript.client; +package org.oncokb.oncokb_curation.client; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; @@ -41,11 +41,11 @@ public void testUntranslatedRegion() { } /** - * Test the property 'end' + * Test the property 'type' */ @Test - public void endTest() { - // TODO: test end + public void typeTest() { + // TODO: test type } /** @@ -57,19 +57,19 @@ public void startTest() { } /** - * Test the property 'strand' + * Test the property 'end' */ @Test - public void strandTest() { - // TODO: test strand + public void endTest() { + // TODO: test end } /** - * Test the property 'type' + * Test the property 'strand' */ @Test - public void typeTest() { - // TODO: test type + public void strandTest() { + // TODO: test strand } } diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserDTOTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserDTOTest.java new file mode 100644 index 0000000..3224d6e --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserDTOTest.java @@ -0,0 +1,151 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Set; +import org.threeten.bp.OffsetDateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for UserDTO + */ +public class UserDTOTest { + private final UserDTO model = new UserDTO(); + + /** + * Model tests for UserDTO + */ + @Test + public void testUserDTO() { + // TODO: test UserDTO + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'login' + */ + @Test + public void loginTest() { + // TODO: test login + } + + /** + * Test the property 'firstName' + */ + @Test + public void firstNameTest() { + // TODO: test firstName + } + + /** + * Test the property 'lastName' + */ + @Test + public void lastNameTest() { + // TODO: test lastName + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'imageUrl' + */ + @Test + public void imageUrlTest() { + // TODO: test imageUrl + } + + /** + * Test the property 'activated' + */ + @Test + public void activatedTest() { + // TODO: test activated + } + + /** + * Test the property 'langKey' + */ + @Test + public void langKeyTest() { + // TODO: test langKey + } + + /** + * Test the property 'createdBy' + */ + @Test + public void createdByTest() { + // TODO: test createdBy + } + + /** + * Test the property 'createdDate' + */ + @Test + public void createdDateTest() { + // TODO: test createdDate + } + + /** + * Test the property 'lastModifiedBy' + */ + @Test + public void lastModifiedByTest() { + // TODO: test lastModifiedBy + } + + /** + * Test the property 'lastModifiedDate' + */ + @Test + public void lastModifiedDateTest() { + // TODO: test lastModifiedDate + } + + /** + * Test the property 'authorities' + */ + @Test + public void authoritiesTest() { + // TODO: test authorities + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserResourceApiTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserResourceApiTest.java new file mode 100644 index 0000000..0f42d08 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserResourceApiTest.java @@ -0,0 +1,113 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import org.oncokb.oncokb_curation.ApiException; +import org.oncokb.oncokb_curation.client.Pageable; +import org.oncokb.oncokb_curation.client.User; +import org.oncokb.oncokb_curation.client.UserDTO; +import org.junit.Test; +import org.junit.Ignore; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for UserResourceApi + */ +@Ignore +public class UserResourceApiTest { + + private final UserResourceApi api = new UserResourceApi(); + + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createUserTest() throws ApiException { + UserDTO userDTO = null; + User response = api.createUser(userDTO); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteUserTest() throws ApiException { + String login = null; + api.deleteUser(login); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getAllUsersTest() throws ApiException { + Pageable pageable = null; + List response = api.getAllUsers(pageable); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getUserTest() throws ApiException { + String login = null; + UserDTO response = api.getUser(login); + // TODO: test validations + } + + /** + * + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateUserTest() throws ApiException { + Long id = null; + UserDTO userDTO = null; + UserDTO response = api.updateUser(id, userDTO); + // TODO: test validations + } + +} diff --git a/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserTest.java b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserTest.java new file mode 100644 index 0000000..1f7beb6 --- /dev/null +++ b/oncokbCurationApiClient/src/test/java/org/oncokb/oncokb_curation/client/UserTest.java @@ -0,0 +1,107 @@ +/* + * OpenAPI definition + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package org.oncokb.oncokb_curation.client; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for User + */ +public class UserTest { + private final User model = new User(); + + /** + * Model tests for User + */ + @Test + public void testUser() { + // TODO: test User + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'login' + */ + @Test + public void loginTest() { + // TODO: test login + } + + /** + * Test the property 'firstName' + */ + @Test + public void firstNameTest() { + // TODO: test firstName + } + + /** + * Test the property 'lastName' + */ + @Test + public void lastNameTest() { + // TODO: test lastName + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'activated' + */ + @Test + public void activatedTest() { + // TODO: test activated + } + + /** + * Test the property 'langKey' + */ + @Test + public void langKeyTest() { + // TODO: test langKey + } + + /** + * Test the property 'imageUrl' + */ + @Test + public void imageUrlTest() { + // TODO: test imageUrl + } + +} diff --git a/oncokbTranscriptApiClient/.openapi-generator/FILES b/oncokbTranscriptApiClient/.openapi-generator/FILES deleted file mode 100644 index 44b2aa8..0000000 --- a/oncokbTranscriptApiClient/.openapi-generator/FILES +++ /dev/null @@ -1,126 +0,0 @@ -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -api/openapi.yaml -build.gradle -build.sbt -docs/AccountResourceApi.md -docs/AddEnsemblGeneBody.md -docs/AddTranscriptBody.md -docs/AllReferenceTranscriptSuggestionVM.md -docs/Drug.md -docs/DrugControllerApi.md -docs/DrugSynonym.md -docs/EnsemblGene.md -docs/EnsemblGeneControllerApi.md -docs/EnsemblTranscript.md -docs/Exon.md -docs/Gene.md -docs/GeneAlias.md -docs/GeneControllerApi.md -docs/GeneResourceApi.md -docs/GenomeFragment.md -docs/MatchTranscriptVM.md -docs/PfamDomainRange.md -docs/PipelineControllerApi.md -docs/Sequence.md -docs/SequenceControllerApi.md -docs/Transcript.md -docs/TranscriptComparisonResultVM.md -docs/TranscriptComparisonVM.md -docs/TranscriptControllerApi.md -docs/TranscriptDTO.md -docs/TranscriptMatchResultVM.md -docs/TranscriptPairVM.md -docs/TranscriptSuggestionVM.md -docs/UntranslatedRegion.md -docs/UserVM.md -git_push.sh -gradle.properties -gradle/wrapper/gradle-wrapper.jar -gradle/wrapper/gradle-wrapper.properties -gradlew -gradlew.bat -pom.xml -settings.gradle -src/main/AndroidManifest.xml -src/main/java/org/oncokb/oncokb_transcript/ApiCallback.java -src/main/java/org/oncokb/oncokb_transcript/ApiClient.java -src/main/java/org/oncokb/oncokb_transcript/ApiException.java -src/main/java/org/oncokb/oncokb_transcript/ApiResponse.java -src/main/java/org/oncokb/oncokb_transcript/Configuration.java -src/main/java/org/oncokb/oncokb_transcript/GzipRequestInterceptor.java -src/main/java/org/oncokb/oncokb_transcript/JSON.java -src/main/java/org/oncokb/oncokb_transcript/Pair.java -src/main/java/org/oncokb/oncokb_transcript/ProgressRequestBody.java -src/main/java/org/oncokb/oncokb_transcript/ProgressResponseBody.java -src/main/java/org/oncokb/oncokb_transcript/ServerConfiguration.java -src/main/java/org/oncokb/oncokb_transcript/ServerVariable.java -src/main/java/org/oncokb/oncokb_transcript/StringUtil.java -src/main/java/org/oncokb/oncokb_transcript/auth/ApiKeyAuth.java -src/main/java/org/oncokb/oncokb_transcript/auth/Authentication.java -src/main/java/org/oncokb/oncokb_transcript/auth/HttpBasicAuth.java -src/main/java/org/oncokb/oncokb_transcript/auth/HttpBearerAuth.java -src/main/java/org/oncokb/oncokb_transcript/client/AccountResourceApi.java -src/main/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBody.java -src/main/java/org/oncokb/oncokb_transcript/client/AddTranscriptBody.java -src/main/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVM.java -src/main/java/org/oncokb/oncokb_transcript/client/Drug.java -src/main/java/org/oncokb/oncokb_transcript/client/DrugControllerApi.java -src/main/java/org/oncokb/oncokb_transcript/client/DrugSynonym.java -src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGene.java -src/main/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApi.java -src/main/java/org/oncokb/oncokb_transcript/client/EnsemblTranscript.java -src/main/java/org/oncokb/oncokb_transcript/client/Exon.java -src/main/java/org/oncokb/oncokb_transcript/client/Gene.java -src/main/java/org/oncokb/oncokb_transcript/client/GeneAlias.java -src/main/java/org/oncokb/oncokb_transcript/client/GeneControllerApi.java -src/main/java/org/oncokb/oncokb_transcript/client/GeneResourceApi.java -src/main/java/org/oncokb/oncokb_transcript/client/GenomeFragment.java -src/main/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVM.java -src/main/java/org/oncokb/oncokb_transcript/client/PfamDomainRange.java -src/main/java/org/oncokb/oncokb_transcript/client/PipelineControllerApi.java -src/main/java/org/oncokb/oncokb_transcript/client/Sequence.java -src/main/java/org/oncokb/oncokb_transcript/client/SequenceControllerApi.java -src/main/java/org/oncokb/oncokb_transcript/client/Transcript.java -src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVM.java -src/main/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVM.java -src/main/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApi.java -src/main/java/org/oncokb/oncokb_transcript/client/TranscriptDTO.java -src/main/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVM.java -src/main/java/org/oncokb/oncokb_transcript/client/TranscriptPairVM.java -src/main/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVM.java -src/main/java/org/oncokb/oncokb_transcript/client/UntranslatedRegion.java -src/main/java/org/oncokb/oncokb_transcript/client/UserVM.java -src/test/java/org/oncokb/oncokb_transcript/client/AccountResourceApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/AddEnsemblGeneBodyTest.java -src/test/java/org/oncokb/oncokb_transcript/client/AddTranscriptBodyTest.java -src/test/java/org/oncokb/oncokb_transcript/client/AllReferenceTranscriptSuggestionVMTest.java -src/test/java/org/oncokb/oncokb_transcript/client/DrugControllerApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/DrugSynonymTest.java -src/test/java/org/oncokb/oncokb_transcript/client/DrugTest.java -src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneControllerApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/EnsemblGeneTest.java -src/test/java/org/oncokb/oncokb_transcript/client/EnsemblTranscriptTest.java -src/test/java/org/oncokb/oncokb_transcript/client/ExonTest.java -src/test/java/org/oncokb/oncokb_transcript/client/GeneAliasTest.java -src/test/java/org/oncokb/oncokb_transcript/client/GeneControllerApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/GeneResourceApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/GeneTest.java -src/test/java/org/oncokb/oncokb_transcript/client/GenomeFragmentTest.java -src/test/java/org/oncokb/oncokb_transcript/client/MatchTranscriptVMTest.java -src/test/java/org/oncokb/oncokb_transcript/client/PfamDomainRangeTest.java -src/test/java/org/oncokb/oncokb_transcript/client/PipelineControllerApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/SequenceControllerApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/SequenceTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonResultVMTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptComparisonVMTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptControllerApiTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptDTOTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptMatchResultVMTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptPairVMTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptSuggestionVMTest.java -src/test/java/org/oncokb/oncokb_transcript/client/TranscriptTest.java -src/test/java/org/oncokb/oncokb_transcript/client/UntranslatedRegionTest.java -src/test/java/org/oncokb/oncokb_transcript/client/UserVMTest.java diff --git a/oncokbTranscriptApiClient/README.md b/oncokbTranscriptApiClient/README.md deleted file mode 100644 index 5cabfa5..0000000 --- a/oncokbTranscriptApiClient/README.md +++ /dev/null @@ -1,181 +0,0 @@ -# oncokbTranscriptApiClient - -oncokb-transcript API -- API version: 0.0.1 - -oncokb-transcript API documentation - - -*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)* - - -## Requirements - -Building the API client library requires: -1. Java 1.7+ -2. Maven (3.8.3+)/Gradle (7.2+) - -## Installation - -To install the API client library to your local Maven repository, simply execute: - -```shell -mvn clean install -``` - -To deploy it to a remote Maven repository instead, configure the settings of the repository and execute: - -```shell -mvn clean deploy -``` - -Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information. - -### Maven users - -Add this dependency to your project's POM: - -```xml - - org.oncokb.oncokb-transcript.client - oncokbTranscriptApiClient - 0.0.1-SNAPSHOT - compile - -``` - -### Gradle users - -Add this dependency to your project's build file: - -```groovy - repositories { - mavenCentral() // Needed if the 'oncokbTranscriptApiClient' jar has been published to maven central. - mavenLocal() // Needed if the 'oncokbTranscriptApiClient' jar has been published to the local maven repo. - } - - dependencies { - implementation "org.oncokb.oncokb-transcript.client:oncokbTranscriptApiClient:0.0.1-SNAPSHOT" - } -``` - -### Others - -At first generate the JAR by executing: - -```shell -mvn clean package -``` - -Then manually install the following JARs: - -* `target/oncokbTranscriptApiClient-0.0.1-SNAPSHOT.jar` -* `target/lib/*.jar` - -## Getting Started - -Please follow the [installation](#installation) instruction and execute the following Java code: - -```java - -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.AccountResourceApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - AccountResourceApi apiInstance = new AccountResourceApi(defaultClient); - try { - UserVM result = apiInstance.getAccountUsingGET(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AccountResourceApi#getAccountUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} - -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://transcript.oncokb.org:443* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AccountResourceApi* | [**getAccountUsingGET**](docs/AccountResourceApi.md#getAccountUsingGET) | **GET** /api/account | getAccount -*AccountResourceApi* | [**isAuthenticatedUsingGET**](docs/AccountResourceApi.md#isAuthenticatedUsingGET) | **GET** /api/authenticate | isAuthenticated -*DrugControllerApi* | [**findDrugByCodeUsingGET**](docs/DrugControllerApi.md#findDrugByCodeUsingGET) | **GET** /api/drugs/search-by-code/{code} | findDrugByCode -*DrugControllerApi* | [**findDrugsUsingGET**](docs/DrugControllerApi.md#findDrugsUsingGET) | **GET** /api/drugs/search | findDrugs -*EnsemblGeneControllerApi* | [**addEnsemblGeneUsingPOST**](docs/EnsemblGeneControllerApi.md#addEnsemblGeneUsingPOST) | **POST** /api/add-ensembl-gene | addEnsemblGene -*GeneControllerApi* | [**findGeneBySymbolUsingGET**](docs/GeneControllerApi.md#findGeneBySymbolUsingGET) | **GET** /api/find-genes | findGeneBySymbol -*GeneControllerApi* | [**findGenesBySymbolsUsingPOST**](docs/GeneControllerApi.md#findGenesBySymbolsUsingPOST) | **POST** /api/find-genes | findGenesBySymbols -*GeneResourceApi* | [**getAllGenesUsingGET**](docs/GeneResourceApi.md#getAllGenesUsingGET) | **GET** /api/genes | getAllGenes -*PipelineControllerApi* | [**updateNcitUsingPOST**](docs/PipelineControllerApi.md#updateNcitUsingPOST) | **POST** /api/pipeline/update-ncit | updateNcit -*PipelineControllerApi* | [**updatePortalGeneUsingPOST**](docs/PipelineControllerApi.md#updatePortalGeneUsingPOST) | **POST** /api/pipeline/update-gene | updatePortalGene -*SequenceControllerApi* | [**findCanonicalSequenceUsingGET**](docs/SequenceControllerApi.md#findCanonicalSequenceUsingGET) | **GET** /api/find-canonical-sequences | findCanonicalSequence -*SequenceControllerApi* | [**findCanonicalSequencesUsingPOST**](docs/SequenceControllerApi.md#findCanonicalSequencesUsingPOST) | **POST** /api/find-canonical-sequences | findCanonicalSequences -*TranscriptControllerApi* | [**addTranscriptUsingPOST**](docs/TranscriptControllerApi.md#addTranscriptUsingPOST) | **POST** /api/add-transcript | addTranscript -*TranscriptControllerApi* | [**compareTranscriptUsingPOST**](docs/TranscriptControllerApi.md#compareTranscriptUsingPOST) | **POST** /api/compare-transcript/{hugoSymbol} | compareTranscript -*TranscriptControllerApi* | [**findTranscriptsByEnsemblIdsUsingPOST**](docs/TranscriptControllerApi.md#findTranscriptsByEnsemblIdsUsingPOST) | **POST** /api/find-transcripts-by-ensembl-ids | findTranscriptsByEnsemblIds -*TranscriptControllerApi* | [**matchTranscriptUsingPOST**](docs/TranscriptControllerApi.md#matchTranscriptUsingPOST) | **POST** /api/match-transcript/{hugoSymbol} | matchTranscript -*TranscriptControllerApi* | [**suggestVariantUsingGET**](docs/TranscriptControllerApi.md#suggestVariantUsingGET) | **GET** /api/suggest-variant/{hugoSymbol} | suggestVariant - - -## Documentation for Models - - - [AddEnsemblGeneBody](docs/AddEnsemblGeneBody.md) - - [AddTranscriptBody](docs/AddTranscriptBody.md) - - [AllReferenceTranscriptSuggestionVM](docs/AllReferenceTranscriptSuggestionVM.md) - - [Drug](docs/Drug.md) - - [DrugSynonym](docs/DrugSynonym.md) - - [EnsemblGene](docs/EnsemblGene.md) - - [EnsemblTranscript](docs/EnsemblTranscript.md) - - [Exon](docs/Exon.md) - - [Gene](docs/Gene.md) - - [GeneAlias](docs/GeneAlias.md) - - [GenomeFragment](docs/GenomeFragment.md) - - [MatchTranscriptVM](docs/MatchTranscriptVM.md) - - [PfamDomainRange](docs/PfamDomainRange.md) - - [Sequence](docs/Sequence.md) - - [Transcript](docs/Transcript.md) - - [TranscriptComparisonResultVM](docs/TranscriptComparisonResultVM.md) - - [TranscriptComparisonVM](docs/TranscriptComparisonVM.md) - - [TranscriptDTO](docs/TranscriptDTO.md) - - [TranscriptMatchResultVM](docs/TranscriptMatchResultVM.md) - - [TranscriptPairVM](docs/TranscriptPairVM.md) - - [TranscriptSuggestionVM](docs/TranscriptSuggestionVM.md) - - [UntranslatedRegion](docs/UntranslatedRegion.md) - - [UserVM](docs/UserVM.md) - - -## Documentation for Authorization - -Authentication schemes defined for the API: -### Authorization - -- **Type**: HTTP basic authentication - - -## Recommendation - -It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues. - -## Author - - - diff --git a/oncokbTranscriptApiClient/api/openapi.yaml b/oncokbTranscriptApiClient/api/openapi.yaml deleted file mode 100644 index 6d1fefd..0000000 --- a/oncokbTranscriptApiClient/api/openapi.yaml +++ /dev/null @@ -1,1552 +0,0 @@ -openapi: 3.0.3 -info: - contact: {} - description: oncokb-transcript API documentation - license: - name: unlicensed - title: oncokb-transcript API - version: 0.0.1 -servers: -- description: Inferred Url - url: https://transcript.oncokb.org:443 -tags: -- description: Account Resource - name: account-resource -- description: Drug Controller - name: drug-controller -- description: Ensembl Gene Controller - name: ensembl-gene-controller -- description: Gene Controller - name: gene-controller -- description: Gene Resource - name: gene-resource -- description: Pipeline Controller - name: pipeline-controller -- description: Sequence Controller - name: sequence-controller -- description: Transcript Controller - name: transcript-controller -paths: - /api/account: - get: - operationId: getAccountUsingGET - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/UserVM' - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: getAccount - tags: - - account-resource - x-accepts: '*/*' - /api/authenticate: - get: - operationId: isAuthenticatedUsingGET - responses: - "200": - content: - '*/*': - schema: - type: string - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: isAuthenticated - tags: - - account-resource - x-accepts: '*/*' - /api/drugs/search: - get: - operationId: findDrugsUsingGET - parameters: - - description: query - explode: true - in: query - name: query - required: true - schema: - type: string - style: form - responses: - "200": - content: - '*/*': - schema: - items: - $ref: '#/components/schemas/Drug' - type: array - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: findDrugs - tags: - - drug-controller - x-accepts: '*/*' - /api/drugs/search-by-code/{code}: - get: - operationId: findDrugByCodeUsingGET - parameters: - - description: code - explode: false - in: path - name: code - required: true - schema: - type: string - style: simple - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/Drug' - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: findDrugByCode - tags: - - drug-controller - x-accepts: '*/*' - /api/add-ensembl-gene: - post: - operationId: addEnsemblGeneUsingPOST - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddEnsemblGeneBody' - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/EnsemblGene' - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: addEnsemblGene - tags: - - ensembl-gene-controller - x-contentType: application/json - x-accepts: '*/*' - /api/find-genes: - get: - operationId: findGeneBySymbolUsingGET - parameters: - - description: symbol - explode: true - in: query - name: symbol - required: true - schema: - type: string - style: form - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/Gene' - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: findGeneBySymbol - tags: - - gene-controller - x-accepts: '*/*' - post: - operationId: findGenesBySymbolsUsingPOST - requestBody: - content: - application/json: - schema: - items: - type: string - type: array - responses: - "200": - content: - '*/*': - schema: - items: - $ref: '#/components/schemas/Gene' - type: array - uniqueItems: true - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: findGenesBySymbols - tags: - - gene-controller - x-contentType: application/json - x-accepts: '*/*' - /api/genes: - get: - operationId: getAllGenesUsingGET - responses: - "200": - content: - '*/*': - schema: - items: - $ref: '#/components/schemas/Gene' - type: array - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: getAllGenes - tags: - - gene-resource - x-accepts: '*/*' - /api/pipeline/update-gene: - post: - operationId: updatePortalGeneUsingPOST - responses: - "200": - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: updatePortalGene - tags: - - pipeline-controller - x-accepts: application/json - /api/pipeline/update-ncit: - post: - operationId: updateNcitUsingPOST - responses: - "200": - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: updateNcit - tags: - - pipeline-controller - x-accepts: application/json - /api/find-canonical-sequences: - get: - operationId: findCanonicalSequenceUsingGET - parameters: - - description: referenceGenome - explode: true - in: query - name: referenceGenome - required: true - schema: - enum: - - GRCh37 - - GRCh38 - type: string - style: form - - description: entrezGeneId - explode: true - in: query - name: entrezGeneId - required: true - schema: - format: int32 - type: integer - style: form - - description: sequenceType - explode: true - in: query - name: sequenceType - required: false - schema: - enum: - - CDNA - - PROTEIN - type: string - style: form - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/Sequence' - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: findCanonicalSequence - tags: - - sequence-controller - x-accepts: '*/*' - post: - operationId: findCanonicalSequencesUsingPOST - parameters: - - description: referenceGenome - explode: true - in: query - name: referenceGenome - required: true - schema: - enum: - - GRCh37 - - GRCh38 - type: string - style: form - - description: sequenceType - explode: true - in: query - name: sequenceType - required: false - schema: - enum: - - CDNA - - PROTEIN - type: string - style: form - requestBody: - content: - application/json: - schema: - items: - format: int32 - type: integer - type: array - responses: - "200": - content: - '*/*': - schema: - items: - $ref: '#/components/schemas/Sequence' - type: array - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: findCanonicalSequences - tags: - - sequence-controller - x-contentType: application/json - x-accepts: '*/*' - /api/add-transcript: - post: - operationId: addTranscriptUsingPOST - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddTranscriptBody' - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/TranscriptDTO' - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: addTranscript - tags: - - transcript-controller - x-contentType: application/json - x-accepts: '*/*' - /api/compare-transcript/{hugoSymbol}: - post: - operationId: compareTranscriptUsingPOST - parameters: - - description: hugoSymbol - explode: false - in: path - name: hugoSymbol - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TranscriptComparisonVM' - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/TranscriptComparisonResultVM' - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: compareTranscript - tags: - - transcript-controller - x-contentType: application/json - x-accepts: '*/*' - /api/find-transcripts-by-ensembl-ids: - post: - operationId: findTranscriptsByEnsemblIdsUsingPOST - parameters: - - description: referenceGenome - explode: true - in: query - name: referenceGenome - required: true - schema: - enum: - - GRCh37 - - GRCh38 - type: string - style: form - requestBody: - content: - application/json: - schema: - items: - type: string - type: array - responses: - "200": - content: - '*/*': - schema: - items: - $ref: '#/components/schemas/TranscriptDTO' - type: array - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: findTranscriptsByEnsemblIds - tags: - - transcript-controller - x-contentType: application/json - x-accepts: '*/*' - /api/match-transcript/{hugoSymbol}: - post: - operationId: matchTranscriptUsingPOST - parameters: - - description: hugoSymbol - explode: false - in: path - name: hugoSymbol - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MatchTranscriptVM' - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/TranscriptMatchResultVM' - description: OK - "201": - description: Created - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: matchTranscript - tags: - - transcript-controller - x-contentType: application/json - x-accepts: '*/*' - /api/suggest-variant/{hugoSymbol}: - get: - operationId: suggestVariantUsingGET - parameters: - - description: hugoSymbol - explode: false - in: path - name: hugoSymbol - required: true - schema: - type: string - style: simple - - description: proteinPosition - explode: true - in: query - name: proteinPosition - required: true - schema: - format: int32 - type: integer - style: form - - description: curatedResidue - explode: true - in: query - name: curatedResidue - required: true - schema: - type: string - style: form - - description: grch37Transcript - explode: true - in: query - name: grch37Transcript - required: true - schema: - type: string - style: form - - description: grch38Transcript - explode: true - in: query - name: grch38Transcript - required: true - schema: - type: string - style: form - responses: - "200": - content: - '*/*': - schema: - $ref: '#/components/schemas/AllReferenceTranscriptSuggestionVM' - description: OK - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Not Found - security: - - Authorization: - - global - summary: suggestVariant - tags: - - transcript-controller - x-accepts: '*/*' -components: - schemas: - AddEnsemblGeneBody: - example: - ensemblGeneId: ensemblGeneId - entrezGeneId: 0 - canonical: true - referenceGenome: referenceGenome - properties: - canonical: - type: boolean - ensemblGeneId: - type: string - entrezGeneId: - format: int32 - type: integer - referenceGenome: - type: string - required: - - ensemblGeneId - - entrezGeneId - - referenceGenome - title: AddEnsemblGeneBody - type: object - AddTranscriptBody: - example: - ensemblTranscriptId: ensemblTranscriptId - entrezGeneId: 0 - canonical: true - referenceGenome: referenceGenome - properties: - canonical: - type: boolean - ensemblTranscriptId: - type: string - entrezGeneId: - format: int32 - type: integer - referenceGenome: - type: string - required: - - ensemblTranscriptId - - entrezGeneId - - referenceGenome - title: AddTranscriptBody - type: object - AllReferenceTranscriptSuggestionVM: - example: - grch37: - note: note - suggestions: - - suggestions - - suggestions - referenceGenome: GRCh37 - grch38: - note: note - suggestions: - - suggestions - - suggestions - referenceGenome: GRCh37 - properties: - grch37: - $ref: '#/components/schemas/TranscriptSuggestionVM' - grch38: - $ref: '#/components/schemas/TranscriptSuggestionVM' - title: AllReferenceTranscriptSuggestionVM - type: object - Drug: - example: - code: code - synonyms: - - name: name - id: 6 - - name: name - id: 6 - semanticType: semanticType - name: name - id: 0 - properties: - code: - type: string - id: - format: int64 - type: integer - name: - type: string - semanticType: - type: string - synonyms: - items: - $ref: '#/components/schemas/DrugSynonym' - type: array - uniqueItems: true - title: Drug - type: object - DrugSynonym: - example: - name: name - id: 6 - properties: - drug: - $ref: '#/components/schemas/Drug' - id: - format: int64 - type: integer - name: - type: string - title: DrugSynonym - type: object - EnsemblGene: - example: - ensemblGeneId: ensemblGeneId - strand: 7 - gene: - geneAliases: - - name: name - id: 1 - - name: name - id: 1 - entrezGeneId: 6 - hugoSymbol: hugoSymbol - id: 5 - ensemblGenes: - - null - - null - transcripts: - - ensemblProteinId: ensemblProteinId - ensemblTranscriptId: ensemblTranscriptId - description: description - fragments: - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - canonical: true - id: 7 - referenceSequenceId: referenceSequenceId - sequences: - - sequence: sequence - id: 1 - sequenceType: CDNA - - sequence: sequence - id: 1 - sequenceType: CDNA - - ensemblProteinId: ensemblProteinId - ensemblTranscriptId: ensemblTranscriptId - description: description - fragments: - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - canonical: true - id: 7 - referenceSequenceId: referenceSequenceId - sequences: - - sequence: sequence - id: 1 - sequenceType: CDNA - - sequence: sequence - id: 1 - sequenceType: CDNA - chromosome: chromosome - start: 2 - end: 0 - canonical: true - id: 5 - referenceGenome: referenceGenome - properties: - canonical: - type: boolean - chromosome: - type: string - end: - format: int32 - type: integer - ensemblGeneId: - type: string - gene: - $ref: '#/components/schemas/Gene' - id: - format: int64 - type: integer - referenceGenome: - type: string - start: - format: int32 - type: integer - strand: - format: int32 - type: integer - transcripts: - items: - $ref: '#/components/schemas/Transcript' - type: array - uniqueItems: true - required: - - canonical - - chromosome - - end - - ensemblGeneId - - referenceGenome - - start - - strand - title: EnsemblGene - type: object - EnsemblTranscript: - example: - proteinLength: 9 - refseqMrnaId: refseqMrnaId - pfamDomains: - - pfamDomainStart: 7 - pfamDomainEnd: 2 - pfamDomainId: pfamDomainId - - pfamDomainStart: 7 - pfamDomainEnd: 2 - pfamDomainId: pfamDomainId - proteinId: proteinId - hugoSymbols: - - hugoSymbols - - hugoSymbols - geneId: geneId - exons: - - exonEnd: 0 - strand: 5 - exonId: exonId - rank: 1 - exonStart: 6 - version: 5 - - exonEnd: 0 - strand: 5 - exonId: exonId - rank: 1 - exonStart: 6 - version: 5 - utrs: - - strand: 4 - start: 2 - end: 3 - type: type - - strand: 4 - start: 2 - end: 3 - type: type - transcriptId: transcriptId - ccdsId: ccdsId - properties: - ccdsId: - description: Consensus CDS (CCDS) ID - type: string - exons: - description: Exon information - items: - $ref: '#/components/schemas/Exon' - type: array - geneId: - description: Ensembl gene id - type: string - hugoSymbols: - description: Hugo symbols - items: - type: string - type: array - pfamDomains: - description: Pfam domains - items: - $ref: '#/components/schemas/PfamDomainRange' - type: array - proteinId: - description: Ensembl protein id - type: string - proteinLength: - description: Length of protein - format: int32 - type: integer - refseqMrnaId: - description: RefSeq mRNA ID - type: string - transcriptId: - description: Ensembl transcript id - type: string - utrs: - description: UTR information - items: - $ref: '#/components/schemas/UntranslatedRegion' - type: array - required: - - geneId - - proteinId - - transcriptId - title: EnsemblTranscript - type: object - Exon: - example: - exonEnd: 0 - strand: 5 - exonId: exonId - rank: 1 - exonStart: 6 - version: 5 - properties: - exonEnd: - description: End position of exon - format: int32 - type: integer - exonId: - description: Exon id - type: string - exonStart: - description: Start position of exon - format: int32 - type: integer - rank: - description: Number of exon in transcript - format: int32 - type: integer - strand: - description: Strand exon is on, -1 for - and 1 for + - format: int32 - type: integer - version: - description: Exon version - format: int32 - type: integer - required: - - exonEnd - - exonId - - exonStart - - rank - - strand - - version - title: Exon - type: object - Gene: - example: - geneAliases: - - name: name - id: 1 - - name: name - id: 1 - entrezGeneId: 6 - hugoSymbol: hugoSymbol - id: 5 - ensemblGenes: - - null - - null - properties: - ensemblGenes: - items: - $ref: '#/components/schemas/EnsemblGene' - type: array - uniqueItems: true - entrezGeneId: - format: int32 - type: integer - geneAliases: - items: - $ref: '#/components/schemas/GeneAlias' - type: array - uniqueItems: true - hugoSymbol: - type: string - id: - format: int64 - type: integer - title: Gene - type: object - GeneAlias: - example: - name: name - id: 1 - properties: - gene: - $ref: '#/components/schemas/Gene' - id: - format: int64 - type: integer - name: - type: string - title: GeneAlias - type: object - GenomeFragment: - example: - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - properties: - chromosome: - type: string - end: - format: int32 - type: integer - id: - format: int64 - type: integer - start: - format: int32 - type: integer - strand: - format: int32 - type: integer - transcript: - $ref: '#/components/schemas/Transcript' - type: - enum: - - EXON - - FIVE_PRIME_UTR - - GENE - - THREE_PRIME_UTR - type: string - title: GenomeFragment - type: object - MatchTranscriptVM: - example: - targetReferenceGenome: GRCh37 - transcript: - transcript: transcript - referenceGenome: GRCh37 - properties: - targetReferenceGenome: - enum: - - GRCh37 - - GRCh38 - type: string - transcript: - $ref: '#/components/schemas/TranscriptPairVM' - title: MatchTranscriptVM - type: object - PfamDomainRange: - example: - pfamDomainStart: 7 - pfamDomainEnd: 2 - pfamDomainId: pfamDomainId - properties: - pfamDomainEnd: - description: Pfam domain end amino acid - format: int32 - type: integer - pfamDomainId: - description: Pfam domain id - type: string - pfamDomainStart: - description: Pfam domain start amino acid - format: int32 - type: integer - required: - - pfamDomainEnd - - pfamDomainId - - pfamDomainStart - title: PfamDomainRange - type: object - Sequence: - example: - sequence: sequence - id: 1 - sequenceType: CDNA - properties: - id: - format: int64 - type: integer - sequence: - type: string - sequenceType: - enum: - - CDNA - - PROTEIN - type: string - transcript: - $ref: '#/components/schemas/Transcript' - title: Sequence - type: object - Transcript: - example: - ensemblProteinId: ensemblProteinId - ensemblTranscriptId: ensemblTranscriptId - description: description - fragments: - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - canonical: true - id: 7 - referenceSequenceId: referenceSequenceId - sequences: - - sequence: sequence - id: 1 - sequenceType: CDNA - - sequence: sequence - id: 1 - sequenceType: CDNA - properties: - canonical: - type: boolean - description: - type: string - ensemblGene: - $ref: '#/components/schemas/EnsemblGene' - ensemblProteinId: - type: string - ensemblTranscriptId: - type: string - fragments: - items: - $ref: '#/components/schemas/GenomeFragment' - type: array - uniqueItems: true - id: - format: int64 - type: integer - referenceSequenceId: - type: string - sequences: - items: - $ref: '#/components/schemas/Sequence' - type: array - uniqueItems: true - required: - - canonical - title: Transcript - type: object - TranscriptComparisonResultVM: - example: - match: true - sequenceA: sequenceA - sequenceB: sequenceB - properties: - match: - type: boolean - sequenceA: - type: string - sequenceB: - type: string - title: TranscriptComparisonResultVM - type: object - TranscriptComparisonVM: - example: - transcriptA: - transcript: transcript - referenceGenome: GRCh37 - transcriptB: - transcript: transcript - referenceGenome: GRCh37 - align: true - properties: - align: - type: boolean - transcriptA: - $ref: '#/components/schemas/TranscriptPairVM' - transcriptB: - $ref: '#/components/schemas/TranscriptPairVM' - title: TranscriptComparisonVM - type: object - TranscriptDTO: - example: - ensemblProteinId: ensemblProteinId - ensemblGene: - ensemblGeneId: ensemblGeneId - strand: 7 - gene: - geneAliases: - - name: name - id: 1 - - name: name - id: 1 - entrezGeneId: 6 - hugoSymbol: hugoSymbol - id: 5 - ensemblGenes: - - null - - null - transcripts: - - ensemblProteinId: ensemblProteinId - ensemblTranscriptId: ensemblTranscriptId - description: description - fragments: - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - canonical: true - id: 7 - referenceSequenceId: referenceSequenceId - sequences: - - sequence: sequence - id: 1 - sequenceType: CDNA - - sequence: sequence - id: 1 - sequenceType: CDNA - - ensemblProteinId: ensemblProteinId - ensemblTranscriptId: ensemblTranscriptId - description: description - fragments: - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - canonical: true - id: 7 - referenceSequenceId: referenceSequenceId - sequences: - - sequence: sequence - id: 1 - sequenceType: CDNA - - sequence: sequence - id: 1 - sequenceType: CDNA - chromosome: chromosome - start: 2 - end: 0 - canonical: true - id: 5 - referenceGenome: referenceGenome - ensemblTranscriptId: ensemblTranscriptId - exons: - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - chromosome: chromosome - start: 1 - description: description - canonical: true - strand: 5 - utrs: - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - - strand: 4 - chromosome: chromosome - start: 2 - end: 9 - id: 3 - type: EXON - end: 0 - id: 6 - referenceSequenceId: referenceSequenceId - properties: - canonical: - type: boolean - chromosome: - type: string - description: - type: string - end: - format: int32 - type: integer - ensemblGene: - $ref: '#/components/schemas/EnsemblGene' - ensemblProteinId: - type: string - ensemblTranscriptId: - type: string - exons: - items: - $ref: '#/components/schemas/GenomeFragment' - type: array - id: - format: int64 - type: integer - referenceSequenceId: - type: string - start: - format: int32 - type: integer - strand: - format: int32 - type: integer - utrs: - items: - $ref: '#/components/schemas/GenomeFragment' - type: array - required: - - canonical - title: TranscriptDTO - type: object - TranscriptMatchResultVM: - example: - note: note - targetEnsemblTranscript: - proteinLength: 9 - refseqMrnaId: refseqMrnaId - pfamDomains: - - pfamDomainStart: 7 - pfamDomainEnd: 2 - pfamDomainId: pfamDomainId - - pfamDomainStart: 7 - pfamDomainEnd: 2 - pfamDomainId: pfamDomainId - proteinId: proteinId - hugoSymbols: - - hugoSymbols - - hugoSymbols - geneId: geneId - exons: - - exonEnd: 0 - strand: 5 - exonId: exonId - rank: 1 - exonStart: 6 - version: 5 - - exonEnd: 0 - strand: 5 - exonId: exonId - rank: 1 - exonStart: 6 - version: 5 - utrs: - - strand: 4 - start: 2 - end: 3 - type: type - - strand: 4 - start: 2 - end: 3 - type: type - transcriptId: transcriptId - ccdsId: ccdsId - originalEnsemblTranscript: - proteinLength: 9 - refseqMrnaId: refseqMrnaId - pfamDomains: - - pfamDomainStart: 7 - pfamDomainEnd: 2 - pfamDomainId: pfamDomainId - - pfamDomainStart: 7 - pfamDomainEnd: 2 - pfamDomainId: pfamDomainId - proteinId: proteinId - hugoSymbols: - - hugoSymbols - - hugoSymbols - geneId: geneId - exons: - - exonEnd: 0 - strand: 5 - exonId: exonId - rank: 1 - exonStart: 6 - version: 5 - - exonEnd: 0 - strand: 5 - exonId: exonId - rank: 1 - exonStart: 6 - version: 5 - utrs: - - strand: 4 - start: 2 - end: 3 - type: type - - strand: 4 - start: 2 - end: 3 - type: type - transcriptId: transcriptId - ccdsId: ccdsId - properties: - note: - type: string - originalEnsemblTranscript: - $ref: '#/components/schemas/EnsemblTranscript' - targetEnsemblTranscript: - $ref: '#/components/schemas/EnsemblTranscript' - title: TranscriptMatchResultVM - type: object - TranscriptPairVM: - example: - transcript: transcript - referenceGenome: GRCh37 - properties: - referenceGenome: - enum: - - GRCh37 - - GRCh38 - type: string - transcript: - type: string - title: TranscriptPairVM - type: object - TranscriptSuggestionVM: - example: - note: note - suggestions: - - suggestions - - suggestions - referenceGenome: GRCh37 - properties: - note: - type: string - referenceGenome: - enum: - - GRCh37 - - GRCh38 - type: string - suggestions: - items: - type: string - type: array - title: TranscriptSuggestionVM - type: object - UntranslatedRegion: - example: - strand: 4 - start: 2 - end: 3 - type: type - properties: - end: - description: End position of UTR - format: int32 - type: integer - start: - description: Start position of UTR - format: int32 - type: integer - strand: - description: Strand UTR is on, -1 for - and 1 for + - format: int32 - type: integer - type: - description: UTR Type - type: string - required: - - end - - start - - strand - - type - title: UntranslatedRegion - type: object - UserVM: - example: - login: login - authorities: - - authorities - - authorities - activated: true - properties: - activated: - type: boolean - authorities: - items: - type: string - type: array - uniqueItems: true - login: - type: string - title: UserVM - type: object - securitySchemes: - Authorization: - bearerFormat: JWT - scheme: bearer - type: http - diff --git a/oncokbTranscriptApiClient/docs/AccountResourceApi.md b/oncokbTranscriptApiClient/docs/AccountResourceApi.md deleted file mode 100644 index 47b2e6e..0000000 --- a/oncokbTranscriptApiClient/docs/AccountResourceApi.md +++ /dev/null @@ -1,138 +0,0 @@ -# AccountResourceApi - -All URIs are relative to *https://transcript.oncokb.org:443* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAccountUsingGET**](AccountResourceApi.md#getAccountUsingGET) | **GET** /api/account | getAccount -[**isAuthenticatedUsingGET**](AccountResourceApi.md#isAuthenticatedUsingGET) | **GET** /api/authenticate | isAuthenticated - - - -# **getAccountUsingGET** -> UserVM getAccountUsingGET() - -getAccount - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.AccountResourceApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - AccountResourceApi apiInstance = new AccountResourceApi(defaultClient); - try { - UserVM result = apiInstance.getAccountUsingGET(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AccountResourceApi#getAccountUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**UserVM**](UserVM.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **isAuthenticatedUsingGET** -> String isAuthenticatedUsingGET() - -isAuthenticated - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.AccountResourceApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - AccountResourceApi apiInstance = new AccountResourceApi(defaultClient); - try { - String result = apiInstance.isAuthenticatedUsingGET(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AccountResourceApi#isAuthenticatedUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -**String** - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - diff --git a/oncokbTranscriptApiClient/docs/DrugControllerApi.md b/oncokbTranscriptApiClient/docs/DrugControllerApi.md deleted file mode 100644 index 6712408..0000000 --- a/oncokbTranscriptApiClient/docs/DrugControllerApi.md +++ /dev/null @@ -1,146 +0,0 @@ -# DrugControllerApi - -All URIs are relative to *https://transcript.oncokb.org:443* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**findDrugByCodeUsingGET**](DrugControllerApi.md#findDrugByCodeUsingGET) | **GET** /api/drugs/search-by-code/{code} | findDrugByCode -[**findDrugsUsingGET**](DrugControllerApi.md#findDrugsUsingGET) | **GET** /api/drugs/search | findDrugs - - - -# **findDrugByCodeUsingGET** -> Drug findDrugByCodeUsingGET(code) - -findDrugByCode - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.DrugControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - DrugControllerApi apiInstance = new DrugControllerApi(defaultClient); - String code = "code_example"; // String | code - try { - Drug result = apiInstance.findDrugByCodeUsingGET(code); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DrugControllerApi#findDrugByCodeUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **code** | **String**| code | - -### Return type - -[**Drug**](Drug.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **findDrugsUsingGET** -> List<Drug> findDrugsUsingGET(query) - -findDrugs - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.DrugControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - DrugControllerApi apiInstance = new DrugControllerApi(defaultClient); - String query = "query_example"; // String | query - try { - List result = apiInstance.findDrugsUsingGET(query); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling DrugControllerApi#findDrugsUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **query** | **String**| query | - -### Return type - -[**List<Drug>**](Drug.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - diff --git a/oncokbTranscriptApiClient/docs/EnsemblTranscript.md b/oncokbTranscriptApiClient/docs/EnsemblTranscript.md deleted file mode 100644 index 60be819..0000000 --- a/oncokbTranscriptApiClient/docs/EnsemblTranscript.md +++ /dev/null @@ -1,26 +0,0 @@ - - -# EnsemblTranscript - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ccdsId** | **String** | Consensus CDS (CCDS) ID | [optional] -**exons** | [**List<Exon>**](Exon.md) | Exon information | [optional] -**geneId** | **String** | Ensembl gene id | -**hugoSymbols** | **List<String>** | Hugo symbols | [optional] -**pfamDomains** | [**List<PfamDomainRange>**](PfamDomainRange.md) | Pfam domains | [optional] -**proteinId** | **String** | Ensembl protein id | -**proteinLength** | **Integer** | Length of protein | [optional] -**refseqMrnaId** | **String** | RefSeq mRNA ID | [optional] -**transcriptId** | **String** | Ensembl transcript id | -**utrs** | [**List<UntranslatedRegion>**](UntranslatedRegion.md) | UTR information | [optional] - - -## Implemented Interfaces - -* Serializable - - diff --git a/oncokbTranscriptApiClient/docs/Exon.md b/oncokbTranscriptApiClient/docs/Exon.md deleted file mode 100644 index 8a61fbe..0000000 --- a/oncokbTranscriptApiClient/docs/Exon.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# Exon - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exonEnd** | **Integer** | End position of exon | -**exonId** | **String** | Exon id | -**exonStart** | **Integer** | Start position of exon | -**rank** | **Integer** | Number of exon in transcript | -**strand** | **Integer** | Strand exon is on, -1 for - and 1 for + | -**version** | **Integer** | Exon version | - - -## Implemented Interfaces - -* Serializable - - diff --git a/oncokbTranscriptApiClient/docs/GeneControllerApi.md b/oncokbTranscriptApiClient/docs/GeneControllerApi.md deleted file mode 100644 index 322a024..0000000 --- a/oncokbTranscriptApiClient/docs/GeneControllerApi.md +++ /dev/null @@ -1,147 +0,0 @@ -# GeneControllerApi - -All URIs are relative to *https://transcript.oncokb.org:443* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**findGeneBySymbolUsingGET**](GeneControllerApi.md#findGeneBySymbolUsingGET) | **GET** /api/find-genes | findGeneBySymbol -[**findGenesBySymbolsUsingPOST**](GeneControllerApi.md#findGenesBySymbolsUsingPOST) | **POST** /api/find-genes | findGenesBySymbols - - - -# **findGeneBySymbolUsingGET** -> Gene findGeneBySymbolUsingGET(symbol) - -findGeneBySymbol - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.GeneControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - GeneControllerApi apiInstance = new GeneControllerApi(defaultClient); - String symbol = "symbol_example"; // String | symbol - try { - Gene result = apiInstance.findGeneBySymbolUsingGET(symbol); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GeneControllerApi#findGeneBySymbolUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **symbol** | **String**| symbol | - -### Return type - -[**Gene**](Gene.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **findGenesBySymbolsUsingPOST** -> Set<Gene> findGenesBySymbolsUsingPOST(requestBody) - -findGenesBySymbols - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.GeneControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - GeneControllerApi apiInstance = new GeneControllerApi(defaultClient); - List requestBody = Arrays.asList(); // List | - try { - Set result = apiInstance.findGenesBySymbolsUsingPOST(requestBody); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GeneControllerApi#findGenesBySymbolsUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **requestBody** | [**List<String>**](String.md)| | [optional] - -### Return type - -[**Set<Gene>**](Gene.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - diff --git a/oncokbTranscriptApiClient/docs/GeneResourceApi.md b/oncokbTranscriptApiClient/docs/GeneResourceApi.md deleted file mode 100644 index 69c5c04..0000000 --- a/oncokbTranscriptApiClient/docs/GeneResourceApi.md +++ /dev/null @@ -1,73 +0,0 @@ -# GeneResourceApi - -All URIs are relative to *https://transcript.oncokb.org:443* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getAllGenesUsingGET**](GeneResourceApi.md#getAllGenesUsingGET) | **GET** /api/genes | getAllGenes - - - -# **getAllGenesUsingGET** -> List<Gene> getAllGenesUsingGET() - -getAllGenes - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.GeneResourceApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - GeneResourceApi apiInstance = new GeneResourceApi(defaultClient); - try { - List result = apiInstance.getAllGenesUsingGET(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GeneResourceApi#getAllGenesUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**List<Gene>**](Gene.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - diff --git a/oncokbTranscriptApiClient/docs/PfamDomainRange.md b/oncokbTranscriptApiClient/docs/PfamDomainRange.md deleted file mode 100644 index fb42a96..0000000 --- a/oncokbTranscriptApiClient/docs/PfamDomainRange.md +++ /dev/null @@ -1,19 +0,0 @@ - - -# PfamDomainRange - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pfamDomainEnd** | **Integer** | Pfam domain end amino acid | -**pfamDomainId** | **String** | Pfam domain id | -**pfamDomainStart** | **Integer** | Pfam domain start amino acid | - - -## Implemented Interfaces - -* Serializable - - diff --git a/oncokbTranscriptApiClient/docs/PipelineControllerApi.md b/oncokbTranscriptApiClient/docs/PipelineControllerApi.md deleted file mode 100644 index a497bce..0000000 --- a/oncokbTranscriptApiClient/docs/PipelineControllerApi.md +++ /dev/null @@ -1,138 +0,0 @@ -# PipelineControllerApi - -All URIs are relative to *https://transcript.oncokb.org:443* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**updateNcitUsingPOST**](PipelineControllerApi.md#updateNcitUsingPOST) | **POST** /api/pipeline/update-ncit | updateNcit -[**updatePortalGeneUsingPOST**](PipelineControllerApi.md#updatePortalGeneUsingPOST) | **POST** /api/pipeline/update-gene | updatePortalGene - - - -# **updateNcitUsingPOST** -> updateNcitUsingPOST() - -updateNcit - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.PipelineControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - PipelineControllerApi apiInstance = new PipelineControllerApi(defaultClient); - try { - apiInstance.updateNcitUsingPOST(); - } catch (ApiException e) { - System.err.println("Exception when calling PipelineControllerApi#updateNcitUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **updatePortalGeneUsingPOST** -> updatePortalGeneUsingPOST() - -updatePortalGene - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.PipelineControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - PipelineControllerApi apiInstance = new PipelineControllerApi(defaultClient); - try { - apiInstance.updatePortalGeneUsingPOST(); - } catch (ApiException e) { - System.err.println("Exception when calling PipelineControllerApi#updatePortalGeneUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -null (empty response body) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - diff --git a/oncokbTranscriptApiClient/docs/SequenceControllerApi.md b/oncokbTranscriptApiClient/docs/SequenceControllerApi.md deleted file mode 100644 index 442a5a7..0000000 --- a/oncokbTranscriptApiClient/docs/SequenceControllerApi.md +++ /dev/null @@ -1,155 +0,0 @@ -# SequenceControllerApi - -All URIs are relative to *https://transcript.oncokb.org:443* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**findCanonicalSequenceUsingGET**](SequenceControllerApi.md#findCanonicalSequenceUsingGET) | **GET** /api/find-canonical-sequences | findCanonicalSequence -[**findCanonicalSequencesUsingPOST**](SequenceControllerApi.md#findCanonicalSequencesUsingPOST) | **POST** /api/find-canonical-sequences | findCanonicalSequences - - - -# **findCanonicalSequenceUsingGET** -> Sequence findCanonicalSequenceUsingGET(referenceGenome, entrezGeneId, sequenceType) - -findCanonicalSequence - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.SequenceControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - SequenceControllerApi apiInstance = new SequenceControllerApi(defaultClient); - String referenceGenome = "GRCh37"; // String | referenceGenome - Integer entrezGeneId = 56; // Integer | entrezGeneId - String sequenceType = "CDNA"; // String | sequenceType - try { - Sequence result = apiInstance.findCanonicalSequenceUsingGET(referenceGenome, entrezGeneId, sequenceType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SequenceControllerApi#findCanonicalSequenceUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **referenceGenome** | **String**| referenceGenome | [enum: GRCh37, GRCh38] - **entrezGeneId** | **Integer**| entrezGeneId | - **sequenceType** | **String**| sequenceType | [optional] [enum: CDNA, PROTEIN] - -### Return type - -[**Sequence**](Sequence.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **findCanonicalSequencesUsingPOST** -> List<Sequence> findCanonicalSequencesUsingPOST(referenceGenome, sequenceType, requestBody) - -findCanonicalSequences - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.SequenceControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - SequenceControllerApi apiInstance = new SequenceControllerApi(defaultClient); - String referenceGenome = "GRCh37"; // String | referenceGenome - String sequenceType = "CDNA"; // String | sequenceType - List requestBody = Arrays.asList(); // List | - try { - List result = apiInstance.findCanonicalSequencesUsingPOST(referenceGenome, sequenceType, requestBody); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SequenceControllerApi#findCanonicalSequencesUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **referenceGenome** | **String**| referenceGenome | [enum: GRCh37, GRCh38] - **sequenceType** | **String**| sequenceType | [optional] [enum: CDNA, PROTEIN] - **requestBody** | [**List<Integer>**](Integer.md)| | [optional] - -### Return type - -[**List<Sequence>**](Sequence.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - diff --git a/oncokbTranscriptApiClient/docs/TranscriptControllerApi.md b/oncokbTranscriptApiClient/docs/TranscriptControllerApi.md deleted file mode 100644 index e86c43c..0000000 --- a/oncokbTranscriptApiClient/docs/TranscriptControllerApi.md +++ /dev/null @@ -1,371 +0,0 @@ -# TranscriptControllerApi - -All URIs are relative to *https://transcript.oncokb.org:443* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addTranscriptUsingPOST**](TranscriptControllerApi.md#addTranscriptUsingPOST) | **POST** /api/add-transcript | addTranscript -[**compareTranscriptUsingPOST**](TranscriptControllerApi.md#compareTranscriptUsingPOST) | **POST** /api/compare-transcript/{hugoSymbol} | compareTranscript -[**findTranscriptsByEnsemblIdsUsingPOST**](TranscriptControllerApi.md#findTranscriptsByEnsemblIdsUsingPOST) | **POST** /api/find-transcripts-by-ensembl-ids | findTranscriptsByEnsemblIds -[**matchTranscriptUsingPOST**](TranscriptControllerApi.md#matchTranscriptUsingPOST) | **POST** /api/match-transcript/{hugoSymbol} | matchTranscript -[**suggestVariantUsingGET**](TranscriptControllerApi.md#suggestVariantUsingGET) | **GET** /api/suggest-variant/{hugoSymbol} | suggestVariant - - - -# **addTranscriptUsingPOST** -> TranscriptDTO addTranscriptUsingPOST(addTranscriptBody) - -addTranscript - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.TranscriptControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); - AddTranscriptBody addTranscriptBody = new AddTranscriptBody(); // AddTranscriptBody | - try { - TranscriptDTO result = apiInstance.addTranscriptUsingPOST(addTranscriptBody); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TranscriptControllerApi#addTranscriptUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **addTranscriptBody** | [**AddTranscriptBody**](AddTranscriptBody.md)| | [optional] - -### Return type - -[**TranscriptDTO**](TranscriptDTO.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **compareTranscriptUsingPOST** -> TranscriptComparisonResultVM compareTranscriptUsingPOST(hugoSymbol, transcriptComparisonVM) - -compareTranscript - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.TranscriptControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); - String hugoSymbol = "hugoSymbol_example"; // String | hugoSymbol - TranscriptComparisonVM transcriptComparisonVM = new TranscriptComparisonVM(); // TranscriptComparisonVM | - try { - TranscriptComparisonResultVM result = apiInstance.compareTranscriptUsingPOST(hugoSymbol, transcriptComparisonVM); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TranscriptControllerApi#compareTranscriptUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **hugoSymbol** | **String**| hugoSymbol | - **transcriptComparisonVM** | [**TranscriptComparisonVM**](TranscriptComparisonVM.md)| | [optional] - -### Return type - -[**TranscriptComparisonResultVM**](TranscriptComparisonResultVM.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **findTranscriptsByEnsemblIdsUsingPOST** -> List<TranscriptDTO> findTranscriptsByEnsemblIdsUsingPOST(referenceGenome, requestBody) - -findTranscriptsByEnsemblIds - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.TranscriptControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); - String referenceGenome = "GRCh37"; // String | referenceGenome - List requestBody = Arrays.asList(); // List | - try { - List result = apiInstance.findTranscriptsByEnsemblIdsUsingPOST(referenceGenome, requestBody); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TranscriptControllerApi#findTranscriptsByEnsemblIdsUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **referenceGenome** | **String**| referenceGenome | [enum: GRCh37, GRCh38] - **requestBody** | [**List<String>**](String.md)| | [optional] - -### Return type - -[**List<TranscriptDTO>**](TranscriptDTO.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **matchTranscriptUsingPOST** -> TranscriptMatchResultVM matchTranscriptUsingPOST(hugoSymbol, matchTranscriptVM) - -matchTranscript - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.TranscriptControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); - String hugoSymbol = "hugoSymbol_example"; // String | hugoSymbol - MatchTranscriptVM matchTranscriptVM = new MatchTranscriptVM(); // MatchTranscriptVM | - try { - TranscriptMatchResultVM result = apiInstance.matchTranscriptUsingPOST(hugoSymbol, matchTranscriptVM); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TranscriptControllerApi#matchTranscriptUsingPOST"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **hugoSymbol** | **String**| hugoSymbol | - **matchTranscriptVM** | [**MatchTranscriptVM**](MatchTranscriptVM.md)| | [optional] - -### Return type - -[**TranscriptMatchResultVM**](TranscriptMatchResultVM.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**201** | Created | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - - -# **suggestVariantUsingGET** -> AllReferenceTranscriptSuggestionVM suggestVariantUsingGET(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript) - -suggestVariant - -### Example -```java -// Import classes: -import org.oncokb.oncokb_transcript.ApiClient; -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.Configuration; -import org.oncokb.oncokb_transcript.auth.*; -import org.oncokb.oncokb_transcript.models.*; -import org.oncokb.oncokb_transcript.client.TranscriptControllerApi; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://transcript.oncokb.org:443"); - - // Configure HTTP bearer authorization: Authorization - HttpBearerAuth Authorization = (HttpBearerAuth) defaultClient.getAuthentication("Authorization"); - Authorization.setBearerToken("BEARER TOKEN"); - - TranscriptControllerApi apiInstance = new TranscriptControllerApi(defaultClient); - String hugoSymbol = "hugoSymbol_example"; // String | hugoSymbol - Integer proteinPosition = 56; // Integer | proteinPosition - String curatedResidue = "curatedResidue_example"; // String | curatedResidue - String grch37Transcript = "grch37Transcript_example"; // String | grch37Transcript - String grch38Transcript = "grch38Transcript_example"; // String | grch38Transcript - try { - AllReferenceTranscriptSuggestionVM result = apiInstance.suggestVariantUsingGET(hugoSymbol, proteinPosition, curatedResidue, grch37Transcript, grch38Transcript); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TranscriptControllerApi#suggestVariantUsingGET"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **hugoSymbol** | **String**| hugoSymbol | - **proteinPosition** | **Integer**| proteinPosition | - **curatedResidue** | **String**| curatedResidue | - **grch37Transcript** | **String**| grch37Transcript | - **grch38Transcript** | **String**| grch38Transcript | - -### Return type - -[**AllReferenceTranscriptSuggestionVM**](AllReferenceTranscriptSuggestionVM.md) - -### Authorization - -[Authorization](../README.md#Authorization) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: */* - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**401** | Unauthorized | - | -**403** | Forbidden | - | -**404** | Not Found | - | - diff --git a/oncokbTranscriptApiClient/docs/UntranslatedRegion.md b/oncokbTranscriptApiClient/docs/UntranslatedRegion.md deleted file mode 100644 index 6c28ba3..0000000 --- a/oncokbTranscriptApiClient/docs/UntranslatedRegion.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# UntranslatedRegion - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**end** | **Integer** | End position of UTR | -**start** | **Integer** | Start position of UTR | -**strand** | **Integer** | Strand UTR is on, -1 for - and 1 for + | -**type** | **String** | UTR Type | - - -## Implemented Interfaces - -* Serializable - - diff --git a/oncokbTranscriptApiClient/settings.gradle b/oncokbTranscriptApiClient/settings.gradle deleted file mode 100644 index 0b104c7..0000000 --- a/oncokbTranscriptApiClient/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = "oncokbTranscriptApiClient" \ No newline at end of file diff --git a/oncokbTranscriptApiClient/src/main/AndroidManifest.xml b/oncokbTranscriptApiClient/src/main/AndroidManifest.xml deleted file mode 100644 index abb82cf..0000000 --- a/oncokbTranscriptApiClient/src/main/AndroidManifest.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/UserVM.java b/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/UserVM.java deleted file mode 100644 index 6a42fa5..0000000 --- a/oncokbTranscriptApiClient/src/main/java/org/oncokb/oncokb_transcript/client/UserVM.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * oncokb-transcript API - * oncokb-transcript API documentation - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.oncokb.oncokb_transcript.client; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.LinkedHashSet; -import java.util.List; -import java.util.Set; -import java.io.Serializable; - -/** - * UserVM - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class UserVM implements Serializable { - private static final long serialVersionUID = 1L; - - public static final String SERIALIZED_NAME_ACTIVATED = "activated"; - @SerializedName(SERIALIZED_NAME_ACTIVATED) - private Boolean activated; - - public static final String SERIALIZED_NAME_AUTHORITIES = "authorities"; - @SerializedName(SERIALIZED_NAME_AUTHORITIES) - private Set authorities = null; - - public static final String SERIALIZED_NAME_LOGIN = "login"; - @SerializedName(SERIALIZED_NAME_LOGIN) - private String login; - - public UserVM() { - } - - public UserVM activated(Boolean activated) { - - this.activated = activated; - return this; - } - - /** - * Get activated - * @return activated - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Boolean getActivated() { - return activated; - } - - - public void setActivated(Boolean activated) { - this.activated = activated; - } - - - public UserVM authorities(Set authorities) { - - this.authorities = authorities; - return this; - } - - public UserVM addAuthoritiesItem(String authoritiesItem) { - if (this.authorities == null) { - this.authorities = new LinkedHashSet(); - } - this.authorities.add(authoritiesItem); - return this; - } - - /** - * Get authorities - * @return authorities - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public Set getAuthorities() { - return authorities; - } - - - public void setAuthorities(Set authorities) { - this.authorities = authorities; - } - - - public UserVM login(String login) { - - this.login = login; - return this; - } - - /** - * Get login - * @return login - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getLogin() { - return login; - } - - - public void setLogin(String login) { - this.login = login; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UserVM userVM = (UserVM) o; - return Objects.equals(this.activated, userVM.activated) && - Objects.equals(this.authorities, userVM.authorities) && - Objects.equals(this.login, userVM.login); - } - - @Override - public int hashCode() { - return Objects.hash(activated, authorities, login); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UserVM {\n"); - sb.append(" activated: ").append(toIndentedString(activated)).append("\n"); - sb.append(" authorities: ").append(toIndentedString(authorities)).append("\n"); - sb.append(" login: ").append(toIndentedString(login)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AccountResourceApiTest.java b/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AccountResourceApiTest.java deleted file mode 100644 index ba16b43..0000000 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/AccountResourceApiTest.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * oncokb-transcript API - * oncokb-transcript API documentation - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.oncokb.oncokb_transcript.client; - -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.client.UserVM; -import org.junit.Test; -import org.junit.Ignore; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for AccountResourceApi - */ -@Ignore -public class AccountResourceApiTest { - - private final AccountResourceApi api = new AccountResourceApi(); - - - /** - * getAccount - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void getAccountUsingGETTest() throws ApiException { - UserVM response = api.getAccountUsingGET(); - // TODO: test validations - } - - /** - * isAuthenticated - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void isAuthenticatedUsingGETTest() throws ApiException { - String response = api.isAuthenticatedUsingGET(); - // TODO: test validations - } - -} diff --git a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneResourceApiTest.java b/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneResourceApiTest.java deleted file mode 100644 index 2cde7e3..0000000 --- a/oncokbTranscriptApiClient/src/test/java/org/oncokb/oncokb_transcript/client/GeneResourceApiTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * oncokb-transcript API - * oncokb-transcript API documentation - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.oncokb.oncokb_transcript.client; - -import org.oncokb.oncokb_transcript.ApiException; -import org.oncokb.oncokb_transcript.client.Gene; -import org.junit.Test; -import org.junit.Ignore; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * API tests for GeneResourceApi - */ -@Ignore -public class GeneResourceApiTest { - - private final GeneResourceApi api = new GeneResourceApi(); - - - /** - * getAllGenes - * - * - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void getAllGenesUsingGETTest() throws ApiException { - List response = api.getAllGenesUsingGET(); - // TODO: test validations - } - -} diff --git a/pom.xml b/pom.xml index 37b2593..82db51b 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ oncokbPublicApiClient oncokbPrivateApiClient - oncokbTranscriptApiClient + oncokbCurationApiClient diff --git a/scripts/oncokbCurationApiClientConfig.json b/scripts/oncokbCurationApiClientConfig.json new file mode 100644 index 0000000..c86981f --- /dev/null +++ b/scripts/oncokbCurationApiClientConfig.json @@ -0,0 +1,10 @@ +{ + "apiPackage": "org.oncokb.oncokb-curation.client", + "modelPackage": "org.oncokb.oncokb-curation.client", + "groupId": "org.oncokb.oncokb-curation.client", + "artifactId": "oncokbCurationApiClient", + "artifactName": "OncoKB Curation API Client", + "artifactVersion": "1.0.0-SNAPSHOT", + "hideGenerationTimestamp": "true", + "serializableModel": true +} diff --git a/scripts/oncokbJavaClientModules.sh b/scripts/oncokbJavaClientModules.sh index 55312e1..485fe22 100644 --- a/scripts/oncokbJavaClientModules.sh +++ b/scripts/oncokbJavaClientModules.sh @@ -2,7 +2,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ONCOKB_PUBLIC_DOCS=${1:-https://www.oncokb.org/api/v1/v2/api-docs?group=Public%20APIs} ONCOKB_PRIVATE_DOCS=${1:-https://www.oncokb.org/api/v1/v2/api-docs?group=Private%20APIs} -ONCOKB_TRANSCRIPT_DOCS=${1:-https://transcript.oncokb.org/v3/api-docs} +ONCOKB_CURATION_DOCS=${1:-http://beta.curation.oncokb.dev.aws.mskcc.org/v3/api-docs} OPENAPI_GENERATOR_CLI_VERSION="5.3.1" OPENAPI_GENERATOR_CLI_V5_JAR="openapi-generator-cli-${OPENAPI_GENERATOR_CLI_VERSION}.jar" @@ -20,9 +20,9 @@ fi # remove the modules if available (otherwise some legacy methods in the test will not get removed) rm -rf ../oncokbPublicApiClient rm -rf ../oncokbPrivateApiClient -rm -rf ../oncokbTranscriptApiClient +rm -rf ../oncokbCurationApiClient # generate java modules (see config json files for more details) java -jar ${OPENAPI_GENERATOR_CLI_V5_JAR} generate -i ${ONCOKB_PUBLIC_DOCS} -g java -c oncokbPublicApiClientConfig.json -o ../oncokbPublicApiClient java -jar ${OPENAPI_GENERATOR_CLI_V5_JAR} generate -i ${ONCOKB_PRIVATE_DOCS} -g java -c oncokbPrivateApiClientConfig.json -o ../oncokbPrivateApiClient -java -jar ${OPENAPI_GENERATOR_CLI_V5_JAR} generate -i ${ONCOKB_TRANSCRIPT_DOCS} -g java -c oncokbTranscriptApiClientConfig.json -o ../oncokbTranscriptApiClient +java -jar ${OPENAPI_GENERATOR_CLI_V5_JAR} generate -i ${ONCOKB_CURATION_DOCS} -g java -c oncokbCurationApiClientConfig.json -o ../oncokbCurationApiClient diff --git a/scripts/oncokbTranscriptApiClientConfig.json b/scripts/oncokbTranscriptApiClientConfig.json deleted file mode 100644 index 5c36908..0000000 --- a/scripts/oncokbTranscriptApiClientConfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "apiPackage":"org.oncokb.oncokb-transcript.client", - "modelPackage":"org.oncokb.oncokb-transcript.client", - "groupId":"org.oncokb.oncokb-transcript.client", - "artifactId":"oncokbTranscriptApiClient", - "artifactName":"OncoKB Transcript API Client", - "artifactVersion":"0.0.1-SNAPSHOT", - "hideGenerationTimestamp" : "true", - "serializableModel" : true - } \ No newline at end of file