Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Profiles: Retrieve accessible profiles

Natasa Bulatovic edited this page Jul 9, 2015 · 1 revision

##GET /profiles

  • Retrieves a list of metadata profiles accessible to the user (authorization optional).

###Parameters

####Example request to retrieve all Profiles curl http://<base-url-rest-api>/profiles

####Example request to retrieve profiles filtered by query curl http://<base-url-rest-api>/profiles?q=test

####Response JSON Formatted list of Profiles

####Response status codes

  • 200 OK Successful operation

####Response example

    [  
{  
    "id":"4YHANYtx6GkupX4M",
    "createdBy":{  
        "fullname":"imeji, admin",
        "userId":"WuExL7x5lGcyZpU"
    },
    "modifiedBy":{  
        "fullname":"imeji, admin",
        "userId":"WuExL7x5lGcyZpU"
    },
    "createdDate":"2015-06-25T15:16:21 +0200",
    "modifiedDate":"2015-06-25T15:16:21 +0200",
    "versionDate":"",
    "status":"PENDING",
    "version":0,
    "discardComment":"",
    "title":"1082 (Metadata profile)",
    "description":"",
    "statements":[  

    ],
    "default":false
},
{  
    "id":"EL2y5mR28CyZAcrg",
    "createdBy":{  
        "fullname":"imeji, admin",
        "userId":"WuExL7x5lGcyZpU"
    },
    "modifiedBy":{  
        "fullname":"imeji, admin",
        "userId":"WuExL7x5lGcyZpU"
    },
    "createdDate":"2015-06-24T13:39:38 +0200",
    "modifiedDate":"2015-06-24T13:39:38 +0200",
    "versionDate":"",
    "status":"PENDING",
    "version":0,
    "discardComment":"",
    "title":"1093 (Metadata profile)",
    "description":"",
    "statements":[  

    ],
    "default":false
},
{  
    "id":"sgp6cqtxRHZgIUgh",
    "createdBy":{  
        "fullname":"Schubert, Daniel",
        "userId":"31QSd9UYeKOGgysS"
    },
    "modifiedBy":{  
        "fullname":"Schubert, Daniel",
        "userId":"31QSd9UYeKOGgysS"
    },
    "createdDate":"2015-05-04T16:50:44 +0200",
    "modifiedDate":"2015-05-04T16:52:18 +0200",
    "versionDate":"",
    "status":"PENDING",
    "version":0,
    "discardComment":"",
    "title":"advancedSearchTest (Metadata profile)",
    "description":"",
    "statements":[  
        {  
            "id":"SE2ysZjh05x3qn6",
            "pos":0,
            "type":"http://imeji.org/terms/metadata#text",
            "labels":[  
                {  
                    "value":"Text",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        },
        {  
            "id":"kV4B9u6DhjFQRbRW",
            "pos":1,
            "type":"http://imeji.org/terms/metadata#number",
            "labels":[  
                {  
                    "value":"Number",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        },
        {  
            "id":"_6pfZO4OSBzbjAG",
            "pos":2,
            "type":"http://imeji.org/terms/metadata#conePerson",
            "labels":[  
                {  
                    "value":"Person",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        },
        {  
            "id":"kb6uxjIx1gviHrcB",
            "pos":3,
            "type":"http://imeji.org/terms/metadata#date",
            "labels":[  
                {  
                    "value":"Date",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        },
        {  
            "id":"PMf0UNDn9wXG_78",
            "pos":4,
            "type":"http://imeji.org/terms/metadata#geolocation",
            "labels":[  
                {  
                    "value":"Geolocation",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        },
        {  
            "id":"SNmAih2rHDLkv6gw",
            "pos":5,
            "type":"http://imeji.org/terms/metadata#license",
            "labels":[  
                {  
                    "value":"License",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        },
        {  
            "id":"_vIEG18iTGqTfuv",
            "pos":6,
            "type":"http://imeji.org/terms/metadata#link",
            "labels":[  
                {  
                    "value":"Link",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        },
        {  
            "id":"m_6Z42g33BQYjXx0",
            "pos":7,
            "type":"http://imeji.org/terms/metadata#publication",
            "labels":[  
                {  
                    "value":"Publication",
                    "lang":"en"
                }
            ],
            "vocabulary":null,
            "literalConstraints":[  

            ],
            "minOccurs":"0",
            "maxOccurs":"1",
            "parentStatementId":null,
            "useInPreview":true
        }
    ],
    "default":false
}
]
Clone this wiki locally