Creating Objective-c Client Code to Use Rest Rest Services

I am working on an iPhone application that uses an external server to store most of the data. The server provides all the necessary services using the REST API.

Ideally, I would like to generate client-side code in objective-c that can use these services. Preferably, they should return objects that I can easily use, instead of parsing the returned XML.

What options am I looking at? I studied this question a bit, and closest to code generation I saw wsdl2objc . Since I also have backend services, I can make them SOAP services, but I really do not want to do this, since later I will use the same set of services to create a web interface (for example,). Another option I have to do is RestKit .

Any advice on this is greatly appreciated. I am almost sure that this is a practical case that many people have encountered, and I just canโ€™t find the right resources or do not look at the right places.

Greetings !!!

+6
rest ios objective-c iphone code-generation
Apr 07 2018-11-17T00:
source share
2 answers

RestKit is a great infrastructure. You still have to write code, but it will make the process of moving data between Cocoa models and RESTful / JSON web services elegantly simple. I recommend using examples to plunge into your affairs.

+5
Apr 07 '11 at 18:12
source share

Consistent with the use of ResKit , which allows not only to facilitate the use of REST services, but also display on CoreData and others, if I remember well.

And about CoreData I would suggest using Mogenerator , which is designed to generate CoreData code, but it also allows more, since it can mainly be used as a code generator based on templates from the CoreData Model ...

A good match for your question might be some Mo patterns filling the gap between them.

0
Apr 07 2018-11-18T00:
source share



All Articles