-
Notifications
You must be signed in to change notification settings - Fork 10
Projects request
Svyatoslav Reyentenko edited this page Jan 21, 2013
·
3 revisions
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"
}
]
}
Path: /rest/projects/(id)
Method: GET
Parameter: id - project id