Skip to content
Java SDK for accessing the Open Legal Data API
Branch: master
Clone or download
Latest commit 8f697ca Feb 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.swagger-codegen
docs Minor update Feb 18, 2019
gradle/wrapper Minor update Feb 18, 2019
src Minor update Feb 18, 2019
.gitignore
.swagger-codegen-ignore Minor update Feb 18, 2019
.travis.yml Minor update Feb 18, 2019
README.md Minor update Feb 18, 2019
build.gradle Minor update Feb 18, 2019
build.sbt Minor update Feb 18, 2019
git_push.sh Minor update Feb 18, 2019
gradle.properties Minor update Feb 18, 2019
gradlew Minor update Feb 18, 2019
gradlew.bat Minor update Feb 18, 2019
pom.xml Minor update Feb 18, 2019
settings.gradle Minor update Feb 18, 2019

README.md

swagger-java-client

Open Legal Data API

  • API version: v1
    • Build date: 2019-02-18T15:11:46.584Z

With the Open Legal Data API you can access various data from the legal domain, e.g. law text or case files. The data may be used for semantic analysis or to create statistics. For more information visit our website. https://openlegaldata.io/

Automatically generated by the Swagger Codegen

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>io.swagger</groupId>
  <artifactId>swagger-java-client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnnotationLabelsApi;

import java.io.File;
import java.util.*;

public class AnnotationLabelsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        AnnotationLabelsApi apiInstance = new AnnotationLabelsApi();
        AnnotationLabel data = new AnnotationLabel(); // AnnotationLabel | 
        try {
            AnnotationLabel result = apiInstance.annotationLabelsCreate(data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AnnotationLabelsApi#annotationLabelsCreate");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://de.openlegaldata.io/api

Class Method HTTP request Description
AnnotationLabelsApi annotationLabelsCreate POST /annotation_labels/
AnnotationLabelsApi annotationLabelsDelete DELETE /annotation_labels/{id}/
AnnotationLabelsApi annotationLabelsList GET /annotation_labels/
AnnotationLabelsApi annotationLabelsPartialUpdate PATCH /annotation_labels/{id}/
AnnotationLabelsApi annotationLabelsRead GET /annotation_labels/{id}/
AnnotationLabelsApi annotationLabelsUpdate PUT /annotation_labels/{id}/
CaseAnnotationsApi caseAnnotationsCreate POST /case_annotations/
CaseAnnotationsApi caseAnnotationsDelete DELETE /case_annotations/{id}/
CaseAnnotationsApi caseAnnotationsList GET /case_annotations/
CaseAnnotationsApi caseAnnotationsPartialUpdate PATCH /case_annotations/{id}/
CaseAnnotationsApi caseAnnotationsRead GET /case_annotations/{id}/
CaseAnnotationsApi caseAnnotationsUpdate PUT /case_annotations/{id}/
CaseMarkersApi caseMarkersCreate POST /case_markers/
CaseMarkersApi caseMarkersDelete DELETE /case_markers/{id}/
CaseMarkersApi caseMarkersList GET /case_markers/
CaseMarkersApi caseMarkersPartialUpdate PATCH /case_markers/{id}/
CaseMarkersApi caseMarkersRead GET /case_markers/{id}/
CaseMarkersApi caseMarkersUpdate PUT /case_markers/{id}/
CasesApi casesCreate POST /cases/
CasesApi casesDelete DELETE /cases/{id}/
CasesApi casesList GET /cases/
CasesApi casesPartialUpdate PATCH /cases/{id}/
CasesApi casesRead GET /cases/{id}/
CasesApi casesSearchList GET /cases/search/
CasesApi casesUpdate PUT /cases/{id}/
CitiesApi citiesList GET /cities/
CitiesApi citiesRead GET /cities/{id}/
CountriesApi countriesList GET /countries/
CountriesApi countriesRead GET /countries/{id}/
CourtsApi courtsList GET /courts/
CourtsApi courtsRead GET /courts/{id}/
LawBooksApi lawBooksCreate POST /law_books/
LawBooksApi lawBooksDelete DELETE /law_books/{id}/
LawBooksApi lawBooksList GET /law_books/
LawBooksApi lawBooksPartialUpdate PATCH /law_books/{id}/
LawBooksApi lawBooksRead GET /law_books/{id}/
LawBooksApi lawBooksUpdate PUT /law_books/{id}/
LawsApi lawsCreate POST /laws/
LawsApi lawsDelete DELETE /laws/{id}/
LawsApi lawsList GET /laws/
LawsApi lawsPartialUpdate PATCH /laws/{id}/
LawsApi lawsRead GET /laws/{id}/
LawsApi lawsSearchList GET /laws/search/
LawsApi lawsUpdate PUT /laws/{id}/
StatesApi statesList GET /states/
StatesApi statesRead GET /states/{id}/
TokenAuthApi tokenAuthCreate POST /token-auth/
UsersApi usersList GET /users/
UsersApi usersMe GET /users/me/
UsersApi usersRead GET /users/{id}/

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

api_key

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

hello@openlegaldata.io

You can’t perform that action at this time.