Skip to content

Commit

Permalink
Merge pull request #4 from AzBuilder/refactor-search
Browse files Browse the repository at this point in the history
Add method getModuleByNameAndProvider
  • Loading branch information
alfespa17 authored Jul 17, 2021
2 parents e7fe2fb + 62d6328 commit 0126bbe
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Simply add the following dependency to your project's `pom.xml` will enable you
<dependency>
<groupId>org.azbuilder.api.spring.starter</groupId>
<artifactId>api-client-spring-boot-starter</artifactId>
<version>0.3.0</version>
<version>0.3.1</version>
</dependency>
```
2 changes: 1 addition & 1 deletion api-client-spring-boot-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<gson.version>2.8.6</gson.version>
<feign.version>11.1</feign.version>
<okhttp.version>4.9.1</okhttp.version>
<revision>0.3.0</revision>
<revision>0.3.1</revision>
<maven.deploy.skip>false</maven.deploy.skip>
<lombok.version>1.18.20</lombok.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion api-client-spring-boot-starter-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
<revision>0.3.0</revision>
<revision>0.3.1</revision>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.azbuilder.api.client.sample;

import org.azbuilder.api.client.model.organization.JobData;
import org.azbuilder.api.client.model.organization.Organization;
import org.azbuilder.api.client.model.organization.job.Job;
import org.azbuilder.api.client.model.organization.job.JobRequest;
Expand Down Expand Up @@ -60,6 +59,10 @@ void contextLoads() {
restClient.updateJob(jobRequest, job.getRelationships().getOrganization().getData().getId(), job.getId());
restClient.updateJob(jobRequest,organizationId, "1");*/
restClient.updateJob(jobRequest,organizationId, "1");
System.out.println(restClient.getModuleByNameAndProvider(organizationId, "azure","azurerm").getData().get(0).getAttributes().getSource());
*/

}
}
2 changes: 1 addition & 1 deletion api-client-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0.3.0</revision>
<revision>0.3.1</revision>
<maven.deploy.skip>false</maven.deploy.skip>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion api-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
<revision>0.3.0</revision>
<revision>0.3.1</revision>
<feign.version>11.1</feign.version>
<feign-form.version>3.8.0</feign-form.version>
<maven.deploy.skip>false</maven.deploy.skip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.azbuilder.api.client.model.organization.Organization;
import org.azbuilder.api.client.model.organization.job.Job;
import org.azbuilder.api.client.model.organization.job.JobRequest;
import org.azbuilder.api.client.model.organization.module.Module;
import org.azbuilder.api.client.model.organization.workspace.Workspace;
import org.azbuilder.api.client.model.organization.workspace.environment.Environment;
import org.azbuilder.api.client.model.organization.workspace.secret.Secret;
Expand Down Expand Up @@ -57,4 +58,8 @@ public interface RestClient {
@RequestLine("GET /api/v1/organization?filter[organization]=name=={organizationName}")
Response<List<Organization>> getOrganizationByName(@Param("organizationName") String organizationName);

@RequestLine("GET /api/v1/organization/{organizationId}/module?filter[module]=name=={moduleName};provider=={providerName}")
Response<List<Module>> getModuleByNameAndProvider(@Param("organizationId") String organizationId, @Param("moduleName") String moduleName, @Param("providerName") String providerName);


}

0 comments on commit 0126bbe

Please sign in to comment.