Swiftpack.co - Package - PerfectExamples/JSON-API-POST

Perfect JSON API POST Example

Get Involed with Perfect!

Star Perfect On Github Stack Overflow Follow Perfect on Twitter Join the Perfect Slack

Swift 3.0 Platforms OS X | Linux License Apache PerfectlySoft Twitter Slack Status

Perfect JSON API POST data example

This repository holds an example that is meant to work alongside the article at https://medium.com/@iamjono/processing-incoming-data-in-a-json-api-e966f7320ccf

The project builds a simple app that has a few simple routes showing various methods of submitting data to a JSON API.

Compatibility with Swift

The master branch of this project currently compiles with Xcode 8.3 or the Swift 3.1 toolchain on Ubuntu.

Building & Running

The following will clone and build an empty starter project and launch the server on port 8181.

git clone https://github.com/PerfectExamples/JSON-API-POST.git
swift build

You should see the following output:

[INFO] Starting HTTP server localhost on

This means the server is running and waiting for connections. Access http://localhost:8181/ to see the greeting. Hit control-c to terminate the server.


We use JIRA for all bugs and support related issues.

If you find a mistake, bug, or any other helpful suggestion you'd like to make on the docs please head over to http://jira.perfect.org:8080/servicedesk/customer/portal/1 and raise it.

A comprehensive list of open issues can be found at http://jira.perfect.org:8080/projects/ISS/issues

Further Information

For more information on the Perfect project, please visit perfect.org.