Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
utas-raymondng committed Mar 14, 2024
1 parent 35d1035 commit e33a676
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ This application is built with `Spring Boot 3` and `Java 17`.
There are required environment variables to run the `es-indexer`:

```env
# Client calling the Indexer API must provide this token in the Authorization header
# Client calling the Indexer API must provide this token in the Authorization header, these value is set
# in [appdeply](https://github.com/aodn/appdeploy/blob/main/tg/edge/es-indexer/ecs/variables.yaml) for edge env
# under environment_variables:
APP_HTTP_AUTH_TOKEN=sampletoken
SERVER_PORT=8080
Expand All @@ -28,18 +31,32 @@ GEONETWORK_HOST=http://localhost:8080
### Maven build

```console
mvn clean install
or
mvn clean install [-DskipTests]

# If you do not use skipTest, then autotest will run where it will create a docker geonetwork instance, inject the
sample data and then run the indexer. You can treat this as kind of integration testing.
```

This project container 3 submodules:
* geonetwork - This is used to compile JAXB lib to handle XML return from GEONetowrk, it is iso19115 standard
* stacmodel - A group of java class that create the STAC json which store in elastic search, so if app needs to read STAC from elastic, use this lib
* indexer - The main app that do the transformation.

### Docker

```console
# Start a local instance of indexer

docker-compose -f docker-compose-dev.yaml up [-d: in daemon mode | --build: to see the console logs]
```

### Endpoints:

- Health check: `/actuator/health`
- POST/GET/DELETE against specific record: `/api/v1/indexer/index/{records-uuid}`
- Bulk index: `/api/v1/indexer/index/all`
- Swagger UI: `/swagger-ui/index.html`
| Description | Endpoints |
| ---- |---------------------|
| Health check | `/actuator/health` |
| POST/GET/DELETE against specific record | `/api/v1/indexer/index/{records-uuid}` |
| Bulk index | `/api/v1/indexer/index/all` |
| Swagger UI: | `/swagger-ui/index.html` |

0 comments on commit e33a676

Please sign in to comment.