tnc-ba / strongTNC

BYOD TNC Database Management Tool
GNU Affero General Public License v3.0
0 stars 0 forks source link

API camelcase #199

Closed dbrgn closed 10 years ago

dbrgn commented 10 years ago

Automatically convert API fields to/from camelCase.

Please review, @cfaessler.

dbrgn commented 10 years ago

@cfaessler maybe you need to adjust your test script.

dbrgn commented 10 years ago

Additionally, the last commit renames the "url" fields to "uri".

dbrgn commented 10 years ago

Btw, @d22, an url field would just be as appropriate as an uri field:

A URI can be further classified as a locator, a name, or both. The term "Uniform Resource Locator" (URL) refers to the subset of URIs that, in addition to identifying a resource, provide a means of locating the resource by describing its primary access mechanism (e.g., its network "location").

cfaessler commented 10 years ago

Did i get that right, all serialized fields should now be camelCase? api_camelcase

dbrgn commented 10 years ago

Fields yes, but the root endpoint is an exception. It does not list database fields, but resource endpoints, which in turn use dashes instead of camelCase.