Due to inactivity for several years and because no one wanted to maintain it, this project and all other projects in this org is archived.
For now only used by https://github.com/freeacs/freeacs-web
- git clone
git@github.com:freeacs/freeacs-data-api.git
- cd freeacs-data-api
- git submodule init
- git submodule update
- mvn install
- cd data-api
- mvn spring-boot:run
- Now accessible on http://localhost:9000/rest
- Send a POST request to http://localhost:9000/rest/user/signin with body
{ "username": "admin", "password": "freeacs" }
- You get a response with like this
{ "username": "admin", "token": "[the jwt token]" }
- Save the token somewhere
- For each subsequent requests to the server, set a header
Authorization: Bearer [the jwt token]
- Call http://localhost:9000/rest/user/me to get current logged in users info