Skip to content

Commit 8380b86

Browse files
authored
Merge pull request #11 from nlpsandbox/ymnliu-develop
Update API to version 0.2.2
2 parents eb69758 + 772254c commit 8380b86

39 files changed

Lines changed: 912 additions & 1509 deletions

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ updates:
77
interval: "monthly"
88
target-branch: "develop"
99

10-
- package-ecosystem: "pip"
11-
directory: "/server"
10+
- package-ecosystem: "npm"
11+
directory: "/"
1212
schedule:
1313
interval: "monthly"
14-
target-branch: "develop"
14+
target-branch: "develop"

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
- '*.*.*'
1212
pull_request:
1313

14+
15+
env:
16+
docker_repository: nlpsandbox/person-name-annotator-example
17+
1418
jobs:
1519
lint:
1620
runs-on: ubuntu-latest
@@ -38,7 +42,7 @@ jobs:
3842
- name: Prepare
3943
id: prep
4044
run: |
41-
DOCKER_IMAGE=nlpsandbox/date-annotator-example-java
45+
DOCKER_IMAGE=${{ env.docker_repository }}
4246
VERSION=noop
4347
PUSH=false
4448
if [ "${{ github.event_name }}" = "schedule" ]; then
@@ -99,4 +103,4 @@ jobs:
99103
with:
100104
username: ${{ secrets.DOCKERHUB_USERNAME }}
101105
password: ${{ secrets.DOCKERHUB_PASSWORD }}
102-
repository: nlpsandbox/date-annotator-example-java
106+
repository: ${{ env.docker_repository }}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
.idea
3-
venv
3+
venv
4+
dist.yaml
5+
openapi.yaml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ An example implementation of the [NLP Sandbox Date Annotator] using Java Spring
99

1010
## Specification
1111

12-
- Annotates date strings in clinical notes using simple regular expressions
1312
- Implements the [NLP Sandbox Date Annotator OpenAPI specification]
13+
- Annotates date strings in clinical notes using simple regular expressions
1414

1515
## Usage
1616

@@ -26,7 +26,7 @@ Build and start the Date Annotator.
2626

2727
cd server/
2828
mvn package
29-
java -jar target/openapi-spring-0.1.6.jar
29+
java -jar target/openapi-spring-0.2.2.jar
3030

3131
## Interactive documentation
3232

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.8"
22

33
services:
44
date-annotator:
5-
image: nlpsandbox/date-annotator-example-java:edge
5+
image: nlpsandbox/date-annotator-example-java:latest
66
build:
77
context: server
88
dockerfile: Dockerfile

openapitools.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "date-annotator-example-java",
3+
"version": "0.2.2",
4+
"license": "Apache-2.0",
5+
"devDependencies": {
6+
"@openapitools/openapi-generator-cli": "^1.0.18-4.3.1"
7+
},
8+
"scripts": {
9+
"generate:server": "openapi-generator generate -g spring -o server -i $npm_config_spec"
10+
}
11+
}

server/.openapi-generator-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
25+
Dockerfile

server/.openapi-generator/FILES

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
README.md
2+
pom.xml
3+
src/main/java/org/openapitools/OpenAPI2SpringBoot.java
4+
src/main/java/org/openapitools/RFC3339DateFormat.java
5+
src/main/java/org/openapitools/api/ApiUtil.java
6+
src/main/java/org/openapitools/api/ServiceApi.java
7+
src/main/java/org/openapitools/api/ServiceApiController.java
8+
src/main/java/org/openapitools/api/TextDateAnnotationsApi.java
9+
src/main/java/org/openapitools/api/TextDateAnnotationsApiController.java
10+
src/main/java/org/openapitools/configuration/HomeController.java
11+
src/main/java/org/openapitools/configuration/OpenAPIDocumentationConfig.java
12+
src/main/java/org/openapitools/model/Error.java
13+
src/main/java/org/openapitools/model/Note.java
14+
src/main/java/org/openapitools/model/Service.java
15+
src/main/java/org/openapitools/model/TextAnnotation.java
16+
src/main/java/org/openapitools/model/TextDateAnnotation.java
17+
src/main/java/org/openapitools/model/TextDateAnnotationAllOf.java
18+
src/main/java/org/openapitools/model/TextDateAnnotationRequest.java
19+
src/main/java/org/openapitools/model/TextDateAnnotations.java
20+
src/main/resources/application.properties

0 commit comments

Comments
 (0)