Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sample-jaxrs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Bruno
sample-jaxrs
Commits
60e20e62
Commit
60e20e62
authored
4 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
fixes samples.
parent
7f908158
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+4
-1
4 additions, 1 deletion
README.md
with
4 additions
and
1 deletion
README.md
+
4
−
1
View file @
60e20e62
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment