Show

Retrieving a single record is simply a matter of hitting the appropriate URL with a HTTP GET. Record retrieval via show requires knowledge of the record ID. It is more appropriate to use the list action is when searching is required. For example, hitting a URL of the form:

https://rxg.dns/admin/scaffolds/accounts/show/3.json?api_key=P7Z...idA

Results in the rXg retrieving the account with record ID 3 and sending a response of the form: {"address1":null,"address2":null,"automatic_login":null,"bill_at":null, "city":null,"company":null,"country":null,"created_at":"2012-05-10T11:41:40-04:00", "created_by":null,"email":"[email protected]","first_name":"Colin","id":3, "last_name":"Patterson","lock_devices":null,"logged_in_at":"2012-05-08T01:24:51-04:00", "login":"cpatterson746","note":"Automatically generated by script run by root\n", "phone":"4997197472","region":null,"state":"active", "updated_at":"2012-05-10T11:41:40-04:00","updated_by":null, "usage_expiration":null,"usage_minutes":28180,"zip":null} Similarly hitting a URL of the form: https://rxg.dns/admin/scaffolds/accounts/show/3.xml?api_key=P7Z...idA Results in a response of the form: <account> <address1 nil="true"/> <address2 nil="true"/> <automatic-login type="boolean" nil="true"/> <bill-at type="datetime" nil="true"/> <charge-attempted-at type="datetime" nil="true"/> <city nil="true"/> <company nil="true"/> <country nil="true"/> <created-at type="datetime">2012-05-10T11:41:40-04:00</created-at> <created-by nil="true"/> <crypted-password>V3QlqyDanC4/mfbe+tIN3Zpfzbs=</crypted-password> <email>[email protected]</email> <first-name>Colin</first-name> <id type="integer">3</id> <last-name>Patterson</last-name> <lock-mac type="boolean" nil="true"/> <lock-version type="integer">0</lock-version> <logged-in-at type="datetime">2012-05-08T01:24:51-04:00</logged-in-at> <login>cpatterson746</login> <mb-down type="integer">3747</mb-down> <mb-up type="integer">730</mb-up> <no-usage-expiration type="boolean">true</no-usage-expiration> <note>Automatically generated by script run by root</note> <phone>4997197472</phone> <pkts-down type="integer">251049192</pkts-down> <pkts-up type="integer">70080583</pkts-up> <region nil="true"/> <relative-usage-lifetime type="integer" nil="true"/> <salt>964fbe3ceea48ac7a1960bc99bed912f0cafae53</salt> <state>active</state> <unlimited-usage-mb-down type="boolean">false</unlimited-usage-mb-down> <unlimited-usage-mb-up type="boolean">false</unlimited-usage-mb-up> <unlimited-usage-minutes type="boolean">false</unlimited-usage-minutes> <updated-at type="datetime">2012-05-10T11:41:40-04:00</updated-at> <updated-by nil="true"/> <usage-expiration type="datetime" nil="true"/> <usage-mb-down type="integer">1372</usage-mb-down> <usage-mb-up type="integer">293</usage-mb-up> <usage-minutes type="integer">28180</usage-minutes> <usage-plan-id type="integer">1</usage-plan-id> <zip nil="true"/> </account>


Cookies help us deliver our services. By using our services, you agree to our use of cookies.