Esempla
  • Lista metodelor
  • Description
  • FAQ
  • SSO
    • Description
    • API
    • API Admin
    • FAQ
    • API Partner
  • Invoicing
    • Description
    • API
    • FAQ
  • SNS
    • Description
    • API
    • API Partner
    • API Admin
    • FAQ
  • VOIP
    • Untitled
Powered by GitBook
On this page
  • Generarea Token
  • Inspectam Organizatia si Proectul care apartine tokinului

Was this helpful?

  1. SSO

API

Descrierea metodelor

Generarea Token

GET https://sso.esempla.systems/api/v1/login

Path Parameters

Name
Type
Description

Authorization

string

Metoda de audentificare "Basic Auth"

Request Body

Name
Type
Description

Username

string

Numele Secret al Organizatiei

Password

string

Tokenul Secret al Proectului

{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImp0aSI6IjEifQ.eyJpc3MiOiIxIiwiYXVkIjoiMSIsImp0aSI6IjEiLCJpYXQiOjE1NTI5MDQwNzgsIm5iZiI6MTU1MjkwNDA3OCwiZXhwIjoxNTUyOTA3Njc4fQ.a0mJq1GZH6N4Tx3Gzrc5m8l7MlXvtfi4NlmcKca1Rm4"
}
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/logi\".",
        "code": 0
    }
}

Inspectam Organizatia si Proectul care apartine tokinului

GET https://sso.esempla.systems/api/v1/checkToken

Path Parameters

Name
Type
Description

Authorization

string

Metoda de audentificare "Bearer Token"

Request Body

Name
Type
Description

Token

string

indicam tokenul care a fos creat prin metoda "/api/v1/login"

{
    "status": true,
    "organization": {
        "name": "TES1",
        "idno": "123",
        "status_id": 1,
        "description": "",
        "project": "test"
    }
}
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/checkToke\".",
        "code": 0
    }
}

PreviousDescriptionNextAPI Admin

Last updated 6 years ago

Was this helpful?