-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Access to API PART v3 swagger
Url is not accessible unless you type it in your browser for now. This is intended as we can share our url to specific people and continue our review. This will also allow syntax checking on the siade_staging_data repository. This commit can be reverted once the v3 will be the main swagger on the siade repository. This has been specified in the dedicated issue on linear.
- Loading branch information
Showing
10 changed files
with
7,418 additions
and
183 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<div class="fr-container"> | ||
<div class=""> | ||
<h1> | ||
<%= t('.title') %> | ||
</h1> | ||
|
||
<p> | ||
<%= t('.description', api_name: api_name).html_safe %> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div class="fr-mt-5w" id="redoc_container"> | ||
</div> | ||
|
||
<script> | ||
function initRedoc() { | ||
var uri = '<%= api_particulier_openapi_v3_definition_path %>'; | ||
|
||
Redoc.init( | ||
uri, | ||
{ | ||
jsonSampleExpandLevel: 'all', | ||
expandResponses: '200', | ||
expandSingleSchemaField: true, | ||
schemaExpansionLevel: 'all' | ||
}, | ||
document.getElementById('redoc_container') | ||
) | ||
} | ||
|
||
var redocScript = document.createElement("script"); | ||
|
||
redocScript.src = "https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"; | ||
|
||
redocScript.onload = function () { | ||
initRedoc(); | ||
}; | ||
|
||
document.documentElement.firstChild.appendChild(redocScript); | ||
</script> | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.