Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
/ freeacs-data-api Public archive

(Work in progress) A data access api that serves as an entry point for the frontend and other external services

Notifications You must be signed in to change notification settings

freeacs/freeacs-data-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED!

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.

data-api

For now only used by https://github.com/freeacs/freeacs-web

Setup

  1. git clone git@github.com:freeacs/freeacs-data-api.git
  2. cd freeacs-data-api
  3. git submodule init
  4. git submodule update
  5. mvn install

Run api project

  1. cd data-api
  2. mvn spring-boot:run
  3. Now accessible on http://localhost:9000/rest

Authorization

  1. Send a POST request to http://localhost:9000/rest/user/signin with body { "username": "admin", "password": "freeacs" }
  2. You get a response with like this { "username": "admin", "token": "[the jwt token]" }
  3. Save the token somewhere
  4. For each subsequent requests to the server, set a header Authorization: Bearer [the jwt token]
  5. Call http://localhost:9000/rest/user/me to get current logged in users info

About

(Work in progress) A data access api that serves as an entry point for the frontend and other external services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages