Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoTNoteApp

This Application is build using the Spring Boot Application.

Technology Stack

  1. Java 8
  2. Spring Boot
  3. Spring Security
  4. JWT
  5. Rest API
  6. Apache Derby

Application is currently using the apache derby as database. The connection properties can be found in application.yml.

Application cURL Command Example:

#Login : UserName : rkamh@gmail.com password : test1234

curl -X POST -H "X-Requested-With: XMLHttpRequest" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d "{"""username""":"""rkamh@gmail.com""","""password""":"""test1234"""}" http://localhost:9966/api/auth/login

Response will contain the authentication token and refresh token, the validity of the token is 60 Minutes.

#To Get the UserName:

curl -X GET -H "X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJya2FtaEBnbWFpbC5jb20iLCJpc3MiOiJnb3RwcmludC5jb20iLCJpYXQiOjE0OTEzMTAzMDEsImV4cCI6MTQ5MTMxMTIwMX0.cx14e6IiFdGq-LLoPTsgOXDQKxyuWIo3G1ZdR69Zjlbygx26PQelLv4F9XszGIRKpLp_Y17wa8iqT1AGo48dVg" -H "Cache-Control: no-cache" http://localhost:9966/api/user

#POST, PUT, DELETE and GET Point for the User Note API.

curl -X GET -H "X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJya2FtaEBnbWFpbC5jb20iLCJpc3MiOiJnb3RwcmludC5jb20iLCJpYXQiOjE0OTEzMTAzMDEsImV4cCI6MTQ5MTMxMTIwMX0.cx14e6IiFdGq-LLoPTsgOXDQKxyuWIo3G1ZdR69Zjlbygx26PQelLv4F9XszGIRKpLp_Y17wa8iqT1AGo48dVg" -H "Cache-Control: no-cache" http://localhost:9966/api/user

curl -X GET -H "X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJya2FtaEBnbWFpbC5jb20iLCJpc3MiOiJnb3RwcmludC5jb20iLCJpYXQiOjE0OTEzMTc5NTUsImV4cCI6MTQ5MTMyMTU1NX0.KaJJg5bRSnI68T2w7_nkhzxEgsfwkNoMRvSvbHAk2HU0VtCjX_0xso-Dn0mvK4_ORkHmc96kq_o89Iosw-lZFg" -H "Cache-Control: no-cache" http://localhost:9966/api/usernotes

curl -X POST -H "X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJya2FtaEBnbWFpbC5jb20iLCJpc3MiOiJnb3RwcmludC5jb20iLCJpYXQiOjE0OTEzMTc5NTUsImV4cCI6MTQ5MTMyMTU1NX0.KaJJg5bRSnI68T2w7_nkhzxEgsfwkNoMRvSvbHAk2HU0VtCjX_0xso-Dn0mvK4_ORkHmc96kq_o89Iosw-lZFg" -H "Content-Type: application/json" -d "{ """id""": null, """title""": """Sample User Note""", """note""": """This is Simple User Note Crud Application to test POST """, """createDate """: """2017-04-04""", """updateDate """: null }" http://localhost:9966/api/usernotes

curl -X GET -H "X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJya2FtaEBnbWFpbC5jb20iLCJpc3MiOiJnb3RwcmludC5jb20iLCJpYXQiOjE0OTEzMTc5NTUsImV4cCI6MTQ5MTMyMTU1NX0.KaJJg5bRSnI68T2w7_nkhzxEgsfwkNoMRvSvbHAk2HU0VtCjX_0xso-Dn0mvK4_ORkHmc96kq_o89Iosw-lZFg" -H "Cache-Control: no-cache" http://localhost:9966/api/usernotes/2

curl -X PUT -H "X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJya2FtaEBnbWFpbC5jb20iLCJpc3MiOiJnb3RwcmludC5jb20iLCJpYXQiOjE0OTEzMTc5NTUsImV4cCI6MTQ5MTMyMTU1NX0.KaJJg5bRSnI68T2w7_nkhzxEgsfwkNoMRvSvbHAk2HU0VtCjX_0xso-Dn0mvK4_ORkHmc96kq_o89Iosw-lZFg" -H "Content-Type: application/json" -d "{ """id""": 2, """title""": """Sample User Note""", """note""": """This is Sample User Note Crud Application to test PUT """, """createDate""": """2017-04-04""", """updateDate""": null }" http://localhost:9966/api/usernotes

curl -X DELETE -H "X-Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJya2FtaEBnbWFpbC5jb20iLCJpc3MiOiJnb3RwcmludC5jb20iLCJpYXQiOjE0OTEzMTc5NTUsImV4cCI6MTQ5MTMyMTU1NX0.KaJJg5bRSnI68T2w7_nkhzxEgsfwkNoMRvSvbHAk2HU0VtCjX_0xso-Dn0mvK4_ORkHmc96kq_o89Iosw-lZFg" -H "Cache-Control: no-cache" http://localhost:9966/api/usernotes/2

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages