File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ Use one of the several ways of running a Spring Boot application. Below are just
31
31
You'll get a response as in below.
32
32
33
33
`{"username":"yourUsername","tcno":"12512561125"}`
34
- 2 . Generate an access token by api/login url.
34
+ 2 . Generate an access token by / api/login url.
35
35
36
36
` $ curl -H "Content-Type: application/json" -X POST -d "{\"username\": \"yourUsername\", \"password\": \"yourPassword\"}" http://localhost:8080/api/login `
37
37
38
38
You'll be getting an access token similar to this.
39
39
40
40
` eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ5b3VyVXNlcm5hbWUiLCJleHAiOjE1NTI0NDMzNjZ9.0WSCg4vaP7BVeJz8tQnL3s-BYjBB6UWXlQKCZHm1_zqEVIiA8_71Ni7tbPDm2DbW-Qc_fPP9CQF1jKcRC9njFQ `
41
41
42
- 3 . Use the token to access content available to all authenticated users, through the RESTful API
42
+ 3 . Use the token to access content available to all authenticated users, through the RESTful API.
43
43
44
44
Http.Get request example:
45
45
` curl -i -H "Accept: application/json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ5b3VyVXNlcm5hbWUiLCJleHAiOjE1NTI0NDMzNjZ9.0WSCg4vaP7BVeJz8tQnL3s-BYjBB6UWXlQKCZHm1_zqEVIiA8_71Ni7tbPDm2DbW-Qc_fPP9CQF1jKcRC9njFQ" -X GET http://localhost:8080/api/user/find/all `
You can’t perform that action at this time.
0 commit comments