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
  • Inspectam Statutul Organizatiei
  • Inspectam Organizatia, care apartine anumitui Provaider
  • Inspectam Proectul, care apartine animitui Provaider
  • Vizionam lista Provaiderilor
  • Vizionam Provaiderii care ii apartin unei Organizatii

Was this helpful?

  1. SSO

API Partner

Descrierea metodelor

Inspectam Statutul Organizatiei

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

Path Parameters

Name
Type
Description

Authorization

string

Metoda de audentificare "Bearer Token"

Token

string

indicam Tokenul, creat prin metoda "/api/v1/login"

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

{
    "organization": {
        "name": "TES1",
        "idno": "123",
        "status_id": 1,
        "description": "",
        "project": "test"
    },
    "status": true
}
{
    "name": "Unauthorized",
    "message": "Your request was made with invalid credentials.",
    "code": 0,
    "status": 401
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "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
    }
}

Inspectam Organizatia, care apartine anumitui Provaider

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

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

"Rezultatul - 1"
{
    "status": true,
    "organizations": []
}

"Rezultatul - 2"
{
    "status": true,
    "organizations": {
        "testOrganization2": {
            "name": "testOrganization2",
            "idno": "12345",
            "status": true,
            "description": "aDQADCWAWAEWEFDWAEFASFFfsafdgsdgvv"
        }
    }
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getOrganization\".",
        "code": 0
    }
}

Inspectam Proectul, care apartine animitui Provaider

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

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

"Rezultatul - 1"
{
    "status": true,
    "projects": []
}

"Rezultatul -2"
{
    "status": true,
    "projects": {
        "testProject2": {
            "name": "testProject2",
            "organization": "testOrganization2",
            "organization_idno": "12345",
            "description": "dcvsvcsdevseve",
            "status": true
        }
    }
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getProject\".",
        "code": 0
    }
}

Vizionam lista Provaiderilor

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

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

{
    "tetsProvider2": {
        "provider_id": 3,
        "relation_class_attributes": null,
        "description": ""
    },
    "tetsProvider1": {
        "provider_id": 1,
        "relation_class_attributes": null,
        "description": ""
    },
    "test with attribute": {
        "provider_id": 2,
        "relation_class_attributes": {
            "test": null
        },
        "description": ""
    }
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getProvider\".",
        "code": 0
    }
}

Vizionam Provaiderii care ii apartin unei Organizatii

POST https://sso.esempla.systems/api/v1/getProvidersByProject

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

Request Body

Name
Type
Description

Project_id

string

Id -ul organizatiei

lista provaiderilor care apartin unei organizatii
{
    "status": true,
    "providers": {
        "tetsProvider1": {
            "provider": "tetsProvider1",
            "relation_class": null,
            "status": true
        },
        "tetsProvider2": {
            "provider": "tetsProvider2",
            "relation_class": null,
            "status": true
        }
    }
}

rezultatul, cin nu exista organizatie cu proect_id indicat
{
    "status": true,
    "providers": []
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/getProvidersByProjec\".",
        "code": 0
    }
}

PreviousFAQNextDescription

Last updated 6 years ago

Was this helpful?