API Partner

Descrierea metodelor

Inspectam Statutul Organizatiei

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

Path Parameters

Headers

{
    "organization": {
        "name": "TES1",
        "idno": "123",
        "status_id": 1,
        "description": "",
        "project": "test"
    },
    "status": true
}

Inspectam Organizatia, care apartine anumitui Provaider

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

Headers

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

"Rezultatul - 2"
{
    "status": true,
    "organizations": {
        "testOrganization2": {
            "name": "testOrganization2",
            "idno": "12345",
            "status": true,
            "description": "aDQADCWAWAEWEFDWAEFASFFfsafdgsdgvv"
        }
    }
}

Inspectam Proectul, care apartine animitui Provaider

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

Headers

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

"Rezultatul -2"
{
    "status": true,
    "projects": {
        "testProject2": {
            "name": "testProject2",
            "organization": "testOrganization2",
            "organization_idno": "12345",
            "description": "dcvsvcsdevseve",
            "status": true
        }
    }
}

Vizionam lista Provaiderilor

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

Headers

{
    "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": ""
    }
}

Vizionam Provaiderii care ii apartin unei Organizatii

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

Headers

Request Body

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": []
}

Last updated