: cascade include::layout { bodyID => 'APIDocs' } : override content -> {

# <: l('API Document for Ukigumo') :>

## <: l('Add new report') :>

<: abs_uri_for('/api/v1/report/add') :>

### <: l('Input') :>

status | SUCCESS: 1, FAIL: 2, NA: 3
project | project name
branch | Branch name
vc_log | log of difference from latest commit.(optional)
body | The body of report(optional)
revision | revision number or hash string
repo | repository uri

### <: l('Output') :>

report.report_id | report id
report.url | The url for report
report.last_status | last status id

## <: l('Search Report') :>

<: abs_uri_for('/api/v1/report/search') :>

### <: l('Input') :>

project | project name
branch | Branch name
revision | revision number or hash string
limit | limit the number of logs(optional)

### <: l('Output') :>

reports.n.report_id | report id
reports.n.status | SUCCESS: 1, FAIL: 2, NA: 3

: }