Perfect JSON API POST Example
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 cd JSON-API-POST swift build .build/debug/Perfect-App-Template
You should see the following output:
[INFO] Starting HTTP server localhost on 0.0.0.0:8181
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
For more information on the Perfect project, please visit perfect.org.