Added dummy API documentation
Change-Id: I13e831f93702c97fdaffeb654b80f44690887ea8
This commit is contained in:
parent
4a2dff9c96
commit
f80b5f2050
@ -2,12 +2,13 @@
|
||||
Welcome to Surveil's documentation!
|
||||
===================================
|
||||
|
||||
Contents:
|
||||
Table of Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
readme
|
||||
webapi/index
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
8
doc/source/webapi/index.rst
Normal file
8
doc/source/webapi/index.rst
Normal file
@ -0,0 +1,8 @@
|
||||
=========
|
||||
Web API
|
||||
=========
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
v1
|
11
doc/source/webapi/v1.rst
Normal file
11
doc/source/webapi/v1.rst
Normal file
@ -0,0 +1,11 @@
|
||||
.. docbookrestapi
|
||||
|
||||
============
|
||||
V1 Web API
|
||||
============
|
||||
|
||||
Hello
|
||||
=====
|
||||
|
||||
.. rest-controller:: surveil.api.controllers.v1.hello:HelloController
|
||||
:webprefix: /v1/hello
|
@ -6,4 +6,5 @@ class HelloController(rest.RestController):
|
||||
|
||||
@pecan.expose()
|
||||
def get(self):
|
||||
"""Says hello."""
|
||||
return "Hello World!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user