Skip to content

Commit

Permalink
[Fix] upload schema example (#144)
Browse files Browse the repository at this point in the history
* Remove grant_type form field from upload schema

Form field grant_type missing opening quotes. With correct quoting Baas
throws error - Unexpected Name \"grant_type\".

* Treat data as a filename in upload schema example

Curl --data-binary filename needs to start with '@' so it is read as a
file.

---------

Co-authored-by: Anthony Menasse <anthony.menasse@rhize.com>
  • Loading branch information
amenasse and Anthony Menasse authored Aug 9, 2024
1 parent df9245b commit 3f2be1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions content/deploy/install/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ If enabling the Audit Trail, also the include the configuration in [Enable chang
```bash
curl --location --request POST 'http://localhost:<FORWARDED_PORT>/admin/schema' \
--header 'Authorization: Bearer <TOKEN>' \
--data grant_type=urn:ietf:params:oauth:grant-type:uma-ticket" \
--header 'Content-Type: application/octet-stream' \
--data-binary '<SCHEMA_FILE>’
--data-binary '@<SCHEMA_FILE>’
```
This creates more roles.
Expand Down

0 comments on commit 3f2be1e

Please # to comment.