diff --git a/README.md b/README.md index af934ff3daa9093e924e25f6dd61ae0776b25ebf..44eeee9ccb03540bca8a97f4209ab1d6ba239abf 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,11 @@ ## Usage +See a complete set of samples [here](queries/sample-requests.rest) + Compile, package, and run Integration Tests (verify). Launch the REST Server. ```shell -git clone --branch jakarta \ +git clone \ https://github.com/emmanuelbruno/cours-java-librarymanager-rest.git mvn clean verify && \ mvn exec:java @@ -86,4 +88,5 @@ curl -v -H "Accept: application/json" -H "sortKey: prenom"\ Login and get a Java Web Token ```shell 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