Logowanie

Ścieżka do servletu: api/authentication/login

Metoda: GET

Parametry:

  • userName - Login użytkownika
  • password - Hasło użytkownika
  • domainId - Id domeny (opcjonalne)
  • language - język systemu wg konwencji java.util.Locale.language (opcjonalne). Musi to być język obsługiwany w danym systemie.

Odpowiedź:

  • Odpowiedź zawiera identyfikator powstały z połączenia domeny i loginu użytkownika.

*zgodnie

Alternatywną metodą autoryzacji zapytań wysyłanych do REST API jest wykorzystanie metody Basic Auth.

Wylogowanie

Ścieżka do servletu: api/authentication/logout

Metoda: GET

Parametry:

  • brak

Odpowiedź:

  • {success:true}

Pobranie listy domen

Ścieżka do servletu: api/authentication/domains

Metoda: GET

Parametry:

  • brak

Odpowiedź:

  • Lista domen systemu w formacie JSON
[
   {
      "id":null,
      "name":"PlusWorkflow"
   },
   {
      "id":2,
      "name":"nazwaDomeny"
   }
]

 

 

 

 

 

 

Login

Path to servlet: api/authentication/login

Method: GET

Parameters

  • userName - User login
  • password - User's password
  • domainId - Domain id (optional)
  • language - The language of the system according to the java.util.Locale.language convention (optional). This must be the language supported on the given system.

Answer:

  • The response contains the identifier formed from the combination of the domain and the user's password.

*compliant

An alternative method for authorizing requests sent to the REST API is to use the Basic Auth method.

Logout

Path to servlet: api/authentication/logout

MethodGET

Parameters:

  • none

Answer:

  • {success:true}

Pobranie listy domen

Path to servlet: api/authentication/domains

 

Login

Path to servlet: api/authentication/login

Method: GET

Parameters

  • userName - User login
  • password - User's password
  • domainId - Domain id (optional)
  • language - The language of the system according to the java.util.Locale.language convention (optional). This must be the language supported on the given system.

Answer:

  • The response contains the identifier formed from the combination of the domain and the user's password.

*compliant

An alternative method for authorizing requests sent to the REST API is to use the Basic Auth method.

Logout

Path to servlet: api/authentication/logout

MethodGET

Parameters:

  • none

Answer:

  • {success:true}

Downloading a list of domains

Path to servlet: api/authentication/domains

Method: GET

Parameters:

  • none

Answer:

  • A list of system domains in JSON format
[
   {
      "id":null,
      "name":"PlusWorkflow"
   },
   {
      "id":2,
      "name":"nazwaDomeny"
   }
]

 

 

 

 

 

 

 GET

Parameters

  • none

Answer:

  • A list of system domains in JSON forma
[
   {
      "id":null,
      "name":"PlusWorkflow"
   },
   {
      "id":2,
      "name":"nazwaDomeny"
   }
]