URL: /api/blog/v1.0/blog/{blog}/posts
Method: GET
Example request in python:
import requests, json
response = requests.get('http://www.cryptedblog.com/api/blog/v1.0/blog/test-blog/posts?limit=2')
data = response.json()
print(json.dumps(data, indent=4, sort_keys=True))
The output looks like the following:
{
"data": [
{
"blog": "test-blog",
"comments-url": "/api/blog/v1.0/blog/test-blog/posts/5671831268753408/comments",
"date-time-create": "2014-07-13 19:59:13.256670",
"date-time-last_comment": "2014-07-13 19:59:22.863010",
"date-time-update": "None",
"images": 5172138264756224,
"images-url": "/api/blog/v1.0/images/5172138264756224",
"number-of-comments": 2,
"post": 5671831268753408,
"post-encrypted": {
"adata": "",
"cipher": "aes",
"ct": "rFK5H4GNTfKRwYFaPxrpcZBdF8UgcGpXsen2d07Y6Qc8PecRep0oAeDVhJdJMkU4KF1ALgZS1i0HByMbD8SSvJjSnoZNueHyqYcp3PJYXJkAHrlxDcIp0D+QDgNLWZ6b2svWLyUi/sORxRQhI4suVgCV78o29RCmiAnRIYPy8GW9skLgZz3A6R35gTFZODAWAniJLmX3Elw9aSVz8qD/73Tf31pPPOff16cXu2p0YbGgtLeNyxO5AJZaaaB5CT4aCK4I6e47a+IFzrv9O6qKraFcYZf1CV8op94yHZLRCvXtIQwUp5U/ZBh+JRmHWQXGfyymaf1rViWaxAteGK28vTYK9vnqlQYx1HtB1d+aspWdUNKxZDSoUqXCiCn/rZEJQoF/EfI1GEjRYUP0LIshxyyvcg==",
"iter": 1000,
"iv": "drY1/bJclHlyuZskxTWmqg==",
"ks": 128,
"mode": "ccm",
"salt": "4egVG6r4pKA=",
"ts": 64,
"v": 1
},
"post-url": "/api/blog/v1.0/blog/test-blog/posts/5671831268753408"
},
{
"blog": "test-blog",
"comments-url": "/api/blog/v1.0/blog/test-blog/posts/5652383656837120/comments",
"date-time-create": "2014-07-13 19:59:22.498400",
"date-time-last_comment": "2014-07-13 19:59:22.498390",
"date-time-update": "None",
"images": 5654961308303360,
"images-url": "/api/blog/v1.0/images/5654961308303360",
"number-of-comments": 0,
"post": 5652383656837120,
"post-encrypted": {
"adata": "",
"cipher": "aes",
"ct": "fisRMrgahrEHeoNJkEWIQohHmngtvucrppdmFSikGafFHHpR9QTlZePhu69HnL/kw/VFtNzhHhyIpV979ByaPR7xUan++bY3WIzDBPoBSANrjaQtZn23eEVgeKCxHozO802vVfUc7oIPCfYfBf6lNSfl1pDMe6bCea3fw6LiMVrnaA//hZQw1wsE+0e90VouzqOHLF4MndUesuiNaFHPU3fi8v7SwK0U0xt0sL+QWt8xS5zgf+z5gkC4Y43qQ/TYalMSISklzftC9gs6Jqu8fSgYwbmjUl7unl931Hgmp+bUrMij3GVcf+XLwa5WA/MP4mN80vx57S8bXW+V04uOpg5FUiNIjDDFZ5vFjlhM1PTViA==",
"iter": 1000,
"iv": "jZyBChV1OPE0AZmkywpuqQ==",
"ks": 128,
"mode": "ccm",
"salt": "g5+0E/9SS6A=",
"ts": 64,
"v": 1
},
"post-url": "/api/blog/v1.0/blog/test-blog/posts/5652383656837120"
}
],
"meta": {
"limit": 2,
"limit-max": 30,
"offset": 0,
"sortby": "date_time_create",
"sortorder": "asc",
"total": 2
},
"success": true
}