Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove embedded API doc #2343

Merged
merged 3 commits into from Nov 19, 2019
Merged

Remove embedded API doc #2343

merged 3 commits into from Nov 19, 2019

Conversation

abulte
Copy link
Contributor

@abulte abulte commented Oct 23, 2019

This removes the embedded API doc. There is now a API_DOC_EXTERNAL_LINK setting that we simply link to. For data.gouv.fr it will be https://doc.data.gouv.fr/api/reference/.

Context: we do not need to maintain two different versions of the same doc. There was a CVE on swagger-ui npm package, so it's a good time for removing it.

Capture d'écran 2019-10-23 16 01 23

@abulte abulte requested a review from a team October 23, 2019 14:11
@abulte
Copy link
Contributor Author

abulte commented Nov 19, 2019

I've waited a bit for the community to chime in since this is breaking. Almost a month w/o comment -> merge.

@abulte abulte merged commit a25c7b2 into opendatateam:master Nov 19, 2019
@abulte abulte deleted the remove-api-doc branch November 19, 2019 17:12
@kojicz983
Copy link
Contributor

kojicz983 commented Jan 16, 2020

@abulte we used this embedded API doc, do you have any suggestions on how to go about it after these changes?

@abulte
Copy link
Contributor Author

abulte commented Jan 16, 2020

@kojicz983 we use a static page that displays the swagger doc. It should only require a few lines of code. https://github.com/etalab/doc.data.gouv.fr/blob/master/articles/_api/reference.md https://doc.data.gouv.fr/api/reference/. You may even be able to create a static page in your theme for this if you don't want another domain/server as we do and link to it via API_DOC_EXTERNAL_LINK.

@kojicz983
Copy link
Contributor

@abulte Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants