13 Commits

Author SHA1 Message Date
ccac2c1cf8 Enable creating an API using Spring Web (#5)
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>
2024-11-06 11:23:28 +01:00
e02006bfd1 Upgrade to servlet specification 4.0 2022-10-18 12:14:42 +02:00
e811fd04e2 Switch to the new Jakarta dependencies for API specification. 2022-09-28 11:11:47 +02:00
6765da6480 Remove MOXy for XML/JSON (de)serialization
We now use JAXB for XML and Jackson for JSON. MOXy complects the two and make it harder to control the specific input/output expected.
2022-09-28 11:08:53 +02:00
6cb1a189cb 2279 2277 Upgrade Guice and Guava 2021-08-24 11:38:58 +02:00
aaa950ce90 Restructured the poms to move dependencies to where they are used and make sense. 2016-03-18 16:34:51 +01:00
f2e69b4421 Upgraded to Wicket 7. 2016-01-07 16:23:47 +01:00
1ab9ee8b09 Upgraded versions.
Could not update Hibernate due to problems with enums.
Could not update Commons CSV due to stupid reliance on CSVRecord#toString.
2015-05-28 13:05:25 +02:00
fred-fri
644e09cc5e refactor 2014-10-29 19:35:21 +09:00
b389365379 SSO login is now provided with the daisy-integration module. 2014-03-31 13:55:04 +02:00
3f160abdcc Updated all dependency versions.
Still stuck with Spring 3.2.8 due to Spring-data-jpa.
Hibernate introduced a bug in 4.3.* so until that is resolved we use 4.2.8.
2014-02-26 16:47:14 +01:00
0bbfb0244a Went back in jasperreports version since the latest has a faulty dependency on javax.servlet. 2013-11-13 19:11:25 +01:00
85cb365956 Added worker to send grading reports as PDFs to daisy. 2013-11-13 16:52:29 +01:00