ita-social-projects / TeachUA

The project aims to promote the Ukrainian language for study clubs in Russian-speaking regions of Ukraine. This is a web application that contains a database of clubs with the Ukrainian language of instruction. Clubs have the opportunity to register on the site and provide information about themselves. Users can search for clubs by various parameters (activity type, location, etc.)
MIT License
22 stars 10 forks source link

[API/ Club/ GET] Status code on response 400 when entering valid data for search clubs by value with pagination. Endpoint '/api/clubs/search' #2119

Open Oksana-Lysak opened 8 months ago

Oksana-Lysak commented 8 months ago

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

Description Status code on response 400 when entering valid data for search clubs by value with pagination. Status code on response 200 if change "isOnline" with "isоnline".

Preconditions

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

Steps to reproduce

  1. Create GET request to 'http://speak-ukrainian.eastus2.cloudapp.azure.com/dev' using endpoint '/api/clubs/search' Parameters. SearchClubProfile: { "clubName": "string", "cityName": "string", "categoryName": "string", "isOnline": true } Pageable: { "page": 0, "size": 1 }

Actual result Status: 400Bad Request 3   API, Club  Query returns one less club for endpoint 'apiclubsuser id 3 1

Expected result Status: 200 OK