Andreas Svanberg
ccac2c1cf8
All checks were successful
Build and test / build-and-test (push) Successful in 6m54s
SciPro will have to provide information to the upcoming student portal. Wicket does not have the ability to serve JSON in the usual REST way and is only able to serve HTML. The most common way to write JSON over HTTP API:s in Java is using Spring Web, but currently SciPro uses Guice for dependency injection rather than Spring which makes adding Spring Web a bit more tricky. This pull request attempts to solve this by doing the following; * Replacing Guice with Spring * Adding a new API module that uses Spring Web * Turning the entire system into a standard Spring Boot web application The hope is that these changes will bring the following benefits; * Harmonize our web stack (Daisy uses Spring and the new lecture hall system is full Spring Boot) * Enable easy development of a traditional JSON over HTTP API * Ease future recruitment by using the most common Java web frameworks Reviewed-on: #5 Reviewed-by: niat8586 <nico@dsv.su.se> Co-authored-by: Andreas Svanberg <andreass@dsv.su.se> Co-committed-by: Andreas Svanberg <andreass@dsv.su.se>
16 lines
444 B
YAML
16 lines
444 B
YAML
services:
|
|
oauth2:
|
|
container_name: scipro-dev-oauth2
|
|
build:
|
|
context: https://github.com/dsv-su/toker.git
|
|
dockerfile: embedded.Dockerfile
|
|
restart: on-failure
|
|
ports:
|
|
- '59733:8080'
|
|
environment:
|
|
- CLIENT_ID=get-token
|
|
- CLIENT_SECRET=get-token-secret
|
|
- CLIENT_REDIRECT_URI=http://localhost:59732/
|
|
- RESOURCE_SERVER_ID=scipro-api-client
|
|
- RESOURCE_SERVER_SECRET=scipro-api-secret
|