ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[API][Swagger UI] Wrong link used in GET request ( /events ) #7422

Open RadchenkoVlada opened 2 months ago

RadchenkoVlada commented 2 months ago

Environment: macOS Sonoma 14.5, Postman, browser: Google Chrome Version 127.0.6533.120 (Official Build) (x86_64) Reproducible: always Build found: date(day.month.year): 05.09.2024

Steps to reproduce

  1. Go to https://greencity.greencity.cx.ua/swagger-ui/index.html#/event-controller/getEvent
  2. Enter "0" into the input field 'page integer (query)'
  3. Enter "6" into the input field 'size integer'
  4. Push the button "Try it out" on the right upper corner
  5. Push the button 'Execute'

Actual result Request URL is https://greencity.greencity.cx.ua/events?eventTime=FUTURE&cities=string&statuses=OPEN&tags=string&page=0&size=6 Screenshot 2024-09-05 at 16 07 43

Result from Postman Screenshot 2024-09-05 at 16 22 58

Expected result The request URL is : https://greencity.greencity.cx.ua/events?page=0&size=6&cities=&tags=&eventTime=&statuses= Result from Postman Screenshot 2024-09-05 at 16 23 09 Result obtained from Green City website using Dev Tools

Screenshot 2024-09-05 at 16 24 02

Labels to be added "Bug", Priority ("pri: low"), Severity ("severity:"), Type ("Functional"), "API" (for back-end bugs).

RadchenkoVlada commented 1 month ago

Hi, @nazariusPr, I've retested #7422 and unfortunately, I'm still encountering the wrong link used in the GET request on Swagger.

I'm confident that we can resolve this together. Please let me know if there's any additional information or steps I can provide to help expedite the resolution.