Questions tagged [restkit]

RestKit is an Objective-C framework for iOS that aims to make interacting with RESTful web services simple, fast and fun. It combines a clean, simple HTTP request/response API with a powerful object mapping system that reduces the amount of code you need to write to get stuff done.

Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

How to resolve the interference of the python tkinter application by global mouse events

I used the tkinter module of python and wrote a GUI program containing the Menu control. But at runtime, I found that when I clicked the menu, it displayed, but disappeared at once, unless I kept ...
Brant's user avatar
  • 1
1 vote
0 answers
45 views

Restkit: Native iOS Swift app crash in Xcode 12.5

When MKMapperOperation tries to map attribute value it throws an exception : Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<RestKitExample.xx0x600002d463e0> ...
MOHAMMAD ISHAQ's user avatar
0 votes
0 answers
277 views

Heroku app is suddenly giving a 503 via my API call

I have my API setup for my mobile app. I haven't changed anything on my ROR server running on Heroku and in my App I haven't changed the API call. I am using RestKit which which updated, but literally ...
jdog's user avatar
  • 10.5k
0 votes
1 answer
105 views

Error Domain=org.restkit.RestKit.ErrorDomain Code=-1011 "Expected status code in (200), got 504" - Only in real Device

RKObjectManager *manager = [RKObjectManager managerWithBaseURL:[NSURL URLWithString:BASE_URL]]; PPPSynchronization *synchObj = [[PPPSynchronization alloc] init]; [synchObj configureRestKitWithManager:...
Shamseer Ali's user avatar
0 votes
1 answer
232 views

null values for mapped attributes using RestKit for iOS and Swift

I am trying to execute POST request with JSON data to my API: My class implementation: class Person: NSObject { var theId: String? var countrycode: Int? var language: String? } Mapping ...
malhobayyeb's user avatar
  • 2,783
0 votes
1 answer
70 views

Xcode10.1 RestKit error _$s7RestKit11DynamicKeysVN

I am coming from a different coding language/tools and I am trying to learn xcode/swift. Sorry if this is a simple question. I was following some youtube video on making an app. I added a few pods, ...
Shin's user avatar
  • 13
6 votes
1 answer
170 views

Inconsistent results from setting the fetchOffset of NSFetchRequest in CoreData

I have the method below which gets a page of CoreData entities out. When I pass in a value for start I get inconsistent results. Sometimes it will page as I would expect, other times it really ...
Matt Fellows's user avatar
  • 6,522
0 votes
1 answer
52 views

RestKit Collection - The Proper Key Path?

I have the following JSON coming from my server... {"Devices": [ { "uuid": "d9084134-d5f7-43a3-9613-7faa769a822a", "label": "", "location": "a13d45f4-5ce0-48e3-bc3f-4076bb007037", "...
Etep's user avatar
  • 533
0 votes
1 answer
46 views

Adding RestKit framework into Cathrag

why the RestKit framework is not adding in the cathrage for IOS, I have followed the exact instructions from https://github.com/watson-developer-cloud/swift-sdk/ repo but not able to solve it. Kindly ...
Saud Bin Habib's user avatar
10 votes
1 answer
16k views

Copy file with swift

I am copying a file database with this code try fileManager.copyItem(atPath: storeURL.path, toPath: storeCopyURL.path) I can see that a new sqlite database is created later, when I try to use this ...
j.doe's user avatar
  • 4,639
0 votes
0 answers
75 views

"filteredArrayUsingPredicate" Taking time to respond

This is my code in which return [arrayToFilter filteredArrayUsingPredicate:dupObjPredicate]; is taking time to respond. + (NSArray *)removeDuplicatesInArray:(NSArray*)arrayToFilter{ NSMutableSet ...
Rahul Kashyap's user avatar
1 vote
1 answer
203 views

How is the RestKit related to the new Watson Conversation SDK? Linker Error?

I am going to update my customised sample based on Build a home assistant mobile application with Watson and IoT Platform services I did: carthage update --platform iOS did the pod install Using the ...
Thomas Suedbroecker's user avatar
1 vote
0 answers
34 views

Response 200OK but code enters the failure block in restkit

I have connected Charles to check the response of the call. The response header return 200OK but even then the code enters the failure block. Does it have to do anything with the way mapping is ...
A_G's user avatar
  • 2,280
0 votes
0 answers
17 views

Restkit doesn't load data on second request

I'm developing an ios app using restkit and core data to query json from a server. I noticed that the first time I open the app, restkit works properly, but the second time, it refuses to load any ...
Bill Yan's user avatar
  • 3,379
2 votes
1 answer
285 views

How to map a different JSON response for GET request with optional URL parameters

I need to perform a GET request to a url, with optional URL parameters. The basic URL looks something like http://host/user/explore, with the option of querying http://host/user/explore?who=VALUE&...
Priest's user avatar
  • 242
0 votes
1 answer
1k views

How to use RACObserve in swift

this new existing project is using Objective-C Code with RACObserve(Reactive cocoa ) to read api responses. I want to convert obj-c to swift . Current Obj-c Implementation is : @interface ...
sulabh's user avatar
  • 249
1 vote
0 answers
27 views

Mapping without KVC , RestKit version:0.27.0

I have a JSON data without a key on the top level, I need to POST it to our server, but how could I map that using RestKit (version: 0.27.0): e.g. [ { "title": "RestKit Object Mapping Intro", "...
boog's user avatar
  • 1,823
1 vote
2 answers
98 views

RestKit mapping with parent key as attribute and key contains parenthesis

Context: // JSON "Name_Field" : { "param_1":"value_1", "param_2":"value_2" } // Class class Field { name param1 param2 } // Mapping Functionality [mapping ...
egarlock's user avatar
  • 569
1 vote
0 answers
72 views

RestKit Object Mapping with large number of properties

I have used RKObjectMapping for parsing my JSON response using RestKit. For ex:. RKObjectMapping *menuItemMapping = [RKObjectMapping mappingForClass:[MenuCategoryItem_arr class]]; [menuItemMapping ...
Raj Gajera's user avatar
1 vote
0 answers
47 views

RESTKit null json response

With RESTKit I am making a GET request to receive an object but sometimes the server returns a response that is literally "null" with no object if there is no record in the database. The request fails ...
HawkEye1194's user avatar
0 votes
1 answer
111 views

iOS/RestKit - request timed out

My iOS app use RestKit framework for implementing RESTful web services client. Sometimes, I have a problem when I call my server from my application. The request is not sent and it fails at the end ...
A. Jeanne's user avatar
1 vote
0 answers
57 views

Identify the order of elements persisted in CoreData - ios - objective c

I am creating a response descriptor for json to core data mapping in RestkitManager. The parent object is "level" and it has an array of "sublevel" objects. RKDynamicMapping *levelMapping = [Level ...
A_G's user avatar
  • 2,280
1 vote
0 answers
34 views

RestKit resolve objects given an id or partial representation in JSON

I have a JSON array, something like: [{ "name": "John Smith", "occupationId": 3 }, { "name": "Steven Davis", "occupationId": 2 } ] The occupation response ...
Terry's user avatar
  • 616
0 votes
1 answer
79 views

Restkit - enqueueObjectRequestOperation not being called after adding rootviewcontroller in appdelegate

I have been using Restkit to connect to my API server, and it works perfectly. Now my situation is that I added a checker in my appdelegate.m in didFinishLaunchingWithOptions. it checks if there is ...
karlo jay bueno's user avatar
0 votes
1 answer
338 views

RestKit Mapping array of objects

I'm using RestKit to make an API call, but one of my property isn't mapping correctly. Say I have: // Animal.h @interface Animal: NSObject @property (nonatomic, strong) NSArray<Fruit*> ...
7ball's user avatar
  • 2,223
1 vote
0 answers
68 views

Avoid auto URL encoding in query parameters using RestKit

I need to make a GET request like this: http://myurl.com/api/v1/endpoint?query=my+search+term where my+search+term is user input from a UITextField, except the users would put spaces instead of + ...
7ball's user avatar
  • 2,223
0 votes
1 answer
246 views

How to add objects of entity class(DTO's value) using "addAttributeMappings" in RestKit?

My json response contains not only strings, but also array of DTO. Object mapping is not happening in the right format. json response body : { "id": null, "componentName": "Home Loan", "...
ABM's user avatar
  • 573
1 vote
0 answers
44 views

*** Assertion failure in -[RKObjectMapping addPropertyMapping:] crash in ios

just started few days back with RestKit, need your review, where i am wrong.. getting crash in ios app: *** Assertion failure in -[RKObjectMapping addPropertyMapping:] @interface VGShowCheckIn : ...
Matrix's user avatar
  • 7,477
0 votes
0 answers
29 views

RestKit mapping few object at one time

When I'm sending get requests for a few objects, I'm receiving objects one by one. I see that the mapping time increases for each object, so it looks like: 1st get request - 00:00 2nd get request - ...
Vasilii Muravev's user avatar
0 votes
0 answers
203 views

Mapping a Dictionary to a RestKit result

In a JSON model coming from a REST api I have a field that is supposed to be a Dictionary (a map, hashtable, call it whatever you want), e.g.: "moduleMap": { "677e55b2-d80c-4b32-bcbb-e99074fbfcf6"...
Milan Nosáľ's user avatar
1 vote
0 answers
49 views

Reskit on iOS unable to get gzip content

I've a rest GET webservice I call in my application, which return gzip content. But I'm unable to get a correct return. I always got the "-1015 error: cannot decode raw data". In my code, I tried: [...
ApheX's user avatar
  • 685
0 votes
2 answers
62 views

RestKit - mixing entity mapping and object mapping

I am using RestKit in my iOS app and up until now I was simply using object mapping because I wasn't persisting any data to CoreData. I now want to add the possibility for the users to download some ...
el-flor's user avatar
  • 1,466
0 votes
0 answers
20 views

Why does the managed object returned by Restkit only have the attributes (of CoreData) and not also the values (other properties)?

The problem is that in my mapping I have some properties which are persistent while others are not. So, in callback the object only has the attributes (of CoreData) but not the values (other ...
93sauu's user avatar
  • 3,850
0 votes
1 answer
67 views

How to post without post data using RestKit

I was looking for a way to map an empty object to be posted to an endpoint. The call needs to be a POST, but there shouldn't be any data posted to the endpoint (empty body), it's only about calling ...
GabLeRoux's user avatar
  • 17k
0 votes
2 answers
215 views

Frameworks File not found

I'm converting my old(32 bit) project to new (64 bit). I'm facing this issue for past one day. Still I'm not able to resolve the issue. I used RestKit project, FacebookSDK & Opentok frameworks. I ...
Senthilkumar's user avatar
  • 2,471
0 votes
1 answer
40 views

Execute a function before and after a request finishes in RestKit

I want to call a function to start a spinner before every request is made and stop it after every request (fail or success) finishes in Restkit. How would I achieve this without having to manually ...
7ball's user avatar
  • 2,223
0 votes
0 answers
24 views

posting data not showing same format in server side using Restkit

i have dictionary of data in my hand.i want to post this Using Restkit. ""ADDRESS{ major = 604; minor = 37940; uuid = "xxxxxx"; }, {major = 1; minor = 4541; uuid = "xxxxx"; },{ major = 20310; minor =...
Manju's user avatar
  • 27
1 vote
1 answer
842 views

EXC_BREAKPOINT in RKManagedObjectRequestOperation NSManagedObjectContext::save

I'm getting this inconsistent, hard to reproduce crash in RestKit. The crash occurs on NSManagedObjectContext::save(), inside RKManagedObjectRequestOperation::saveContextToPersistentStore:...
100grams's user avatar
  • 3,502
0 votes
1 answer
22 views

Filtering Server Response RestKit + CoreData

Im using RestKit+CoreData. And i always get response code 200 from server. And I don't need all responses to save into core data, Is there any way to filter response ?
Evgenii's user avatar
  • 422
0 votes
1 answer
82 views

RestKit, RKEntityMapping trouble with Response Descriptors

Im trying to use RestKit with RKEntityMapping ;( Help! NSURL *baseURL = [NSURL URLWithString:@"http://api.mymemory.translated.net"]; RKObjectManager *objectManager = [RKObjectManager ...
Evgenii's user avatar
  • 422
0 votes
0 answers
519 views

Updated core-data values not retaining after App killed and re-launched

I have update a NSModelObject and saved using the following code, the changes are saved and updated in app. do { try managedObjectContext.save() } catch { print("Could not save") } But when ...
Bharath's user avatar
  • 2,084
0 votes
1 answer
49 views

RestKit putObject - should it handle persistence back to the Core Data store for me?

I'm working with RestKit 0.27.0 and have managed to setup my Core Data stack almost exactly like in the TwitterCoreData example in RestKits GitHub. I've also mapped GET / POST requests which are ...
Mark's user avatar
  • 480
0 votes
1 answer
187 views

Swift, how can I get response headers from RestKit?

I have a RestKit request as below. How can I get the auth token from the response headers? RKObjectManager.shared() .getObjectsAtPath(urlString, parameters: ...
markhorrocks's user avatar
  • 1,272
1 vote
0 answers
39 views

how to secure username password when calling remote restful api in web/mobile?

here is my script of php to call remote restful api, the username password are hard coded in source code, $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://localhost/m1/m1apiserver/public/api/...
hkguile's user avatar
  • 4,293
1 vote
1 answer
151 views

RestKit 0.27 - set a request timeout

I'm looking for a way to set a request timeout on a basic RKObjectManager getObjectsAtPath: parameters: success: failure: request, in RestKit v.0.27.0 Right now, if a user reaches a view, triggers ...
el-flor's user avatar
  • 1,466
8 votes
3 answers
4k views

AWS API Gateway + Cognito User Pool Authorizer + Lambda - Which HTTP-headers and permissions do I need to set?

I have problems getting the authorization of my API on AWS for a Cognito User Pool via HTTP headers (without AWS API Gateway SDK) to work. My setup: On AWS: A REST API implemented on AWS Lambda (...
thomers's user avatar
  • 2,613
0 votes
1 answer
76 views

AFNetworking via RestKit - files missing

I've installed RestKit via CocoaPods this afternoon. I immediately had duplicate/redefinition errors because I already had manually imported AFNetworking before, and CocoaPods re-installed it. So I ...
el-flor's user avatar
  • 1,466
0 votes
1 answer
85 views

Restkit use object mapping without request

Is any way to use Restkit framework to map json (nsdictionary) to object without request. i have json and need to map it in object
Stalik's user avatar
  • 1
0 votes
1 answer
68 views

Ignoring default value for missed elements instead of setting nil with RestKit

Im trying to send a response without certain fields, and RestKit still keeps setting the values to nil even after i have disabled this option using: infoMapping....
nicwhitts's user avatar
  • 300
0 votes
1 answer
157 views

RestKit delete orphaned objects rule

Is it possible to set something like global rule for RKbjectManager to delete orphaned objects on successful mapping. I am currently using RKPathMatcher to delete orphans for specific path pattern, ...
Dejan Zuza's user avatar

1
2 3 4 5
54