Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See: Delft-FEWS PI Rest Service Open API Documentation (rapidoc) or Delft-FEWS PI Rest Service Open API Documentation (swagger) for the API Documentation.





Excerpt


HTML
<!doctype html> <!-- Important: must specify -->
<html>
  <head>
    <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 charecters -->
    <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
  </head>
  <body>
    <rapi-doc
      spec-url = "https://petstore.swagger.io/v2/swagger.json"
    > </rapi-doc>
  </body>
</html><iframe id="result" style="width: 100%; height: 100vh;border:none;" scrolling="no"></iframe>
<script>
$(document).ready(function() {
	$.ajax({
		method: 'GET',
		url: 'https://publicwiki.deltares.nl/download/attachments/194806703/databaseConnectionCountCalculator.html?api=v2',
		dataType: 'text',
		success: function(data) {
			var iframe = document.getElementById('result');
			iframe = iframe.contentWindow || ( iframe.contentDocument.document || iframe.contentDocument);
			iframe.document.open();
			iframe.document.write(data);
			iframe.document.close();
 		}
	});
});
</script>