Commit 9c1e51d0 authored by Christophe Lallement's avatar Christophe Lallement
Browse files

updade README.md removed reference to specific deployement

parent 3a6a098e
Pipeline #27438 passed with stages
in 8 minutes and 38 seconds
...@@ -39,13 +39,10 @@ in case of data partition = `opendes` is must be updated to ...@@ -39,13 +39,10 @@ in case of data partition = `opendes` is must be updated to
## Commands ## Commands
### Token given TOKEN, BASE_URL and DATA_PARTITION
see [here](https://dev.azure.com/slb-des-ext-collaboration/open-data-ecosystem/_wiki/wikis/open-data-ecosystem.wiki/553/Authentication?anchor=get-an-sauth-token-from-an-sauth-service-account---sauth-v2) for token generation.
### cURL ### Fetch a schema
given TOKEN, BASE_URL and DATA_PARTITION
``` ```
curl \ curl \
...@@ -54,4 +51,19 @@ curl \ ...@@ -54,4 +51,19 @@ curl \
--header "accept: application/json" \ --header "accept: application/json" \
--header "data-partition-id: $DATA_PARTITION" \ --header "data-partition-id: $DATA_PARTITION" \
--header "Authorization: Bearer $TOKEN" --header "Authorization: Bearer $TOKEN"
``` ```
\ No newline at end of file
### Register a schema
```
curl \
--location \
--request POST "$BASE_URL/api/storage/v2/schemas' \
--header 'Content-Type: application/json' \
--header "data-partition-id: $DATA_PARTITION" \
--header "Authorization: Bearer $TOKEN"
--data-raw '{
...
}'
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment