Support comment updates and multipart post uploads

هذا الالتزام موجود في:
2026-05-16 01:54:52 +03:00
الأصل 160bb27a59
التزام 045c74014c
11 ملفات معدلة مع 534 إضافات و48 حذوفات

عرض الملف

@@ -1341,10 +1341,6 @@
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
@@ -1352,8 +1348,44 @@
],
"url": "{{baseUrl}}/posts",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"First text post with mention @{{targetUsername}} #music\",\n \"taggedUserIds\": [\"{{targetUserId}}\"],\n \"mentionUsernames\": [\"{{targetUsername}}\"],\n \"location\": \"Riyadh, Saudi Arabia\",\n \"latitude\": 24.7136,\n \"longitude\": 46.6753,\n \"visibility\": \"public\"\n}"
"mode": "formdata",
"formdata": [
{
"key": "content",
"value": "First text post with mention @{{targetUsername}} #music",
"type": "text"
},
{
"key": "taggedUserIds",
"value": "{{targetUserId}}",
"type": "text"
},
{
"key": "mentionUsernames",
"value": "{{targetUsername}}",
"type": "text"
},
{
"key": "location",
"value": "Riyadh, Saudi Arabia",
"type": "text"
},
{
"key": "latitude",
"value": "24.7136",
"type": "text"
},
{
"key": "longitude",
"value": "46.6753",
"type": "text"
},
{
"key": "visibility",
"value": "public",
"type": "text"
}
]
}
},
"event": [
@@ -1689,10 +1721,6 @@
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
@@ -1700,8 +1728,39 @@
],
"url": "{{baseUrl}}/posts/{{postId}}",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"Updated post content with @{{targetUsername}} #live\",\n \"taggedUserIds\": [\"{{targetUserId}}\"],\n \"mentionUsernames\": [\"{{targetUsername}}\"],\n \"location\": \"Jeddah, Saudi Arabia\",\n \"latitude\": 21.5433,\n \"longitude\": 39.1728\n}"
"mode": "formdata",
"formdata": [
{
"key": "content",
"value": "Updated post content with @{{targetUsername}} #live",
"type": "text"
},
{
"key": "taggedUserIds",
"value": "{{targetUserId}}",
"type": "text"
},
{
"key": "mentionUsernames",
"value": "{{targetUsername}}",
"type": "text"
},
{
"key": "location",
"value": "Jeddah, Saudi Arabia",
"type": "text"
},
{
"key": "latitude",
"value": "21.5433",
"type": "text"
},
{
"key": "longitude",
"value": "39.1728",
"type": "text"
}
]
}
},
"event": [
@@ -2064,10 +2123,6 @@
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
@@ -2075,8 +2130,54 @@
],
"url": "{{baseUrl}}/posts",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"Audio post with waveform #oud #hijaz\",\n \"audioUrl\": \"https://cdn.example.com/audio-sample.mp3\",\n \"durationSeconds\": 54,\n \"thumbnailUrl\": \"https://cdn.example.com/audio-cover.jpg\",\n \"style\": \"Sharqi\",\n \"maqam\": \"Hijaz\",\n \"rhythmSignature\": \"6/8\",\n \"waveformPeaks\": [12, 38, 27, 49, 22, 44],\n \"visibility\": \"public\"\n}"
"mode": "formdata",
"formdata": [
{
"key": "content",
"value": "Audio post with waveform #oud #hijaz",
"type": "text"
},
{
"key": "audioUrl",
"value": "https://cdn.example.com/audio-sample.mp3",
"type": "text"
},
{
"key": "durationSeconds",
"value": "54",
"type": "text"
},
{
"key": "thumbnailUrl",
"value": "https://cdn.example.com/audio-cover.jpg",
"type": "text"
},
{
"key": "style",
"value": "Sharqi",
"type": "text"
},
{
"key": "maqam",
"value": "Hijaz",
"type": "text"
},
{
"key": "rhythmSignature",
"value": "6/8",
"type": "text"
},
{
"key": "waveformPeaks",
"value": "[12,38,27,49,22,44]",
"type": "text"
},
{
"key": "visibility",
"value": "public",
"type": "text"
}
]
}
},
"event": [
@@ -2140,10 +2241,6 @@
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
@@ -2151,8 +2248,29 @@
],
"url": "{{baseUrl}}/posts",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"Invalid post\",\n \"videoUrl\": \"https://cdn.example.com/video.mp4\",\n \"audioUrl\": \"https://cdn.example.com/audio.mp3\",\n \"visibility\": \"public\"\n}"
"mode": "formdata",
"formdata": [
{
"key": "content",
"value": "Invalid post",
"type": "text"
},
{
"key": "videoUrl",
"value": "https://cdn.example.com/video.mp4",
"type": "text"
},
{
"key": "audioUrl",
"value": "https://cdn.example.com/audio.mp3",
"type": "text"
},
{
"key": "visibility",
"value": "public",
"type": "text"
}
]
}
},
"event": [
@@ -2528,6 +2646,40 @@
}
]
},
{
"name": "Update Comment",
"request": {
"method": "PATCH",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"url": "{{baseUrl}}/comments/{{commentId}}",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"Edited comment @{{secondaryUsername}}\",\n \"mentionUsernames\": [\"{{secondaryUsername}}\"]\n}"
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\u0027Status is 200\u0027, function () { pm.response.to.have.status(200); });",
"const json = pm.response.json();",
"pm.expect(json.content).to.include(\u0027Edited comment\u0027);"
]
}
}
]
},
{
"name": "Delete Comment",
"request": {
@@ -3812,10 +3964,6 @@
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
@@ -3823,8 +3971,19 @@
],
"url": "{{baseUrl}}/posts",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"E2E text post\",\n \"visibility\": \"public\"\n}"
"mode": "formdata",
"formdata": [
{
"key": "content",
"value": "E2E text post",
"type": "text"
},
{
"key": "visibility",
"value": "public",
"type": "text"
}
]
}
}
},
@@ -3914,10 +4073,6 @@
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
@@ -3925,8 +4080,29 @@
],
"url": "{{baseUrl}}/posts",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"Invalid post\",\n \"videoUrl\": \"https://cdn.example.com/video.mp4\",\n \"audioUrl\": \"https://cdn.example.com/audio.mp3\",\n \"visibility\": \"public\"\n}"
"mode": "formdata",
"formdata": [
{
"key": "content",
"value": "Invalid post",
"type": "text"
},
{
"key": "videoUrl",
"value": "https://cdn.example.com/video.mp4",
"type": "text"
},
{
"key": "audioUrl",
"value": "https://cdn.example.com/audio.mp3",
"type": "text"
},
{
"key": "visibility",
"value": "public",
"type": "text"
}
]
}
},
"event": [
@@ -3946,15 +4122,22 @@
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": "{{baseUrl}}/posts",
"body": {
"mode": "raw",
"raw": "{\n \"content\": \"No token request\",\n \"visibility\": \"public\"\n}"
"mode": "formdata",
"formdata": [
{
"key": "content",
"value": "No token request",
"type": "text"
},
{
"key": "visibility",
"value": "public",
"type": "text"
}
]
}
},
"event": [