Skip to content

Commit

Permalink
Projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdigital committed Jan 27, 2015
1 parent a3b6fe9 commit f539730
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions Track/APIs/Projects.md
Expand Up @@ -4,6 +4,7 @@

Stable.


## GET /projects

Returns the list of projects accessible by the user
Expand Down Expand Up @@ -58,11 +59,46 @@ Creates a new project
* 406 Duplicated

### Example
POST `https://track.timeneye.com/api/3/projects`
GET `https://track.timeneye.com/api/3/projects/1245`
Post Data: name=My+Test+Project

API returns:

{
"projectId":1014
"id":1014
}


## GET /projects/[ID]/

Returns project's details. Some details are shown only to PMs and admins.

### Returns
* HTTP Code: 200 OK
* id (int)
* name (string)
* isActive (tinyint)
* clientId (int, PMs only)
* clientName (int, PMs only)
* hourlyRate (int, PMs only)
* budgetMinutes (int, PMs only)

### Errors
* 400 Bad Request: missing required parameters
* 401 Unauthorized: authToken not valid

### Example
GET `https://track.timeneye.com/api/3/projects/1323`

API returns:

{
"id":"1014",
"name":"Ciccio Pasticcio2",
"isActive":"1",
"clientId":"-1",
"clientName":"",
"isBillable":"0",
"hourlyRate":"0.00",
"budgetMinutes":"0"
}

0 comments on commit f539730

Please sign in to comment.