iOS SDK blog post


#1

If you have any questions or comments about DreamFactory’s iOS SDK or the accompanying blog post please feel free to post them here. Either I or someone else on the team will try to get back to you quickly.


#2

Here’s a link to the iOS SDK.


#3

Thanks. I notice all these are happening over HTTP, not HTTPS. Any guidance on how to do the latter?


#5

I’m guessing you’ve already tried just using HTTPS in your path value like the API readme from the SDK says?

The general form of a DreamFactory REST API call is:

<rest-verb> http[s]://<server-name>/rest/[<service-api-name>]/[<resource-path>][?<param-name>=<param-value>]

The iOS API format is:

NIKApiInvoker restPath: (NSString*) path

Breaking down each parameter:

  • path Holds the value of http[s]://<server-name>/rest/[<service-api-name>]/[<resource-path>] from the generic call. You can include the query parameters here. However, it is easier and cleaner to pass in the query parameters as a dictionary than it is to format them into the url.

The readme seems to indicate you can just use HTTPS in the path value. If that’s not the case, I’m afraid I’m not sure how.


#6

Hopefully - although I’m just testing on a mac bitnami package, so it spins up on localhost:8080. I’ll have to try to find out the default https port. Thanks for the encouragement.


#7

Port and apache configs in the Launcher - found it.


#8

Is Launcher a component of an iOS dev environment that I’m not familiar with? I’m just curious about where you made the config changes.


#9

IT’s a simple GUI launcher that comes with the Mac install - boots up the DB and Apache.


#10

Oh, you must be referring to a Bitnami component. That launcher is added by them and isn’t part of DreamFactory. Thanks for clarifying.