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

Rename couse material title to existing title #74

Open
BeatBioInfo opened this issue Jul 1, 2022 · 1 comment
Open

Rename couse material title to existing title #74

BeatBioInfo opened this issue Jul 1, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@BeatBioInfo
Copy link

BeatBioInfo commented Jul 1, 2022

Steps to reproduce
Create a collection on Postman
Click on the “add request” button
Use the POST method to call a request http://qa-school-test-api.quantori.academy/api/v1/session
Enter the following “string” in the “Body” in the following order

{
“username”: “admin”,
“password”: “1234”
}

Press the “send” button to generate an “accessToken”.
Click “Add request” to 'rename course material title' in a course
Use the PATCH method to call a request {{Host}}api/v1/courses/3093/materials/200
Enter the body

{
        "id": 166,
        "title": "My ever first course on постман-1",
        "data": "Kindly provide the right information about sser postman щщщцыры",
        "order": 1
}

Then send the request.

Actual behavior
Status code: 200; Ok
Body Request:

{
    "id": 166,
    "title": "My ever first course on постман-1",
    "data": "Kindly provide the right information about sser postman щщщцыры",
    "order": 1,
    "courseId": 3093
}

Succesful PATCH request

Expected behavior
Status code: 400 Bad request
Body response:

{
    "id": 166,
    "title": "My ever first course on постман-1",
    "data": "Kindly provide the right information about sser postman щщщцыры",
    "order": 1,
    "courseId": 3093
}

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

@viraxslot
Copy link
Owner

Related to #63

@viraxslot viraxslot added the bug Something isn't working label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants