ita-social-projects / ita-social-projects/StreetCode

[TC][Admin/Create a new Streetcode][API] Verify that admin can create a new streetcode using the POST method

Open
#2,004 0 comments 0 reactions 1 assignee Claimed by @ArseniiKD View on GitHub
(Epic#2) Admin/New StreetCode API Test case
Dominant language
C#
Stars
27
Forks
14
PR merge metrics
No merged PRs in 30d

Description

**Priority:** High

**Preconditions**
1. Postman is opened
2. User is authorized
3. POST method is chosen
4. All required data has been added to the body:
{
"index": 623,
"streetcodeType": 1,
"title": "Qwe",
"firstName": "",
"lastName": "",
"alias": "",
"transliterationUrl": "qwe-ewq",
"dateString": "65",
"eventStartOrPersonBirthDate": "2024-03-31T13:46:48.769Z",
"eventEndOrPersonDeathDate": null,
"tags": [],
"teaser": "efasf",
"imagesIds": [5879],
"imagesDetails":
[
{
"id": 0,
"imageId": 5879,
"alt": "1"
}
],
"audioId": null,
"text": null,
"videos": [],
"facts": [],
"timelineItems": [],
"arts": [],
"streetcodeArtSlides": [],
"relatedFigures": [],
"streetcodeCategoryContents": [],
"partners": [],
"subtitles":
[
{
"subtitleText": ""
}
],
"viewCount": 0,
"coordinates": [],
"toponyms": [],
"statisticRecords": [],
"status": 0
}

**Steps to reproduce**
1. Input a valid URL endpoint [https://backend.historycode.online/api/streetcode/Create](url)
2. Click on 'Send' button

**Expected result**
Status code - 200 OK
Admin succesfully created a new streetcode

**User story:** #1160

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.