Uncategorized

Curl App/Framework for iOS

Built Detect Thoughts for web developers to test their own code from an iPhone. This is a free app in its compiled form but it’s also meant to easily be dropped into other Swift projects to add (as an example) a developer mode. The source is at https://github.com/krypted/DevModeCuRL and the compiled version has now been posted to the App Store at https://apps.apple.com/us/app/detect-thoughts/id1635176129.

Detect Thoughts takes the logic from a curl command and makes it simple to send a query to a standard REST endpoint on a web server. It supports GET, POST, PUT, and DELETE methods. It also supports Bearer token authentication, basic auth, and OAuth 2 (although that might be considered a bit more experimental given all the potential flows that can crop up. Detect Thoughts can also support a number of different headers and parameters and shows what the CuRL command would have been (although it uses AlamoFire so doesn’t shell out a command to curl).

Detect Thoughts is simple to use. Just enter the endpoint, headers, parameters, auth if necessary, and click Submit to see what the actual curl command would be if sent through the Terminal and then submit to see a color-coded json response. This might be useful for developers who just want to provide a simple graphql type of endpoint for someone to see a simple output without building a whole page for it. There’s also a history button so we can return to an endpoint over and over (which is how I do most of my testing).

If there’s anything missing from the open source version that’s in the compiled Detect Thoughts, it probably just needs a quick update from my private repo, but they should otherwise be in sync (and I’ll eventually merge them but I’m not a git guru so may take a hot minute to get around to it).