Reviewing and Testing the Endpoints
The endpoints are not one-to-one with the apps we’ll build; in fact, both the Android and Xamarin apps use the currency-conversion endpoint, and the React Native app uses the notes endpoints and the reverse geocode endpoint.
I recommend testing the API endpoints to make sure you’re getting back what you expect. You can use any HTTP client, such as Postman.[19] You just need to be able to set the Content-Type and Accept HTTP headers to application/json. I’ve provided examples in the following sections using curl.
Time Zones
The /clock/time_zones endpoint is pretty simple. It returns a list of all the time zones that Rails knows about, decorated with a little extra display information.
If you call
| $ curl ... |
Get Seven Mobile Apps in Seven Weeks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.