snapshot before merge
This commit is contained in:
1 parent
2b3b2850f9
commit
21fc65b3ae
145 files changed
+9786
-59
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import urllib.request, json
|
||||
# Quick check via API
|
||||
r = urllib.request.urlopen('http://localhost:8016/api/stats', timeout=5)
|
||||
print('stats:', r.read().decode())
|
||||
|
||||
r = urllib.request.urlopen('http://localhost:8016/api/posts?perPage=3', timeout=5)
|
||||
data = json.loads(r.read().decode())
|
||||
print('posts count:', data['total'])
|
||||
for p in data['posts']:
|
||||
print(' -', p['slug'], p['title'][:30])
|
||||
Reference in new issue
Block a user