ApiModel icon indicating copy to clipboard operation
ApiModel copied to clipboard

Interact with API's using Realm (realm.io) and REST

Results 11 ApiModel issues
Sort by recently updated
recently updated
newest added

At this moment the use of namespace on model is mandatory. In addition, the namespace is shared between both request and response. It can happen that in some cases you...

Not sure if I'm doing something wrong, but I have a request whose response is a simple array of dictionaries and it fails to map. I have resolved this by...

A builder is a class that takes care of parsing response objects into meaningful models. They should be able to be defined on an entire model, but also per request

feature

Our API's return object associated objects. Is it possible for multiple object types to be mapped for one endpoint?

Server responses don't always use keys you'd like to use in your code. This could be handled by creating private vars in classes and public vars which are wrappers, but...

https://github.com/erkie/ApiModel/pull/24 demonstrates 500 errors that are not "invalid". Was this intentional? Should we make invalid responses include 500 status codes? Should it be handled differently?

This PR -> https://github.com/erkie/ApiModel/pull/29, shows how validation errors are lost. But the question is who should own knowning what a validation error means? ApiModel or the implementer? Should ApiModel conform...

If a server response for a findArray call is not a success, only an empty array is returned, and no way to distinguish that something went wrong. Thoughts on this?...

Implement a testing framework and write tests to test base functionality.

feature

If the API has a standard of using `snake_case` but in Swift we use `camelCase`, create case converters that can be configured globally and locally.

feature