api docs format updates

This commit is contained in:
John Woodlock
2013-02-05 15:26:16 +00:00
parent ba14e1bb01
commit e7819f6c25
+103 -35
View File
@@ -3336,11 +3336,17 @@ GET https://DomainName/api/v1/datatables
POST https://DomainName/api/v1/datatables/register/{datatable}/{apptable} POST https://DomainName/api/v1/datatables/register/{datatable}/{apptable}
</code> </code>
<code class="method-request"> <code class="method-request">
POST datatables/register/NewTable/m_client POST datatables/register/userDefinedTableName/m_client
Content-Type: application/json Request Body: { }
Content-Type: application/json
Request Body:
{}
</code> </code>
<code class="method-response"> <code class="method-response">
{ "resourceId": null } </code> {
"resourceId": null
}
</code>
</div> </div>
</div> </div>
@@ -3357,9 +3363,18 @@ Content-Type: application/json Request Body: { }
<code class="method-declaration"> <code class="method-declaration">
POST https://DomainName/api/v1/datatables/deregister/{datatable} POST https://DomainName/api/v1/datatables/deregister/{datatable}
</code> </code>
<code class="method-request">POST datatables/register/New <code class="method-request">
Table Content-Type: application/json Request Body: { } </code> POST datatables/deregister/userDefinedTableName
<code class="method-response">{ "resourceId": null } </code>
Content-Type: application/json
Request Body:
{}
</code>
<code class="method-response">
{
"resourceId": null
}
</code>
</div> </div>
</div> </div>
@@ -3380,13 +3395,28 @@ POST https://DomainName/api/v1/datatables/deregister/{datatable}
<code class="method-declaration"> <code class="method-declaration">
POST https://DomainName/api/v1/datatables/{datatable}/{apptableId} POST https://DomainName/api/v1/datatables/{datatable}/{apptableId}
</code> </code>
<code class="method-request">POST datatables/Additional <code class="method-request">
Client Fields Data/1 Content-Type: application/json Request Body: POST datatables/Additional Client Fields Data/1
{ "Business Description": "Livestock sales", Comment: "First
comment\nmade", Education_cv: "Trade", Gender_cd: "21", "Highest Content-Type: application/json
Rate Paid": "8.5", "Next Visit": "01 October 2012", "Years in Request Body:
Business": "5", dateFormat: "dd MMMM yyyy", locale: "en" } </code> {
<code class="method-response">{ "resourceId": 1 } </code> "Business Description": "Livestock sales",
Comment: "First comment\nmade",
Education_cv: "Trade",
Gender_cd: "21",
"Highest Rate Paid": "8.5",
"Next Visit": "01 October 2012",
"Years in Business": "5",
dateFormat: "dd MMMM yyyy",
locale: "en"
}
</code>
<code class="method-response">
{
"resourceId": 1
}
</code>
</div> </div>
</div> </div>
@@ -3435,11 +3465,20 @@ POST https://DomainName/api/v1/datatables/{datatable}/{apptableId}
<code class="method-declaration"> <code class="method-declaration">
GET https://DomainName/api/v1/datatables/{datatable}/{apptableId} GET https://DomainName/api/v1/datatables/{datatable}/{apptableId}
</code> </code>
<code class="method-response">[ {"client_id": 1, "Business <code class="method-response">
Description": "Livestock sales", "Years in Business": 5, [
"Gender_cd": "21", "Education_cv": "Trade", "Next Visit": [2012, {
10, 1], "Highest Rate Paid": 8.500000, "Comment": "First comment "client_id": 1,
made"} ] </code> "Business Description": "Livestock sales",
"Years in Business": 5,
"Gender_cd": "21",
"Education_cv": "Trade",
"Next Visit": [2012, 10, 1],
"Highest Rate Paid": 8.500000,
"Comment": "First comment made"
}
]
</code>
</div> </div>
</div> </div>
@@ -3455,13 +3494,23 @@ GET https://DomainName/api/v1/datatables/{datatable}/{apptableId}
<code class="method-declaration"> <code class="method-declaration">
PUT https://DomainName/api/v1/datatables/{datatable}/{apptableId} PUT https://DomainName/api/v1/datatables/{datatable}/{apptableId}
</code> </code>
<code class="method-request">PUT datatables/Additional <code class="method-request">
Client Fields Data/1 Content-Type: application/json Request Body: PUT datatables/Additional Client Fields Data/1
{ "Business Description": "Livestock sales updated", Comment:
"First comment\nmade", Education_cv: "Trade", Gender_cd: "21", Content-Type: application/json
"Highest Rate Paid": "8.5", "Next Visit": "01 October 2012", Request Body:
"Years in Business": "5", dateFormat: "dd MMMM yyyy", locale: "en" {
} </code> "Business Description": "Livestock sales updated",
Comment: "First comment\nmade",
Education_cv: "Trade",
Gender_cd: "21",
"Highest Rate Paid": "8.5",
"Next Visit": "01 October 2012",
"Years in Business": "5",
dateFormat: "dd MMMM yyyy",
locale: "en"
}
</code>
<code class="method-response">{ "resourceId": 1 } </code> <code class="method-response">{ "resourceId": 1 } </code>
</div> </div>
</div> </div>
@@ -3477,11 +3526,21 @@ PUT https://DomainName/api/v1/datatables/{datatable}/{apptableId}
<code class="method-declaration"> <code class="method-declaration">
PUT https://DomainName/api/v1/datatables/{datatable}/{apptableId}/{datatableId} PUT https://DomainName/api/v1/datatables/{datatable}/{apptableId}/{datatableId}
</code> </code>
<code class="method-request">PUT datatables/Extra Family <code class="method-request">
Details Data/1/2 Content-Type: application/json Request Body: { PUT datatables/Extra Family Details Data/1/2
"Date of Birth": "01 June 1982", Education_cdHighest: "5", Name:
"June", "Other Notes": "More\nnotes", "Points Score": "20", Content-Type: application/json
dateFormat: "dd MMMM yyyy", locale: "en" } </code> Request Body:
{
"Date of Birth": "01 June 1982",
Education_cdHighest: "5",
Name: "June",
"Other Notes": "More\nnotes",
"Points Score": "20",
dateFormat: "dd MMMM yyyy",
locale: "en"
}
</code>
<code class="method-response">{ "resourceId": 1 } </code> <code class="method-response">{ "resourceId": 1 } </code>
</div> </div>
</div> </div>
@@ -3502,9 +3561,14 @@ PUT https://DomainName/api/v1/datatables/{datatable}/{apptableId}/{datatableId}
<code class="method-declaration"> <code class="method-declaration">
DELETE https://DomainName/api/v1/datatables/{datatable}/{apptableId} DELETE https://DomainName/api/v1/datatables/{datatable}/{apptableId}
</code> </code>
<code class="method-request">DELETE datatables/Additional <code class="method-request">
Client Fields Data/1 Content-Type: application/json Request Body: DELETE datatables/Additional Client Fields Data/1
{ } </code>
Content-Type: application/json
Request Body:
{}
</code>
<code class="method-response">{ "resourceId": 1 } </code> <code class="method-response">{ "resourceId": 1 } </code>
</div> </div>
</div> </div>
@@ -3521,8 +3585,12 @@ DELETE https://DomainName/api/v1/datatables/{datatable}/{apptableId}
<code class="method-declaration"> <code class="method-declaration">
DELETE https://DomainName/api/v1/datatables/{datatable}/{apptableId}/{datatableId} DELETE https://DomainName/api/v1/datatables/{datatable}/{apptableId}/{datatableId}
</code> </code>
<code class="method-request">DELETE datatables/Extra Family <code class="method-request">
Details Data/1/2 Content-Type: application/json Request Body: { } DELETE datatables/Extra Family Details Data/1/2
Content-Type: application/json
Request Body:
{}
</code> </code>
<code class="method-response">{ "resourceId": 1 } </code> <code class="method-response">{ "resourceId": 1 } </code>
</div> </div>