-2
私はalarmofireを使用してPOSTリクエストを実装しています。Swift:jsonボディのalamofire投稿
目標として投稿することです:
curl -X POST --header 'Content-Type: application/json'
--header 'Accept: application/json' -d '{"dest":"Place","reason":"Reason","carId":1,"starttime":1496975475840,"departmentId":3,"distance":0.0,"driverId":1}'
'http://localhost:8080/serviceCar/v1_0/placeOrder?access_token=25621648-1da5-438e-a52c-f927e2c59de4'
URLがhttp://localhost:8080/serviceCar/v1_0/placeOrder
であると私が注文クラスを持って、どのように私は、リクエストボディとしてオブジェクトを投稿しても、フォームデータとしてトークンを送ることができますか?
私達にあなたのAlamofire要求コードを表示します。 –