REST API providing a schedule for West Pomeranian University of Technology
- JDK 8
- (optional) MySQL database
The project is built with Gradle. Run Gradle to build the project and to run the tests using the following command:
./gradlew [tasks-and-options]To build the project run the following command:
./gradlew buildTo run tests use:
./gradlew checkTo create bootable JAR file run the command:
./gradlew bootJarJAR file will be created in build/libs/ directory named Schedule_API-<version>.jar
When using external database these environment variables can be set to define database credentials.
SCHEDULE_USER_NAME- database loginSCHEDULE_USER_PASSWORD- database password
To build and run application run the following command:
./gradlew bootRunTo run already build application having executable JAR run:
./Schedule_API-<version>.jarAdditional options can be specified when starting application using following commands:
When starting using Gradle:
./gradlew bootRun --args='--example.argument=value'When starting using JAR:
./Schedule_API.jar --example.argument=valueCommon arguments:
spring.profiles.active- sets active environment profile. Available profiles:dev(default)production
spring.datasource.url- full URI to MySQL database e.g.:jdbc:mysql://localhost:3306/schedule?characterEncoding=utf-8server.port- port of the server. Default:8080
Swagger 2.0 documentation: http://plan.zut.edu.pl/api/swagger-ui.html