-
Notifications
You must be signed in to change notification settings - Fork 378
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
fix: Move rfcdiff-latest-json API call from /doc to /api #5155
Conversation
1b3574d
to
a58a253
Compare
Codecov Report
@@ Coverage Diff @@
## main #5155 +/- ##
==========================================
+ Coverage 88.50% 88.54% +0.03%
==========================================
Files 295 295
Lines 40015 40030 +15
==========================================
+ Hits 35415 35444 +29
+ Misses 4600 4586 -14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@@ -56,6 +57,9 @@ | |||
url(r'^version/?$', api_views.version), | |||
# Application authentication API key | |||
url(r'^appauth/[authortools|bibxml]', api_views.app_auth), | |||
# latest versions | |||
url(r'^rfcdiff-latest-json/%(name)s(?:-%(rev)s)?(\.txt|\.html)?/?$' % settings.URL_REGEXPS, api_views.rfcdiff_latest_json), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to ask for multiple changes, but it occurs to me that this would be better as a permanent redirect in case there are other users of the endpoint we're not yet aware of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I have updated the ietf/doc/urls.py
URLs as permanent redirects.
Old /doc/rfcdiff-latest-json/ URL is changed to a permanent redirect to /api/doc/rfcdiff-latest-json/
a58a253
to
f114b00
Compare
No description provided.