Skip to content

[API/ Club/ GET] Status code 200 instead of 404 when entered invalid parameters for endpoint /api/clubs/search  #2147

@Oksana-Lysak

Description

@Oksana-Lysak

Get clubs by search value with pagination invalid parameters

Environment: Windows 11 Pro Version 22H2 Build 22621.2428
Google Chrome 118.0.5993.118 (Official build) (64-bit)
Reproducible: always
Build found:
front 2024-01-04 d5b9ee
back 2024-01-04 7dd789

Preconditions

  1. Site http://speak-ukrainian.eastus2.cloudapp.azure.com/dev/ is opened.
  2. Postman is opened.
  3. The token (admin) is gotten.

Steps to reproduce

  1. Create GET request to 'http://speak-ukrainian.eastus2.cloudapp.azure.com/dev' using endpoint endpoint //api/clubs/search
    Parameters.
    searchClubProfile:
    {
    "clubName": "Тест",
    "cityName": "Тест",
    "categoryName": "Тест",
    "isOnline": true
    }

Pageable:
{
"page": 0,
"size": 1,
"sort": [
"string"
]
}

Actual result
200OK
15

Expected result
404 Not Found

Metadata

Metadata

Assignees

Type

No type

Projects

Status

ToDo

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions