I created this simple app to learn how to use the Networking tools in Swift, alongside with some JSON interpreters.
- Dictionary Interpreter with
[String: Any]
- JSONDecoder
- SwiftyJSON
Running the app causes it to perform a request to the PokéApi Berry Get By Id
endpoint. It then receives the JSON content and decodes it.
In total, 3 GET
requests are performed: 1 with URLSession
, 1 withAlamofire
and 1 with Moya
. Each content from the requests is then deserialized, using the above JSON Interpreters.