From 60e20e6227d36f50afbfb3a304ffa52a1db40039 Mon Sep 17 00:00:00 2001 From: Emmanuel Bruno <emmanuel.bruno@univ-tln.fr> Date: Mon, 8 Mar 2021 19:19:18 +0100 Subject: [PATCH] fixes samples. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index af934ff..44eeee9 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 -- GitLab