Java REST-API for specific apps.
jdk 25or higher
# clone project
git clone https://github.com/inpercima/rest-api
cd rest-api# package
./mvnw clean package
# package without tests
./mvnw clean package -DskipTestsAdd jitpack.io as repository to your project, for maven like
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>Add rest-api as dependency to your project, for maven like
<dependency>
<groupId>com.github.inpercima</groupId>
<artifactId>rest-api</artifactId>
<version>v1.0.3</version>
</dependency>Update or create settings.xml in your .m2 folder
<settings
xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/inpercima/*</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>USERNAME</username>
<password>PERSONAL_ACCESS_TOKEN</password>
</server>
</servers>
</settings>Replace USERNAME with your github username.
Replace PERSONAL_ACCESS_TOKEN with your personal access tokens you have to create in github with the scope read:packages.
Add rest-api as dependency to your project, for maven like
<dependency>
<groupId>net.inpercima</groupId>
<artifactId>rest-api</artifactId>
<version>1.0.3</version>
</dependency>