-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide mechanism to add custom metadata to output
- Loading branch information
Stein Fletcher
committed
Feb 13, 2019
1 parent
999e46f
commit b5f8a90
Showing
7 changed files
with
154 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css" /> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.7/raphael.min.js"></script> | ||
<script src="https://bramp.github.io/js-sequence-diagrams/js/sequence-diagram-min.js"></script> | ||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js"></script> | ||
</head> | ||
<body> | ||
|
||
<div class="container-fluid"> | ||
<h2>POST /hello</h2> | ||
<span class="badge badge-success">200</span> | ||
<p class="lead">some test</p> | ||
<div class="card text-center"> | ||
<div class="card-body"> | ||
<div id="d" class="justify-content-center"></div> | ||
</div> | ||
</div> | ||
<br><br> | ||
<p class="lead">Event Log</p> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th scope="col">#</th> | ||
<th scope="col">Payload</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
|
||
<tr> | ||
<th scope="row">1</th> | ||
<td> | ||
<pre>POST /hello HTTP/1.1 | ||
Host: application | ||
Content-Type: application/json | ||
|
||
</pre> | ||
<pre><code class="json">{ | ||
"a": 12345 | ||
}</code></pre> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<th scope="row">2</th> | ||
<td> | ||
<pre>GET / HTTP/1.1 | ||
Host: localhost:8080 | ||
|
||
</pre> | ||
|
||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<th scope="row">3</th> | ||
<td> | ||
<pre>HTTP/1.1 200 OK | ||
Content-Length: 1 | ||
Content-Type: text/plain | ||
|
||
</pre> | ||
<pre><code class="json">1</code></pre> | ||
</td> | ||
</tr> | ||
|
||
<tr> | ||
<th scope="row">4</th> | ||
<td> | ||
<pre>HTTP/1.1 200 OK | ||
Connection: close | ||
|
||
</pre> | ||
|
||
</td> | ||
</tr> | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
<script> | ||
Diagram.parse("\x22cli\x22-\x3e\x22sut\x22: (1) POST \/hello\n\x22sut\x22-\x3e\x22localhost:8080\x22: (2) GET http:\/\/localhost:8080\n\x22localhost:8080\x22-\x3e\x3e\x22sut\x22: (3) 200\n\x22sut\x22-\x3e\x3e\x22cli\x22: (4) 200\n").drawSVG("d", {theme: 'simple', 'font-size': 14}); | ||
</script> | ||
<style> | ||
body { | ||
padding-top: 2rem; | ||
padding-bottom: 2rem; | ||
} | ||
</style> | ||
<script type="application/json" id="metaJson">{"hash":"2895595591_1412177239","method":"POST","name":"some test","path":"/hello","status_code":200}</script> | ||
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script> | ||
<script>hljs.initHighlightingOnLoad();</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters