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

The endpoint GET /categories/{id}/subjects doesn't correspond to the actual endpoint GET /categories/subjects/names #1065

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

ArtemHolikov
Copy link
Contributor

@ArtemHolikov ArtemHolikov commented Dec 12, 2024

Pre-conditions:

The site Space2Study is opened.
The user is logged in as a Tutor.
The "Edit profile" page => The "Professional info" tab is opened.
Steps to reproduce:

Click "Inspect" => "Network"
Click the "Add category" button.
Click "names" request.
Go to "Headers".
Go to "Response".

Previous result:
The endpoint -- /categories/{id}/subjects.

Actual result:
The endpoint -- /categories/subjects/names.

Copy link
Contributor

@ShadowOfTheSpace ShadowOfTheSpace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, change endpoint to the real one (we don't have /categories/{id}/subjects/names endpoint, check categoryRoute.
Also, update description to this endpoint, because its not correct right now.

docs/category/category.yaml Outdated Show resolved Hide resolved
docs/category/category.yaml Outdated Show resolved Hide resolved
docs/category/category.yaml Outdated Show resolved Hide resolved
docs/category/category.yaml Outdated Show resolved Hide resolved
docs/category/category-schema.yaml Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Dec 18, 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
None yet
2 participants