Skip to content

Commit

Permalink
Merge branch 'feature/api_key-1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatologist committed Apr 25, 2021
2 parents 77347dd + bfef668 commit a627758
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Java Publish

on:
push:
branches:
- master
release:
types: [published]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.canehealth.ckblib</groupId>
<artifactId>ckblib-application</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<name>ckblib-application</name>
<description>Demo project for Spring Boot</description>
<properties>
Expand Down
2 changes: 1 addition & 1 deletion graph/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.canehealth.ckblib</groupId>
<artifactId>graph</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<name>ckblib-graph</name>
<description>Demo project for Spring Boot</description>

Expand Down
2 changes: 1 addition & 1 deletion library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.canehealth.ckblib</groupId>
<artifactId>library</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<name>ckblib-library</name>
<description>Demo project for Spring Boot</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class BaseQuery {
private int retmax = 10;
private int reldate = 0;
private int retstart = 0;
private String api_key = "";

public String getQuery() {
String query = "?retmode=json&db=" + db + "&term=" + term + "&retmax=" + Integer.toString(retmax);
Expand All @@ -22,6 +23,9 @@ public String getQuery() {
if (retstart > 0) {
query += "&retstart=" + Integer.toString(retstart);
}
if(!"".equals(api_key)){
query += "&api_key=" + api_key;
}
return query.replace(" ", "+");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.w3c.dom.Node;

import lombok.Getter;
import lombok.Setter;
import reactor.core.publisher.Mono;

@Service
Expand All @@ -31,10 +32,12 @@ public class CkbEfetch {

private WebClient webClient;

@Setter
List<EsearchResultRoot> esearch_results = new ArrayList<EsearchResultRoot>();


@Getter
@Setter
List<String> results = new ArrayList<String>();

public CkbEfetch() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class CkbEsearch {
private WebClient webClient;

@Getter
@Setter
List<EsearchResultRoot> results = new ArrayList<EsearchResultRoot>();

public CkbEsearch() {
Expand Down
2 changes: 1 addition & 1 deletion pom-deploy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.canehealth.ckblib</groupId>
<artifactId>cklib-core</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<packaging>pom</packaging>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.canehealth.ckblib</groupId>
<artifactId>cklib-core</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<packaging>pom</packaging>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion qtakes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.canehealth.ckblib</groupId>
<artifactId>qtakes</artifactId>
<version>0.10.0</version>
<version>0.11.0</version>
<name>ckblib-qtakes</name>
<description>Demo project for Spring Boot</description>

Expand Down

0 comments on commit a627758

Please sign in to comment.