<div dir="ltr">We cannot go back and change past APIs, but standardization would be nice for future APIs such as nova V3.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 1:20 PM, Balamurugan V G <span dir="ltr"><<a href="mailto:balamuruganvg@gmail.com" target="_blank">balamuruganvg@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I see that the REST API using both the camelCase and underscore separated names for the JSON attributes. An example is below:<br>

<br><br>curl  -X 'POST' <a href="http://1.1.1.1:5000/v2.0/tokens" target="_blank">http://1.1.1.1:5000/v2.0/tokens</a> -d '{"auth":{"passwordCredentials":{"username": "admin", "password":"admin_pass"}, "tenantName":"test"}}' -H 'Content-type: application/json'<br>


{"access": {"token": {"expires": "2013-05-18T06:10:07Z", "id": "d92aebd5112f44b9b13dfabbf4283110", "tenant": {"enabled": true, "description": null, "name": "automation", "id": "4a8c3029619e4afbaa39f85fcd121003"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "<a href="http://2.2.2.2:8774/v2/4a8c3029619e4afbaa39f85fcd121003" target="_blank">http://2.2.2.2:8774/v2/4a8c3029619e4afbaa39f85fcd121003</a>", "region": "RegionOne", "internalURL": "<a href="http://2.2.2.2:8774/v2/4a8c3029619e4afbaa39f85fcd121003" target="_blank">http://2.2.2.2:8774/v2/4a8c3029619e4afbaa39f85fcd121003</a>", "id": "5c3598dc6b384a598046471858b55417", "publicURL": "<a href="http://1.1.1.1:8774/v2/4a8c3029619e4afbaa39f85fcd121003" target="_blank">http://1.1.1.1:8774/v2/4a8c3029619e4afbaa39f85fcd121003</a>"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "<a href="http://2.2.2.2:9696/" target="_blank">http://2.2.2.2:9696/</a>", "region": "RegionOne", "internalURL": "<a href="http://2.2.2.2:9696/" target="_blank">http://2.2.2.2:9696/</a>", "id": "18ffe92b8db242d8b39991b4dceafe6c", "publicURL": "<a href="http://1.1.1.1:9696/" target="_blank">http://1.1.1.1:9696/</a>"}], "endpoints_links": [], "type": "network", "name": "quantum"}, {"endpoints": [{"adminURL": "<a href="http://2.2.2.2:9292/v2" target="_blank">http://2.2.2.2:9292/v2</a>", "region": "RegionOne", "internalURL": "<a href="http://2.2.2.2:9292/v2" target="_blank">http://2.2.2.2:9292/v2</a>", "id": "91bce3f20f704165bd430629a1446baf", "publicURL": "<a href="http://1.1.1.1:9292/v2" target="_blank">http://1.1.1.1:9292/v2</a>"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "<a href="http://2.2.2.2:8776/v1/4a8c3029619e4afbaa39f85fcd121003" target="_blank">http://2.2.2.2:8776/v1/4a8c3029619e4afbaa39f85fcd121003</a>", "region": "RegionOne", "internalURL": "<a href="http://2.2.2.2:8776/v1/4a8c3029619e4afbaa39f85fcd121003" target="_blank">http://2.2.2.2:8776/v1/4a8c3029619e4afbaa39f85fcd121003</a>", "id": "710bb818196f4f06a12f4efc4e32b47a", "publicURL": "<a href="http://1.1.1.1:8776/v1/4a8c3029619e4afbaa39f85fcd121003" target="_blank">http://1.1.1.1:8776/v1/4a8c3029619e4afbaa39f85fcd121003</a>"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "<a href="http://2.2.2.2:8773/services/Admin" target="_blank">http://2.2.2.2:8773/services/Admin</a>", "region": "RegionOne", "internalURL": "<a href="http://2.2.2.2:8773/services/Cloud" target="_blank">http://2.2.2.2:8773/services/Cloud</a>", "id": "01b49f1552dd486cba9499e567aa3774", "publicURL": "<a href="http://1.1.1.1:8773/services/Cloud" target="_blank">http://1.1.1.1:8773/services/Cloud</a>"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "<a href="http://2.2.2.2:35357/v2.0" target="_blank">http://2.2.2.2:35357/v2.0</a>", "region": "RegionOne", "internalURL": "<a href="http://2.2.2.2:5000/v2.0" target="_blank">http://2.2.2.2:5000/v2.0</a>", "id": "f6305996eb8a49ff8fca9c40f1a78ae8", "publicURL": "<a href="http://1.1.1.1:5000/v2.0" target="_blank">http://1.1.1.1:5000/v2.0</a>"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "b254901420994f3895fed48073761b00", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["55e3d24acce64b8bb29955945de47d21"]}}}<br>


<br>For example, 'publicURL' and 'endpoint_links'.<br><br>Is there any plan/blueprint to standardize on one naming convention?<br><br>Regards,<br>Balu<br>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>