8a657b21dd
Changes made to the grading template UI Some of the improvements include: - When editing a template, and the user makes a change the user will be informed/alerted that the template has changed. - When editing a template the user will now see a project title that shows what project type that template has. - Default value of points required to pass has been changed from 0 -> 1 - Requirements to points will be added by default when adding a new criteria. - The create button is now hidden until the user has chosen a grading template project type from the drop down menu. - Max available points are now updated as point requirements are added to the criterion. Reviewed-on: #21 Reviewed-by: Andreas Svanberg <andreass@dsv.su.se> Co-authored-by: Nico Athanassiadis <nico@dsv.su.se> Co-committed-by: Nico Athanassiadis <nico@dsv.su.se>
Working with the API
The API is protected by OAuth 2 acting as a resource server verifying tokens using token introspection.
When developing it uses a locally running instance of an
authorization server
that is run inside Docker. It can be started with docker compose -f docker-compose.yml up
.
Since there is no frontend to interact with the authorization server there's a helper script in
GetToken.java that can be run directly with java GetToken.java
to run through the authorization flow
and get an access token.
Once the token has been obtained go to the Swagger UI to interact with the API. Click the "Authorize" button in the top right and paste the access token to log in.
Description
Languages
Java
91%
HTML
8.6%
CSS
0.3%
JavaScript
0.1%