Skip to content

[API]The request PUT/dev/api/center/3 contains mistakes in body  #2152

@zahar777

Description

@zahar777

Environment: Postman

Preconditions
Sign in to the system
POST request http://speak-ukrainian.eastus2.cloudapp.azure.com/dev/api/signin
Body
{
"email": "admin@gmail.com",
"password": "Admin_QC24"
}
{{server}} = http://speak-ukrainian.eastus2.cloudapp.azure.com/

Steps to reproduce

  1. Set up PUT request {{server}}/dev/api/center/3
  2. Input to the Body

{
"id": 3,
"name": "dsdsdsd",
"locations": [
{
"id": 0,
"name": "Test",
"address": "string",
"cityName": "Dnipro",
"districtName": "Соборний",
"stationName": "string",
"cityId": 3,
"districtId": 20,
"stationId": 1,
"centerId": 3,
"clubId": 3,
"coordinates": "12.1212",
"longitude": 12.2121,
"latitude": 12.1212,
"phone": "0514216224"
}
],
"description": "stringstringstringstringstringstringstri",
"urlWeb": "string",
"urlBackgroundPicture": "string",
"urlLogo": "string",
"clubsId": [
0
],
"userId": 0,
"contacts": "string",

Actual result
Mistakes in the request
Expected result
This endpoint to update the center. The controller returns CenterProfile

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions