Skip to content

Commit

Permalink
New definitions! \o/!
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonNguyen committed Sep 13, 2012
1 parent 7788eeb commit 6b9604d
Showing 1 changed file with 59 additions and 17 deletions.
76 changes: 59 additions & 17 deletions js/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ var apiResources = {
],
"list":[
"page", "per_page", "client_id", "date_from", "date_to", "folder", "order"
],
"invoice":[
{"expenses": [
{"expense": [
"expense_id"
]}
]}
]
},

Expand Down Expand Up @@ -289,7 +296,7 @@ var apiResources = {
"invoice_id"
],
"list":[
"page", "per_page", "client_id", "recurring_id", "status", "date_from", "date_to",
"page", "per_page", "client_id", "recurring_id", "status", "date_from", "date_to",
"updated_from", "updated_to", "folder", "order"
],
"getPDF": [
Expand Down Expand Up @@ -415,13 +422,23 @@ var apiResources = {
]}
],
"get":[
"project_id"
"project_id",
{"includes":[
{"include":[
"name"
]}
]}
],
"delete":[
"project_id"
],
"list":[
"page", "per_page", "order"
"page", "per_page", "order",
{"includes":[
{"include":[
"name"
]}
]}
]
},

Expand All @@ -443,7 +460,7 @@ var apiResources = {
"contact_id"
]}
]},
"date", "po_number", "discount", "occurrences", "frequency", "send_email",
"date", "po_number", "discount", "occurrences", "frequency", "send_email",
"send_snail_mail", "notes", "currency_code", "language", "terms", "return_uri",
"first_name", "last_name", "organization", "p_street1", "p_street2", "p_city",
"p_state", "p_country", "p_code", "vat_name", "vat_number", "return_uri",
Expand Down Expand Up @@ -487,7 +504,7 @@ var apiResources = {
]},
{"lines":[
{"line":[
"name", "description", "unit_cost", "quantity", "tax1_name", "tax2_name",
"line_id", "name", "description", "unit_cost", "quantity", "tax1_name", "tax2_name",
"tax1_percent", "tax2_percent", "compound_tax", "type"
]}
]}
Expand Down Expand Up @@ -544,10 +561,35 @@ var apiResources = {
},

"staff":{
"create":[
{"staff":[
"first_name", "last_name", "email", "username", "password", "email_credentials", "country", "state", "city", "street1", "street2",
"code", "home_phone", "business_phone", "mobile_phone", "fax", "rate",
{"projects":[
{"project":[
"project_id"
]}
]}
]}
],
"update":[
{"staff":[
"staff_id", "first_name", "last_name", "email", "username", "password", "email_credentials", "country", "state", "city", "street1", "street2",
"code", "home_phone", "business_phone", "mobile_phone", "fax", "rate",
{"projects":[
{"project":[
"project_id"
]}
]}
]}
],
"current":[],
"get":[
"staff_id"
],
"delete":[
"staff_id"
],
"list":[
"page", "per_page", "order"
]
Expand All @@ -565,12 +607,12 @@ var apiResources = {
"current":[],
"create":[
{"system":[
"name",
"email",
"username",
"password",
"first_name",
"last_name",
"name",
"email",
"username",
"password",
"first_name",
"last_name",
{"address" : [
"street_1", "street_2", "city", "province", "country", "postal_code"
]},
Expand All @@ -584,12 +626,12 @@ var apiResources = {
"getRecentActivity":[],
"update":[
{"system":[
"name",
"email",
"username",
"password",
"first_name",
"last_name",
"name",
"email",
"username",
"password",
"first_name",
"last_name",
{"address" : [
"street_1", "street_2", "city", "province", "country", "postal_code"
]},
Expand Down

0 comments on commit 6b9604d

Please sign in to comment.