Created
March 31, 2016 11:30
-
-
Save nenadvulic/4eb56d716404ac38061787e0ee16afbc to your computer and use it in GitHub Desktop.
Transaction to http://api-staging.memoriz.io/api/v1/memos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /api/v1/memos HTTP/1.1 | |
Host: api-staging.memoriz.io | |
Content-Type: application/vnd.api+json | |
Accept-Encoding: gzip, deflate | |
Connection: keep-alive | |
Accept: application/vnd.api+json | |
User-Agent: memoriz/0.1 (iPhone; iOS 9.2; Scale/2.00) | |
Accept-Language: fr,en | |
Authorization: Bearer f3c35000a4c0318a3c50f6d04161b8a995e94aab7d2de1d9b74e11b169fffba3 | |
Content-Length: 320 | |
{"data":{"type":"memos","attributes":{"currency":"100","brand":"Nike","stage":41,"price":1900,"country-code":"France","city":"Paris","seller":"Nenad","name":"Nenad","model":"Air max"},"relationships":{"memo-boxes":{"data":[{"type":"memo-boxes","id":"766"}]},"memo-template":{"data":{"type":"memo-templates","id":"9"}}}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 400 Bad Request | |
Server: nginx/1.4.6 (Ubuntu) | |
Date: Thu, 31 Mar 2016 11:29:12 GMT | |
Content-Type: application/vnd.api+json | |
Transfer-Encoding: chunked | |
Connection: keep-alive | |
X-Frame-Options: SAMEORIGIN | |
X-XSS-Protection: 1; mode=block | |
X-Content-Type-Options: nosniff | |
Cache-Control: no-cache | |
X-Request-Id: f6fa9b12-4daa-4d02-b1d2-3536050b62f3 | |
X-Runtime: 0.024882 | |
{"errors":[{"title":"Param not allowed","detail":"currency is not allowed.","id":null,"href":null,"code":105,"source":null,"links":null,"status":"400","meta":null},{"title":"Param not allowed","detail":"brand is not allowed.","id":null,"href":null,"code":105,"source":null,"links":null,"status":"400","meta":null},{"title":"Param not allowed","detail":"price is not allowed.","id":null,"href":null,"code":105,"source":null,"links":null,"status":"400","meta":null},{"title":"Param not allowed","detail":"seller is not allowed.","id":null,"href":null,"code":105,"source":null,"links":null,"status":"400","meta":null},{"title":"Param not allowed","detail":"model is not allowed.","id":null,"href":null,"code":105,"source":null,"links":null,"status":"400","meta":null}],"meta":{"jsonapi":"1.0","version":"0.7.2","language":"fr"},"links":{"self":"http://api-staging.memoriz.io/api/v1/memos"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment