I have a existing project which is using RestKit and now I need to update some API requests. The problem is I have a post request which doesn't need to care the response body. I just want to know the response status code is 200 or not. So I don't add RKResponseDescriptor then RestKit reports error:"No response descriptors match the response loaded.".How could I send request without any response descriptors? Any idea? Thanks
Use restkit to create the request but then run the request yourself. If restkit isn't running the request then it isn't involved in the response processing.
Related
I've been told to use POST method to read data instead of the GET method. The tool I'm using is Postman. How can I use POST to fetch data/resources from the server?? I'm testing using any of the testing websites like reqres, gorest, etc.
Tried nothing as of now
Your question isn't really clear but if this api you use exposes a POST method to read data, that means that simply instead of sending a GET request to said URL, you should send a POST http request and the response will be the data you fetched.
On the contrary, if you are composing this api yourself and asking here how to do it, you could simply create a meathod for fetching data and expose this method to a POST request.
it's my first post on StackOverflow :)
We're writing RESTful API backend using Spring Data Rest. To add association we're using the request:
POST /favouriteFolders/7/posts HTTP/1.1
Host: localhost:8080
Content-Type: text/uri-list
http://localhost:8080/posts/68
http://localhost:8080/posts/418
Request format is described here:
http://docs.spring.io/spring-data/rest/docs/2.5.1.RELEASE/reference/html/#_post_2
Our iOS developer has problem sending this kind of request using RestKit
https://github.com/RestKit/RestKit
Any ideas how to use RestKit in this situation?
Or maybe we should use other REST client to handle this specific requests ?
Thanks in advance!
How to work with this kind of server
http://136.243.3.6:8888/wsLoyalty/Loyalty.1cws?wsdl
I mean how to response, request and so on
You need to create a soap envelope to send request and will need to use XML parsing to read response
Refer this
I am currently building and API that will be consumed by an iOS client using RestKit. For the POST (create) operation, I am returning a standard 202 Accepted status with no content. The objectID is set in the location header as the creation on the API is async.
The issue is that the iOS dev has indicated that RestKit does not allow you to access the header information on the response object. Is it possible to access the response object without using the mapping feature in RestKit?
RestKit returns to you the operation which processed the request / response and from there you can navigate through to get the HTTP processing operation and the response object (which contains the headers).
Does somebody know, how a managed object request (RKManagedObjectRequestOperation) can be tested in Restkit? Normal Request Operations are easy to test as described here https://github.com/RestKit/RestKit/wiki/Unit-Testing-with-RestKit#testing-object-request-operations