Releases: Gujci/RESTAPI
Package manager fixes
Minor bugfix
UIImage ValidResponseData extension fixed
JSON decoder support
JSON decoders now can be added for types requiring custom decoders
JSONDecoderStore[MyType] = myCustomDecoderBinary support
- Support for caching responses added
- UIImage extension provided for image download
- SPM support added
Util classes
Response util class added to give an example how responses can be wrapped.
0.10 + Throwable init
Latest release extended,init(withJSON data:JSON) can throw now.
0.10 interface fixes
0.10.1 - explicit status added
Callback type changes
Status code
The role of the APIError has been changed. Now the same parameter used to represent all status codes. Because of this change, validating the nil error is no longer valid, use status.isSuccess() instead
Codable support
A Codable type now can be bot valid request and response data. In order to reduce code, Array also can be valid request data. However there was a tradeoff, the type of the return value has to be marked explicitly, even if it is not used.
Extended query support
Custom dictionary is now conform to Queryable.
Image upload & multipart data
Read docs for details