@ -1,15 +1,25 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Sipwise NGCP HTTP API documentation (with SwaggerUI)</title>
<!-- link rel="stylesheet" href="/static/css/bootstrap/bootstrap.css"></link -->
<!-- link rel="stylesheet" href="/static/css/bootstrap/bootstrap-responsive.css"></link -->
<title>Sipwise NGCP HTTP API documentation (version 2)</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" href="/static/css/sipwise-apidoc.css">
<link rel="stylesheet" type="text/css" href="/static/js/swaggerui/swagger-ui.css" >
<!-- link rel="stylesheet" type="text/css" href="/static/js/swaggerui/swagger-own.css" -->
</head>
<body>
[% UNLESS c.req.params.iamverysureallowdestructive %]
<style>
/* disable the try it out buttons */
.opblock-post button.btn.try-out__btn,
.opblock-put button.btn.try-out__btn,
.opblock-patch button.btn.try-out__btn,
.opblock-delete button.btn.try-out__btn {
display: none;
}
</style>
[% END %]
[%
chapters = [
{ level = 2, id = 'intro', title = 'Introduction', },
@ -18,25 +28,28 @@
];
-%]
<h1>Sipwise NGCP HTTP API Documentation (with SwaggerUI )</h1>
<h1>Sipwise NGCP HTTP API Documentation (version 2 )</h1>
<div class="content">
<div class ="sipwclass">
See the <a href="/api/?oldapidoc=1">old API documentation (version 1) here</a>.
</div>
<div class="chapter sipwclass">
<h2 class="nocount">Table of Contents</h2>
<nav>
<ol>
[% FOR chapter IN chapters %]
[% IF loop.prev && loop.prev.level > chapter.level -%]
</ol></li>
[% END -%]
<li><a href="#[% chapter.id %]">[% chapter.title %]</a>
[% IF loop.next && loop.next.level > chapter.level -%]
<h2 class="nocount">Table of Contents</h2>
<nav>
<ol>
[% ELSE -%]
</li>
[% FOR chapter IN chapters %]
[% IF loop.prev && loop.prev.level > chapter.level -%]
</ol></li>
[% END -%]
<li><a href="#[% chapter.id %]">[% chapter.title %]</a>
[% IF loop.next && loop.next.level > chapter.level -%]
<ol>
[% ELSE -%]
</li>
[% END -%]
[% END -%]
[% END -%]
</ol>
</nav>
</ol>
</nav>
</div>
[% FOR chapter IN chapters -%]