Skip to content
Snippets Groups Projects
Commit 60e20e62 authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

fixes samples.

parent 7f908158
No related branches found
No related tags found
No related merge requests found
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
## Usage ## Usage
See a complete set of samples [here](queries/sample-requests.rest)
Compile, package, and run Integration Tests (verify). Launch the REST Server. Compile, package, and run Integration Tests (verify). Launch the REST Server.
```shell ```shell
git clone --branch jakarta \ git clone \
https://github.com/emmanuelbruno/cours-java-librarymanager-rest.git https://github.com/emmanuelbruno/cours-java-librarymanager-rest.git
mvn clean verify && \ mvn clean verify && \
mvn exec:java mvn exec:java
...@@ -86,4 +88,5 @@ curl -v -H "Accept: application/json" -H "sortKey: prenom"\ ...@@ -86,4 +88,5 @@ curl -v -H "Accept: application/json" -H "sortKey: prenom"\
Login and get a Java Web Token Login and get a Java Web Token
```shell ```shell
TOKEN=$(curl -v --user "john.doe@nowhere.com:admin" "http://localhost:9998/myapp/biblio/login") TOKEN=$(curl -v --user "john.doe@nowhere.com:admin" "http://localhost:9998/myapp/biblio/login")
curl -H "Authorization: Bearer $TOKEN" -v "http://localhost:9998/myapp/biblio/secured
``` ```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment