ita-social-projects / ita-social-projects/StreetCode
[TC][Admin/Status edit of the streetcode][API] Verify the possibility of editing the streetcode status to "Заархівований" using the PUT method
- 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. PUT 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": 2
}
**Steps to reproduce**
1. Input a valid URL endpoint [https://backend.historycode.online/api/streetcode/Update](url)
2. Click on 'Send' button
**Expected result**
Status code - 200 OK
The status of streetcode is changed to "Заархівований" and it is displayed on the streetcodes list. Streetcode not visible to users.
**User story:** #1160
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.