-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.ad
61 lines (42 loc) · 1.56 KB
/
README.ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
== NSL API Version 1.0
=== Versions
. __Java__ - 11 (openjdk version "11.0.11" 2021-04-20)
. __Micronaut__ - 3.1.4
=== API Versions
. 0.1
=== Building the project
==== Linux
Use the `./run-api.sh` script to run the project
Run tests using the `./test-api.sh` script
==== IntelliJ
You can load the project in IntelliJ as a Gradle project and create a run configuration as a `Micronaut` or `Gradle` application.
You can simply run the project using the `play` button once all dependencies are resolved.
===== Micronaut Run Configuration
[cols="1,1"]
|===
| name: | nslapi
| Main Class | au.org.biodiversity.nslapi.Application
| VM Options | -Dmicronaut.config.files=/home/mo/.nsl/nsl-api-config.groovy
| Environment vars | NSL_API_DB_USER=hasura;NSL_API_DB_PWD=hasura;NSL_API_DB_SCHEMA=api;NSL_API_DB_URL=postgresql://localhost:5432/nslapi;MICRONAUT_SERVER_PORT=7171
| JDK/JRE | 11
|===
===== Gradle Run Configuration
[cols="1,1"]
|===
| Run | clean build run
| Gradle project | nslapi
| Env Vars | MICRONAUT_ENVIRONMENTS=dev;NSLAPIDBUSER=hasura;NSLAPIDBPWD=hasura;NSLAPIDBSCHEMA=api;NSLAPIDBURL=postgresql://127.0.0.1:5432/nslapi;MICRONAUT_CONFIG_FILES=/home/mo/.nsl/nsl-api-config.groovy;NSLAPICONFIGPATH=/home/mo/.nsl/nsl-api-config.groovy;MICRONAUT_SERVER_PORT=8095
|===
=== Provenance
The provenance of data is displayed in each response using the repository url. Sample output below.
[source,json]
----
{
"result": {
"some_key": "its_attribute"
},
"provenance": {
"wasAttributedTo": "http://github.com/bio-org-au/nslapi/releases/tag/1.0.0
}
}
----