Skip to content

[API] Creating the the competition draft where the value of the competitiveEventAccountingTypeId key has invalid value. #2030

@Yana-Iv

Description

@Yana-Iv

Environment: Windows 10 (v.:1809); Postman(desktop)
Reproducible: always
Build found: commit 0dbafbf

Preconditions

  1. Go to https://pozashkillia-test.iea.gov.ua/#/
  2. Open DevTool.
  3. Open Postma. Authorize as the Service Provider in the 'Postman' tool.
  4. Select the 'POST' method for https://pozashkillia-test.iea.gov.ua/web/api/v2/competitions-drafts in the 'Postman' tool.
  5. Select 'form-data' content-type for Body.
  6. Request(for exsample):

title:Тест
shortTitle:gfп
scheduledStartTime:2025-02-21T00:00:00.000Z
scheduledEndTime:2025-11-30T00:00:00.000Z
competitiveEventAccountingTypeId:5
numberOfSeats:5
judges:[]
organizerOfTheEventId:08da842d-12fc-4865-85c5-ec6e6142abad
contacts:[{"title":"Заголовок адреси","address":{"street":"Шевченка","buildingNumber":"12А-Б","catottgId":30321,"latitude":51.93531799316406,"longitude":32.16123580932617},"phones":[{"type":"Тип(телефон)","number":"+380454545454"}],"emails":[{"type":"Тип( пошта)","address":"name@example.com"}],"isDefault":false,"socialNetworks":[{"type":"Facebook","url":"https://example.com/username"},{"type":"Instagram","url":"https://example.com/username"},{"type":"Website","url":"https://example.com/username"}]}]
coverageId:2
competitiveSelection:false
areThereBenefits:true
registrationStartTime:2025-02-19T00:00:00.000Z
registrationEndTime:2025-02-20T00:00:00.000Z
minimumAge:2
maximumAge:25
subDirectionIds:[54]
plannedFormatOfClasses:Offline
descriptionOfTheEnrollmentProcedure:Інформація про відбір( Є конкурсний відбір)
venueName:Місце проведення( не обов'язкове)
termsOfParticipation:Умови участі( не обов'язкове)
price:3000
benefits:Опис пільгових умов( не обов'язкове)
competitiveEventDescriptionItems:[{"sectionName":"hdre","description":"Опис опису-Jgbc ogbce"}]
imageIds:[]
EnrollmentProcedureDescription:Опис процедури
IsPaid:true
directionSubDirectionIds:17
// EnrollmentProcedureDescription:gvv

Steps to reproduce

  1. Enter the invalid ID for the value of the competitiveEventAccountingTypeId key.
  • 5
  1. Press the 'Send' button.
  2. Review the response.

Actual result
201-Created

Image

Expected result
400-Bad Request

Image

Postconditions
Delete the competition draft.

User story
#1535

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

ToDo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions