Advertisement
Anatoliy_Gerasimov

POST : api/v1/blog/list

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