407 lines
11 KiB
JSON
407 lines
11 KiB
JSON
{
|
|
"source": "Local HTTP integration tests with real controllers, JWT authentication and private MongoDB. Synthetic test accounts. Tokens redacted; not production responses. No response envelope.",
|
|
"capturedAt": "2026-11-14T22:36:43.109Z",
|
|
"examples": [
|
|
{
|
|
"name": "Signup start",
|
|
"method": "POST",
|
|
"path": "/auth/signup/start",
|
|
"status": 201,
|
|
"response": {
|
|
"message": "Verification code sent",
|
|
"email": "draft_contract_1794695801043@example.com",
|
|
"signupId": "6af8e27a21155fc9d97d0c46"
|
|
}
|
|
},
|
|
{
|
|
"name": "Signup verify",
|
|
"method": "POST",
|
|
"path": "/auth/signup/verify",
|
|
"status": 200,
|
|
"response": {
|
|
"message": "Email verified",
|
|
"signupToken": "<redacted-test-signup-token>"
|
|
}
|
|
},
|
|
{
|
|
"name": "Signup complete",
|
|
"method": "POST",
|
|
"path": "/auth/signup/complete",
|
|
"status": 200,
|
|
"response": {
|
|
"message": "Account created successfully",
|
|
"accessToken": "<redacted-test-access-token>",
|
|
"refreshToken": "<redacted-test-refresh-token>",
|
|
"user": {
|
|
"id": "6af8e27a8c33eceb93de358f",
|
|
"name": "Draft Contract",
|
|
"musicGenres": [
|
|
"Tarab",
|
|
"Pop"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "Save draft",
|
|
"method": "POST",
|
|
"path": "/posts/drafts",
|
|
"status": 201,
|
|
"response": {
|
|
"content": "Private unfinished text",
|
|
"_id": "6af8e27a8c33eceb93de35a4",
|
|
"authorId": "6af8e27a8c33eceb93de358f",
|
|
"isDraft": true,
|
|
"status": "draft",
|
|
"createdAt": "2026-11-14T22:36:42.848Z",
|
|
"updatedAt": "2026-11-14T22:36:42.848Z",
|
|
"id": "6af8e27a8c33eceb93de35a4",
|
|
"draftId": "6af8e27a8c33eceb93de35a4"
|
|
}
|
|
},
|
|
{
|
|
"name": "Report options",
|
|
"method": "GET",
|
|
"path": "/reports/options",
|
|
"status": 200,
|
|
"response": {
|
|
"reasons": [
|
|
{
|
|
"id": "spam",
|
|
"value": "spam",
|
|
"label": "Spam",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "harassment",
|
|
"value": "harassment",
|
|
"label": "Harassment",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "hate_speech",
|
|
"value": "hate_speech",
|
|
"label": "Hate speech",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "nudity",
|
|
"value": "nudity",
|
|
"label": "Nudity",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "violence",
|
|
"value": "violence",
|
|
"label": "Violence",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "scam",
|
|
"value": "scam",
|
|
"label": "Scam",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "intellectual_property",
|
|
"value": "intellectual_property",
|
|
"label": "Intellectual property",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "self_harm",
|
|
"value": "self_harm",
|
|
"label": "Self harm",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "other",
|
|
"value": "other",
|
|
"label": "Other",
|
|
"targetType": "user",
|
|
"target": "user"
|
|
},
|
|
{
|
|
"id": "spam",
|
|
"value": "spam",
|
|
"label": "Spam",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "harassment",
|
|
"value": "harassment",
|
|
"label": "Harassment",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "hate_speech",
|
|
"value": "hate_speech",
|
|
"label": "Hate speech",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "nudity",
|
|
"value": "nudity",
|
|
"label": "Nudity",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "violence",
|
|
"value": "violence",
|
|
"label": "Violence",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "scam",
|
|
"value": "scam",
|
|
"label": "Scam",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "intellectual_property",
|
|
"value": "intellectual_property",
|
|
"label": "Intellectual property",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "self_harm",
|
|
"value": "self_harm",
|
|
"label": "Self harm",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "other",
|
|
"value": "other",
|
|
"label": "Other",
|
|
"targetType": "post",
|
|
"target": "post"
|
|
},
|
|
{
|
|
"id": "spam",
|
|
"value": "spam",
|
|
"label": "Spam",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "harassment",
|
|
"value": "harassment",
|
|
"label": "Harassment",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "hate_speech",
|
|
"value": "hate_speech",
|
|
"label": "Hate speech",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "nudity",
|
|
"value": "nudity",
|
|
"label": "Nudity",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "violence",
|
|
"value": "violence",
|
|
"label": "Violence",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "scam",
|
|
"value": "scam",
|
|
"label": "Scam",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "intellectual_property",
|
|
"value": "intellectual_property",
|
|
"label": "Intellectual property",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "self_harm",
|
|
"value": "self_harm",
|
|
"label": "Self harm",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "other",
|
|
"value": "other",
|
|
"label": "Other",
|
|
"targetType": "comment",
|
|
"target": "comment"
|
|
},
|
|
{
|
|
"id": "spam",
|
|
"value": "spam",
|
|
"label": "Spam",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "harassment",
|
|
"value": "harassment",
|
|
"label": "Harassment",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "hate_speech",
|
|
"value": "hate_speech",
|
|
"label": "Hate speech",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "nudity",
|
|
"value": "nudity",
|
|
"label": "Nudity",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "violence",
|
|
"value": "violence",
|
|
"label": "Violence",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "scam",
|
|
"value": "scam",
|
|
"label": "Scam",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "intellectual_property",
|
|
"value": "intellectual_property",
|
|
"label": "Intellectual property",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "self_harm",
|
|
"value": "self_harm",
|
|
"label": "Self harm",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "other",
|
|
"value": "other",
|
|
"label": "Other",
|
|
"targetType": "listing",
|
|
"target": "listing"
|
|
},
|
|
{
|
|
"id": "spam",
|
|
"value": "spam",
|
|
"label": "Spam",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "harassment",
|
|
"value": "harassment",
|
|
"label": "Harassment",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "hate_speech",
|
|
"value": "hate_speech",
|
|
"label": "Hate speech",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "nudity",
|
|
"value": "nudity",
|
|
"label": "Nudity",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "violence",
|
|
"value": "violence",
|
|
"label": "Violence",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "scam",
|
|
"value": "scam",
|
|
"label": "Scam",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "intellectual_property",
|
|
"value": "intellectual_property",
|
|
"label": "Intellectual property",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "self_harm",
|
|
"value": "self_harm",
|
|
"label": "Self harm",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
},
|
|
{
|
|
"id": "other",
|
|
"value": "other",
|
|
"label": "Other",
|
|
"targetType": "repair_shop",
|
|
"target": "repair_shop"
|
|
}
|
|
],
|
|
"targetTypes": [
|
|
"user",
|
|
"post",
|
|
"comment",
|
|
"listing",
|
|
"repair_shop"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "Invalid refresh token",
|
|
"method": "POST",
|
|
"path": "/auth/refresh",
|
|
"status": 401,
|
|
"response": {
|
|
"message": "Invalid or expired refresh token",
|
|
"error": "Unauthorized",
|
|
"statusCode": 401
|
|
}
|
|
}
|
|
]
|
|
}
|