You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
3
3
This project presents a Flask-based API for validating RO-Crates.
4
4
5
+
### Optional MinIO object storage
6
+
7
+
The RO-Crate Validation Service can validate an RO-Crate's metadata directly from a JSON payload (the `POST v1/ro_crates/validate_metadata` endpoint) without storing anything. This is the default mode.
8
+
9
+
Optionally, the service can read crates from — and write validation results
10
+
back to — a [MinIO](https://min.io/) object store. This is disabled by
11
+
default and controlled by the `MINIO_ENABLED` environment variable:
12
+
13
+
-`MINIO_ENABLED=false` (default): only a stateless validation endpoint is available and nothing is stored.
14
+
-`MINIO_ENABLED=true`: the ID endpoints (`POST`/`GET v1/ro_crates/{crate_id}/validation`) are also registered, and a MinIO instance is required. With Docker Compose, start MinIO with its opt-in profile: `docker compose --profile minio up`.
15
+
16
+
When MinIO is disabled the ID-based endpoints are not registered and return `404`.
17
+
5
18
## API
6
19
7
20
#### Request Validation of RO-Crate
@@ -184,8 +197,14 @@ curl -X 'POST' \
184
197
```bash
185
198
docker compose up --build
186
199
```
200
+
This runs in the default (metadata-only) mode. To enable the MinIO-backed
201
+
endpoints, set `MINIO_ENABLED=true` in your `.env` and start the `minio`
202
+
profile:
203
+
```bash
204
+
docker compose --profile minio up --build
205
+
```
187
206
188
-
5. Set up the MinIO bucket
207
+
5. **(Only when `MINIO_ENABLED=true`)** Set up the MinIO bucket
189
208
1. Open the MinIO web interface at `http://localhost:9000`.
0 commit comments