Skip to content

Latest commit

 

History

History

rest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Permify Java SDK

This repository contains a sample usage for the Java REST SDK for Permify.

Getting Started

Prerequisites

Ensure you have the following installed:

  • Java
  • Maven

Cloning the Repository

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

Building the Project

Navigate to the root directory of the project and run the following commands to build and install the SDK:

mvn clean install

Running the Application

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.

For your own Projects

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);
  }