Questions tagged [overcoat]

Overcoat is a small but powerful library that makes creating REST clients simple and fun. It provides a simple API for making requests and mapping responses to model objects.

Overcoat is a small but powerful library that makes creating REST clients simple and fun. It provides a simple API for making requests and mapping responses to model objects.

Overcoat is built on top of AFNetworking and uses Mantle to map responses into plain or Core Data model objects.

8 questions
5
votes
1 answer

iOS Mantle + Overcoat

I'm looking at the Overcoat library which from what I gather is a library that extends the Mantle library. Mantle: https://github.com/Mantle/Mantle/ Overcoat: https://github.com/gonzalezreal/Overcoat The Mantle and Overcoat github pages keeps…
Zhang
  • 11,549
  • 7
  • 57
  • 87
3
votes
0 answers

Overcoat - Mapping multiple types of server responses

I cannot figure out how to map the response array when the response JSON has different envelope keys: EXAMPLE Responses: "response": { "currencies": [ { "id": 5, "name": "British Pound", "shortName": "GBP", …
1
vote
1 answer

Parse JSON with Mantle which has Root Keys

I try to parse the JSON I get from a REST-Webservice. Seat.json: {"seat":{ "row":1, "seatNr":1, "seatId":5782}} My MTLModel (This does not work. Because there is a seat in front of the json fields.) + (NSDictionary…
jussi
  • 2,166
  • 1
  • 22
  • 37
1
vote
0 answers

Simplified Core Data Stack using Mantle, Overcoat, and Magical Record in union

I've designed a core data stack based on this blog post (in Swift) where I have two NSManagedObjectContext instances, a Main Queue Context (NSMainQueueConcurrencyType) and a Private Queue Context (NSPrivateQueueConcurrencyType) where the main…
barndog
  • 6,975
  • 8
  • 53
  • 105
1
vote
1 answer

How to auto map to mantle model class in case of envelop response with overcoat?

I am using mantle for model mapping and overcoat for network request. Overcoat auto map the result to model, but when there is envelope response, I am able to get custom Overcoat response. But problem is the Overcoat response is NSCFDictionary…
live_alone
  • 159
  • 1
  • 11
0
votes
1 answer

How to use sub dictionary in Mantle with Overcoat?

I decided to use Mantle to consume some JSON endpoints, but the structure of the JSON is different depending on whether you're GETing or POSTing an object. Take the users endpoint for instance: When requesting a user you get a response similar to…
Erik B
  • 40,889
  • 25
  • 119
  • 135
0
votes
1 answer

Send error from doNext block?

I'm using ReactiveCocoa and Overcoat/Mantle/AFNetworking to fetch data and authenticate a user from a RESTful API. This is the code in the login view controller that manages the login button and textfields for…
0
votes
1 answer

Overcoat custom server response for each resource path mapping to a class

I am attempting to consume a REST service in an iOS app. I am using Overcoat. In my OVCHTTPRequestOperationManager subclass I have the following: + (NSDictionary *)modelClassesByResourcePath { return @{ @"users/*" : [SCUser class], …
Tiago Veloso
  • 8,513
  • 17
  • 64
  • 85