Method for Working with Projects

To work with projects, execute requests using the "projects" API method (determine administrator token before executing the request):

curl -X GET '<IP address or DNS server name>/api/v1/admin/projects/' --header 'Content-Type: application/json' -H 'Authorization: Bearer <administrator token>'

The example of response:

{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [{
        "id": 10,
        "name": "proj1",
        "environment_name": "env1"
    },{
        "id": 1,
        "name": "proj2",
        "environment_name": "env2"
    }]
}

curl -X GET '<IP address or DNS server name>/api/v1/admin/projects/<identifier of requested project>/groups/' --header 'Content-Type: application/json' -H 'Authorization: Bearer <administrator token>'

In the <requested project identifier> substitution use value of the id parameter returned on getting the list of all projects.

The example of response:

[
   {
        "id": 21,
        "name": "GROUP_50000"
    },{
        "id": 19,
        "name": "any"
    },{
        "id": 20,
        "name": "Group"
    }
]

curl -X GET '<IP address or DNS server name>/api/v1/admin/projects/<identifier of requested project>/credentials/' --header 'Content-type: application/json' -H 'Authorization: Bearer <administrator token>'

In the <requested project identifier> substitution use value of the id parameter returned on getting the list of all projects.

The example of response:

[
    {
        "id": 67,
        "data_source_name": "Json"
    },{
        "id": 66,
        "data_source_name": "SAP"
    },{
        "id": 68,
        "data_source_name": "1C"
    }
]

Parameter values contain the following information about credentials to access to data source:

See also:

Server API