mirror of https://github.com/interlegis/sigi.git
Sesóstris Vieira
1 year ago
3 changed files with 69 additions and 3 deletions
@ -0,0 +1,21 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<title>SIGI ReDoc documentation</title> |
||||
|
<!-- needed for adaptive design --> |
||||
|
<meta charset="utf-8"/> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
|
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"> |
||||
|
<!-- ReDoc doesn't change outer page styles --> |
||||
|
<style> |
||||
|
body { |
||||
|
margin: 0; |
||||
|
padding: 0; |
||||
|
} |
||||
|
</style> |
||||
|
</head> |
||||
|
<body> |
||||
|
<redoc spec-url='{% url schema_url %}'></redoc> |
||||
|
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,28 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<title>SIGI Swagger documentation</title> |
||||
|
<meta charset="utf-8"/> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
|
<link rel="stylesheet" type="text/css" href="//unpkg.com/swagger-ui-dist@3/swagger-ui.css" /> |
||||
|
</head> |
||||
|
<body> |
||||
|
<div id="swagger-ui"></div> |
||||
|
<script src="//unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"></script> |
||||
|
<script> |
||||
|
const ui = SwaggerUIBundle({ |
||||
|
url: "{% url schema_url %}", |
||||
|
dom_id: '#swagger-ui', |
||||
|
presets: [ |
||||
|
SwaggerUIBundle.presets.apis, |
||||
|
SwaggerUIBundle.SwaggerUIStandalonePreset |
||||
|
], |
||||
|
layout: "BaseLayout", |
||||
|
requestInterceptor: (request) => { |
||||
|
request.headers['X-CSRFToken'] = "{{ csrf_token }}" |
||||
|
return request; |
||||
|
} |
||||
|
}) |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
Loading…
Reference in new issue