dtrouillet / ebad-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ebad-java-client

EBAD API

  • API version: 2.8.0
    • Build date: 2021-07-10T21:09:32.970Z[GMT]

This documentation describe EBAD API.

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>fr.icdc.ebad</groupId>
  <artifactId>ebad-java-client</artifactId>
  <version>2.7.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "fr.icdc.ebad:ebad-java-client:2.7.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/ebad-java-client-2.7.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.AccountApi;

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

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        String key = "key_example"; // String | 
        try {
            String result = apiInstance.activateAccount1(key);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#activateAccount1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

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

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        String body = "body_example"; // String | 
        try {
            apiInstance.changePassword(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#changePassword");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

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

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        try {
            UserAccountDto result = apiInstance.getAccount();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getAccount");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

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

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        try {
            apiInstance.getCsrf();
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#getCsrf");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

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

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        try {
            String result = apiInstance.isAuthenticated();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#isAuthenticated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;

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

public class AccountApiExample {

    public static void main(String[] args) {
        
        AccountApi apiInstance = new AccountApi();
        UserAccountDto body = new UserAccountDto(); // UserAccountDto | 
        try {
            apiInstance.saveAccount(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccountApi#saveAccount");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://ebad.herokuapp.com/ebad

Class Method HTTP request Description
AccountApi activateAccount1 GET /activate
AccountApi changePassword POST /account/change_password
AccountApi getAccount GET /account
AccountApi getCsrf GET /csrf
AccountApi isAuthenticated GET /authenticate
AccountApi saveAccount POST /account
AccreditationRequestApi answerRequest POST /accreditation-requests/response
AccreditationRequestApi createAccreditationRequest PUT /accreditation-requests
AccreditationRequestApi findAll GET /accreditation-requests/need-answer
AccreditationRequestApi findAllMyRequest GET /accreditation-requests
ApiTokenApi createToken PUT /api-tokens
ApiTokenApi deleteToken DELETE /api-tokens/{id}
ApiTokenApi findToken GET /api-tokens
ApplicationApi createApplication PUT /applications/gestion
ApplicationApi findApplication GET /applications/search
ApplicationApi getAll3 GET /applications
ApplicationApi getAllManage GET /applications/gestion
ApplicationApi getAllUsages GET /applications/{id}/usages
ApplicationApi getAllWrite GET /applications/write
ApplicationApi getModeratorsFromApplication GET /applications/moderators/{id}
ApplicationApi getUsersFromApplication GET /applications/users/{id}
ApplicationApi importAll1 POST /applications/import-all
ApplicationApi removeApplication DELETE /applications/gestion
ApplicationApi updateApplication PATCH /applications/gestion
BatchApi addBatch PUT /batchs
BatchApi deleteBatch DELETE /batchs/{id}
BatchApi getByPredicate GET /batchs
BatchApi runBatch GET /batchs/run/{id}
BatchApi streamFlux GET /batchs/state/{id}
BatchApi updateBatch PATCH /batchs
ChainesApi addChaine PUT /chains
ChainesApi getAllFromEnv2 GET /chains/env/{env}
ChainesApi removeChaine DELETE /chains/{id}
ChainesApi runChaine POST /chains/{id}/run
ChainesApi updateChaine PATCH /chains
DirectoryApi addDirectory PUT /directories
DirectoryApi downloadFile POST /directories/files/read
DirectoryApi getAllFromEnv1 GET /directories/env/{env}
DirectoryApi getFilesFromDirectory GET /directories/files/{id}
DirectoryApi removeDirectory POST /directories/delete
DirectoryApi removeFileFromDirectory POST /directories/files/delete
DirectoryApi updateDirectory PATCH /directories
DirectoryApi uploadFile POST /directories/files/upload
EnvironmentApi addEnvironnement PUT /environments
EnvironmentApi changeDateTraitement GET /environments/dateTraitement/{env}
EnvironmentApi deleteEnvironnement DELETE /environments
EnvironmentApi get1 GET /environments/{env}
EnvironmentApi getEnvironmentsFromApp GET /environments
EnvironmentApi getInfo GET /environments/info/{env}
EnvironmentApi importAll POST /environments/import-all
EnvironmentApi importEnvApp POST /environments/import/application/{id}
EnvironmentApi updateEnvironnement PATCH /environments
GlobalSettingApi getAllSettings GET /global-settings
GlobalSettingApi getValue GET /global-settings/{key}
GlobalSettingApi setValue POST /global-settings/{key}
IdentityApi addIdentity PUT /identities
IdentityApi deleteIdentity DELETE /identities/{identityId}
IdentityApi getAllIdentities GET /identities
IdentityApi getOneIdentity GET /identities/{id}
IdentityApi updateIdentity PATCH /identities
JobRunrApi restartJobRunr POST /jobrunr/restart
JwtApi authorize POST /authenticate
LogApi getAllLog GET /logs
LogApi getAllLogFromEnv GET /logs/{env}
LogApi getAllLogFromEnvBatch GET /logs/{env}/{batch}
LogApi getLogFromJobId GET /logs/job/{jobId}
NewApi delete2 DELETE /news/{id}
NewApi getActualityPublished GET /news/public
NewApi getAll2 GET /news
NewApi getOne1 GET /news/{id}
NewApi save1 PUT /news
NewApi update1 PATCH /news
NormsApi delete1 DELETE /norms/{id}
NormsApi getAll1 GET /norms
NormsApi getAllForList GET /norms/name
NormsApi getOne GET /norms/{id}
NormsApi save PUT /norms
NormsApi update PATCH /norms
NotificationsApi getUnreadNotification GET /notifications
NotificationsApi markAsReadNotification PATCH /notifications
SchedulingApi addScheduling PUT /schedulings
SchedulingApi delete DELETE /schedulings/{schedulingId}
SchedulingApi get GET /schedulings/{schedulingId}
SchedulingApi listAll GET /schedulings
SchedulingApi listByEnvironment GET /schedulings/env/{environmentId}
StatisticsApi getGeneralStatistiques GET /statistics
TypeFichierApi addTypeFichier PUT /file-kinds
TypeFichierApi getAllFromEnv GET /file-kinds/application/{app}
TypeFichierApi removeTypeFichier POST /file-kinds/delete
TypeFichierApi updateTypeFichier PATCH /file-kinds
UserApi activateAccount GET /users/activate
UserApi changeApplicationAuthority PATCH /users/application
UserApi changeRoles PATCH /users/roles
UserApi currentUser GET /users/current
UserApi getAll GET /users
UserApi getUser GET /users/{login}
UserApi inactivateAccount GET /users/inactivate/{login}
UserApi saveUser PUT /users
UserApi updateUser PATCH /users

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

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

Author

About


Languages

Language:Java 99.7%Language:Shell 0.3%