title: Alamofire and JSONAPI
body: <p>I'm trying to figure out how to use Alamofire with a JSONAPI datasource.  I'm trying to <code>POST</code> some data.  The code below doesn't work.  I'm learning HTTP requests and JSON as I go, so there might be other issues with the code.  Would really appreciate any help.</p>
  
  <pre><code>        let parameters = [
          "data" : [
              "type" : "notes",
              "attributes" : [
                  "relevant-date" : date,
                  "details" : self.textField.text
              ],
              "relationships" : [
                  "child" : [
                      "data" : [
                          "type" : "children",
                          "id" : self.passedChildID!
                      ]
                  ]
              ]
          ]
      ]
  
      Alamofire.request(.POST, "url", parameters: parameters, encoding: .JSON)
      .responseJSON { (response) -&gt; Void in
          if let value = response.result.value {
              let json = JSON(value)
          }
      }
  </code></pre>