HomeTyk Advanced Management API v0.9Portal Developers

Portal Developers

List developers

Property Description
Resource URL /api/portal/developers
Method GET
Type None
Body None
Param None

Sample Request

GET /api/portal/developers HTTP/1.1
Host: localhost
authorization:7a7b140f-2480-4d5a-4e78-24049e3ba7f8

Sample Response:

{
    "Data": [
        {
            "_id": "554c733a30c55e4b16000002",
            "api_keys": {
                "b605a6f03cc14f8b74665452c263bf19": "90568dfa"
            },
            "date_created": "2015-05-08T04:26:34.287-04:00",
            "email": "[email protected]",
            "fields": {
                "Name": "Mondgo Brtian",
                "custom1": "Test",
                "custom2": "Test"
            },
            "inactive": false,
            "org_id": "53ac07777cbb8c2d53000002",
            "password": "$2a$10$ztUTWXmyrK6B5fdKoisohuhZlQ3P1weQZ2CBwR6HYw1rWyiBJ7ZSW"
        },
        {
            "_id": "5555ec63a8b6b60001000001",
            "api_keys": {},
            "date_created": "2015-05-15T08:53:54.873-04:00",
            "email": "[email protected]",
            "fields": {
                "Name": "Tes",
                "custom1": "",
                "custom2": ""
            },
            "inactive": false,
            "org_id": "53ac07777cbb8c2d53000002",
            "password": "$2a$10$8mGEdcow4dwVDAt4If.Sieps57oGZDwEVvwTNYq1J8FLba4fHw9Nu"
        },
        ...
    ],
    "Pages": 1
}

List developers by API

Property Description
Resource URL /api/portal/developers/api/{apiID}
Method GET
Type None
Body None
Param None

Sample Request

GET /api/portal/developers/api/ HTTP/1.1
Host: localhost
authorization:7a7b140f-2480-4d5a-4e78-24049e3ba7f8

Sample Response:

{
    "Data": [
        {
            "_id": "554c733a30c55e4b16000002",
            "api_keys": {
                "b605a6f03cc14f8b74665452c263bf19": "9184c7d0"
            },
            "date_created": "2015-05-08T04:26:34.287-04:00",
            "email": "[email protected]",
            "fields": {
                "Name": "Mondgo Britain",
                "custom1": "Test",
                "custom2": "Test"
            },
            "inactive": false,
            "org_id": "53ac07777cbb8c2d53000002",
            "password": "$2a$10$ztUTWXmyrK6B5fdKoisohuhZlQ3P1weQZ2CBwR6HYw1rWyiBJ7ZSW"
        },
        {
            "_id": "5555ef2e24cb3e0001000001",
            "api_keys": {
                "b605a6f03cc14f8b74665452c263bf19": "90e670bc"
            },
            "date_created": "2015-05-15T09:05:50.675-04:00",
            "email": "[email protected]",
            "fields": {
                "Name": "Martin",
                "custom1": "test",
                "custom2": "test"
            },
            "inactive": false,
            "org_id": "53ac07777cbb8c2d53000002",
            "password": "$2a$10$MH.nxHBneFuuGTrVgfxeRecgmYNHVHm8Bo7DWVqY5o2anlPgJ2zWa"
        }
    ],
    "Pages": 0
}

Update a developer record

Property Description
Resource URL /api/portal/developers/{id}
Method PUT
Type None
Body Developer Object
Param None

Sample Request

GET /api/portal/developers/5555eceda8b6b60001000004 HTTP/1.1
Host: localhost
authorization:7a7b140f-2480-4d5a-4e78-24049e3ba7f8

{
    "id": "5555eceda8b6b60001000004",
    "email": "[email protected]",
    "password": "$2a$10$hlG1ujAHWUpnM37k.l1RhO6RrxkCpXki2yrGhufnDs1IBiUo4Kzqy",
    "date_created": "2015-05-15T08:56:13.257-04:00",
    "inactive": false,
    "org_id": "53ac07777cbb8c2d53000002",
    "api_keys": {
        "b605a6f03cc14f8b74665452c263bf19":"90568dfa"
    },
    "fields": {
        "Name": "",
        "custom1": "",
        "custom2": ""
    }
}

Sample Response:

{
    "Status":"OK",
    "Message":"Data updated",
    "Meta":""
}

Delete a developer

Property Description
Resource URL /api/portal/developers
Method DELETE
Type None
Body None
Param None

Sample Request

DELETE /api/portal/developers/554c733a30c55e4b16000002 HTTP/1.1
Host: localhost
authorization:7a7b140f-2480-4d5a-4e78-24049e3ba7f8

Sample Response:

{
    "Status":"OK",
    "Message":"Data deleted",
    "Meta":""
}
Was this article helpful to you? Yes No