REST API DESIGN – Getting a resource through REST with different parameters but same url pattern

In my experience, GET /users/{id} GET /users/email/{email} is the most common approach. I would also expect the methods to return a 404 Not Found if a user doesn’t exist with the provided id or email. I wouldn’t be surprised to see GET /users/id/{id}, either (though in my opinion, it is redundant). Comments on the other … Read more

Launching Viber app via URL scheme on iOS

as for now (26.03.2017), I found this URI are working: viber://add?number=NUMBER – open user page viber://forward?text=foo – share text with selected users viber://chats – opens chat tab viber://calls – opens calls tab ??? – can’t find how to open user’s/contacts tab viber://public – opens a public tab viber://more – open more tab (the last one … Read more

Call the official *Settings* app from my app on iPhone

As noted in the comments below, this is no longer possible in iOS version 5.1 and after. If you are on iOS 5.0, the following applies: This is now possible in iOS 5 using the ‘prefs:’ url scheme. It works from a web page or from an app. example urls: prefs:root=General prefs:root=General&path=Network sample usage: [[UIApplication … Read more

How to handle with a default URL scheme

As you are mentioning AppleScript, I suppose you are working on Mac OS X. A simple way to register and use a custom URL scheme is to define the scheme in your .plist: <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>URLHandlerTestApp</string> <key>CFBundleURLSchemes</key> <array> <string>urlHandlerTestApp</string> </array> </dict> </array> To register the scheme, put this in your AppDelegate’s initialization: [[NSAppleEventManager … Read more

How to use tel: with * (star, asterisk) or # (hash, pound) on iOS?

This documentation from Apple should be helpful: To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not … Read more