This repository contains a sample usage for the Java REST SDK for Permify.
Ensure you have the following installed:
- Java
- Maven
To get started, clone the repository using the following command:
git clone https://github.com/ucatbas/permify-sdk-samples.git
cd permify-sdk-samples/java/rest
Navigate to the root directory of the project and run the following commands to build and install the SDK:
mvn clean install
After successfully building the project, you can run the application using the following command:
java -jar target/your-artifact-name-0.0.1.jar
Replace your-artifact-name-0.0.1.jar with the actual name of the jar file generated after the build.
To use the Permify SDK in your project, add the following dependency to your pom.xml file:
<dependency>
<groupId>co.permify</groupId>
<artifactId>permify</artifactId>
<version>0.0.1</version>
</dependency>
Here is a simple permify client:
public static void main(String[] args) {
String baseUrl = "http://localhost:3476";
ApiClient apiClient = new ApiClient();
apiClient.setBasePath(baseUrl);
}