Advertisement
Anatoliy_Gerasimov

PUT: api/v1/blog/4

Mar 29th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.75 KB | None | 0 0
  1. {
  2.   "code": 401,
  3.   "message": "Can not updated Blog post"
  4. }
  5.  
  6. {
  7.   "code": 422,
  8.   "errors": [
  9.     {
  10.       "field": "title",
  11.       "message": "Title must be provided"
  12.     },
  13.     {
  14.       "field": "category_id",
  15.       "message": "The category id field is required."
  16.     },
  17.     {
  18.       "field": "body",
  19.       "message": "Body must be provided"
  20.     }
  21.   ]
  22. }
  23.  
  24. {
  25.   "code": 200,
  26.   "message": "Blog post updated",
  27.   "result": {
  28.     "data": {
  29.       "id": 2,
  30.       "title": "Test Blog posts",
  31.       "category": {
  32.         "id": 1,
  33.         "name": "Category 1"
  34.       },
  35.       "body": "test content2",
  36.       "created": {
  37.         "date": "2017-03-28 14:36:47.000000",
  38.         "timezone_type": 3,
  39.         "timezone": "UTC"
  40.       }
  41.     }
  42.   }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement