• R/O
  • HTTP
  • SSH
  • HTTPS

pybbs: Commit

無料の掲示板


Commit MetaInfo

Revisãod89603238665feb4e919079e38baa000e9344be8 (tree)
Hora2018-08-04 20:22:50
Autoryamat0jp <yamat0jp@yaho...>
Commiteryamat0jp

Mensagem de Log

RESTful

helpファイルの案内を書き換えました

Mudança Sumário

Diff

--- a/index.py
+++ b/index.py
@@ -387,7 +387,7 @@ class HeadlineApi(web.RequestHandler):
387387 response = {}
388388 for x in self.application.db.tables():
389389 if x != '_default':
390- response[x] = self.get_data(x)
390+ response[x] = self.get_data(x)
391391 self.write(json.dumps(response,ensure_ascii=False))
392392
393393 def get_data(self,dbname):
@@ -478,7 +478,7 @@ class AlertHandler(UserHandler):
478478
479479 class Application(web.Application):
480480 def __init__(self):
481- self.db = TinyDB(st.json)
481+ self.db = TinyDB(st.json)
482482 handlers = [(r'/',NaviHandler),(r'/login',LoginHandler),(r'/logout',LogoutHandler),(r'/title',TitleHandler),
483483 (r'/headline/api',HeadlineApi),(r'/read/api/([a-zA-Z0-9_]+)/([0-9]+)',ArticleApi),(r'/write/api/([a-zA-Z0-9_]+)',ArticleApi),
484484 (r'/help',HelpHandler),(r'/master/*',MasterHandler),(r'/alert',AlertHandler),
--- a/templates/help.htm
+++ b/templates/help.htm
@@ -1,4 +1,4 @@
1-<!DOCTYPE html>
1+<!DOCTYPE html>
22
33 <html><head><meta charset=utf8><title>使い方</title></head>
44 <body>
@@ -14,7 +14,7 @@
1414 <p>開発者の皆さん
1515 <p>pybbsのAPI
1616 <p>ArticleAPI ... ~/read/api/<b>dbname</b>/<b>number</b>
17-<p>ListAPI ... ~/list/api/<b>dbname</b>
17+<p>ListAPI ... ~/headline/api
1818 <p><br>
1919 <p>
2020 <p>利用規約
Show on old repository browser