無料の掲示板
Revisão | d89603238665feb4e919079e38baa000e9344be8 (tree) |
---|---|
Hora | 2018-08-04 20:22:50 |
Autor | yamat0jp <yamat0jp@yaho...> |
Commiter | yamat0jp |
RESTful
helpファイルの案内を書き換えました
@@ -387,7 +387,7 @@ class HeadlineApi(web.RequestHandler): | ||
387 | 387 | response = {} |
388 | 388 | for x in self.application.db.tables(): |
389 | 389 | if x != '_default': |
390 | - response[x] = self.get_data(x) | |
390 | + response[x] = self.get_data(x) | |
391 | 391 | self.write(json.dumps(response,ensure_ascii=False)) |
392 | 392 | |
393 | 393 | def get_data(self,dbname): |
@@ -478,7 +478,7 @@ class AlertHandler(UserHandler): | ||
478 | 478 | |
479 | 479 | class Application(web.Application): |
480 | 480 | def __init__(self): |
481 | - self.db = TinyDB(st.json) | |
481 | + self.db = TinyDB(st.json) | |
482 | 482 | handlers = [(r'/',NaviHandler),(r'/login',LoginHandler),(r'/logout',LogoutHandler),(r'/title',TitleHandler), |
483 | 483 | (r'/headline/api',HeadlineApi),(r'/read/api/([a-zA-Z0-9_]+)/([0-9]+)',ArticleApi),(r'/write/api/([a-zA-Z0-9_]+)',ArticleApi), |
484 | 484 | (r'/help',HelpHandler),(r'/master/*',MasterHandler),(r'/alert',AlertHandler), |
@@ -1,4 +1,4 @@ | ||
1 | -<!DOCTYPE html> | |
1 | +<!DOCTYPE html> | |
2 | 2 | |
3 | 3 | <html><head><meta charset=utf8><title>使い方</title></head> |
4 | 4 | <body> |
@@ -14,7 +14,7 @@ | ||
14 | 14 | <p>開発者の皆さん |
15 | 15 | <p>pybbsのAPI |
16 | 16 | <p>ArticleAPI ... ~/read/api/<b>dbname</b>/<b>number</b> |
17 | -<p>ListAPI ... ~/list/api/<b>dbname</b> | |
17 | +<p>ListAPI ... ~/headline/api | |
18 | 18 | <p><br> |
19 | 19 | <p> |
20 | 20 | <p>利用規約 |