swagger-java-client

TAAG-AT/Api/v1/Etudiants

  • API version: v1
    • Build date: 2020-10-30T17:21:14.807Z[GMT]

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

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.AuthentificationApi;

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

public class AuthentificationApiExample {

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

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

public class AuthentificationApiExample {

    public static void main(String[] args) {
        
        AuthentificationApi apiInstance = new AuthentificationApi();
        ReqConnexion body = new ReqConnexion(); // ReqConnexion | Corps de la requête pour l'authentification
        try {
            apiInstance.apiElevesV1SessionsPost(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthentificationApi#apiElevesV1SessionsPost");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to http://51.158.117.181:3000/

Class Method HTTP request Description
AuthentificationApi apiElevesV1EnregistrementsPost POST /api/eleves/v1/enregistrements Eenregistrement d'un étudiant
AuthentificationApi apiElevesV1SessionsPost POST /api/eleves/v1/sessions Connecte un étudiant à l'api taag
MtiersApi apiElevesV1MetiersIdGet GET /api/eleves/v1/metiers/{id} Détails Métier
MtiersApi apiElevesV1SecteursGet GET /api/eleves/v1/secteurs Liste des secteurs d'activité avec 3 métiers
MtiersApi apiElevesV1SecteursIdGet GET /api/eleves/v1/secteurs/{id} Détails d'un secteur d'activité

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

BearerAuth

Recommendation

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

Author