Skip to content
Borja Gorriz edited this page Sep 23, 2013 · 3 revisions

Base URL: api/dime/rest/{mainSaId}/place

Method Path Description
GET @me/@all Returns a collection of all places the user has.
POST @me Creates a new place.
GET @me/{Pid} Returns a specific place.
POST @me/{Pid} Updates a specific place.
DELETE @me/{Pid} Deletes a specific place.

Parameters:

  • personId: Id of an specific person. It includes @me.
  • Pid: Id of an specific profile OR profile card.
  • agentId: Id of a specific agent.
  • serviceId: Id of a specific service

Examples:

  • Call: api/dime/rest/5b223cde-07e5-4987-b531-231876fa7601/place/@me/@all
  • Response:

{
    "response": {
        "meta": {
            "v": "0.9",
            "status": "OK",
            "code": 200,
            "timeRef": 1366193640900,
            "msg": ""
        },
        "data": {
            "startIndex": 0,
            "itemsPerPage": 0,
            "totalResults": 0,
            "entry": [
                {
                    "guid": "currentPlace",
                    "type": "context",
                    "entity": {
                        "type": "username",
                        "id": "5b223cde-07e5-4987-b531-231876fa7601"
                    },
                    "scope": "currentPlace",
                    "source": {
                        "id": "mobile-crawler|desktop-crawler",
                        "v": "1.0"
                    },
                    "timestamp": "2013-04-17T12:13:11+02:00",
                    "expires": "2013-04-17T12:15:11+02:00",
                    "dataPart": {
                        "placeId": "ametic:6Rj/8qZB3xywxNKghBhBgA==",
                        "placeName": "Institute of Human Factors and Technology Management IAT"
                    }
                }
            ]
        }
    }
}

Clone this wiki locally