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

localhost:8000/api/schema/redoc-ui gives error 404 #166

Closed
Monstarrrr opened this issue Jun 12, 2024 · 2 comments
Closed

localhost:8000/api/schema/redoc-ui gives error 404 #166

Monstarrrr opened this issue Jun 12, 2024 · 2 comments
Assignees
Labels
[ backend / bug Something isn't working

Comments

@Monstarrrr
Copy link
Owner

No description provided.

@seporterfield
Copy link
Collaborator

I couldn't reproduce this on a fresh install.

Make sure all python dependencies are installed
pip install -r requirements.txt

And that the database you're testing this with has the necessary migrations
python manage.py migrate

@seporterfield
Copy link
Collaborator

Reproduced the issue

going to
localhost:8000/api/schema/reduc-ui gives a 404
whereas
localhost:8000/api/schema/reduc-ui/ works fine

This is because we don't normalize URLs by appending slashes when a URL is entered.

#88 would fix this issue if you don't want to manually add the ending /

@github-project-automation github-project-automation bot moved this from In progress to Done in Rebutify's MVP Jun 12, 2024
@Monstarrrr Monstarrrr changed the title localhost:8000/api/schema/reduc-ui gives error 404 localhost:8000/api/schema/redoc-ui gives error 404 Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ backend / bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants