Skip to content
Svyatoslav Reyentenko edited this page Jan 21, 2013 · 3 revisions

Projects request

Path: /rest/projects

Method: GET

Example request:

GET /rest/projects
  • As a user that can create new projects:
{
    "items" : [
        {
            "isDeleted" : false,
            "creator" : "genesis",
            "creationTime" : 1358762290469,
            "name" : "foo",
            "id" : 1,
            "description" : "",
            "projectManager" : "bar",
            "links" : [
                { 
                    "href" : "/rest/projects/1",
                    "rel":"self",
                    "type":"application/vnd.griddynamics.genesis.Project+json"
                }
            ]
        }
    ],
    "links" : [
        {
            "href" : "/rest/projects",
            "rel" : "self",
            "type":"application/vnd.griddynamics.genesis.Project+json",
            "methods": ["get", "post"]
        }
    ]
}
  • As a user that can not create new projects:
{
    "items" : [
        {
            "isDeleted" : false,
            "creator" : "genesis",
            "creationTime" : 1358762290469,
            "name" : "foo",
            "id" : 1,
            "description" : "",
            "projectManager" : "bar",
            "links" : [
                { 
                    "href" : "/rest/projects/1",
                    "rel":"self",
                    "type":"application/vnd.griddynamics.genesis.Project+json"
                }
            ]
        }
    ],
    "links" : [
        {
            "href" : "/rest/projects",
            "rel" : "self",
            "type":"application/vnd.griddynamics.genesis.Project+json"
        }
    ]
}

Project request

Path: /rest/projects/(id)

Method: GET

Parameter: id - project id

Clone this wiki locally