The easiest way to use Swift with Parse is using the Swift SDK as it uses REST in the necessary ways to connect to a Parse Server.
If you insist on writing your own API (this will not be easy) then you can look for guidance in: