0% found this document useful (0 votes)
2 views3 pages

Platform Service API Testing

The document outlines various API testing results, all indicating failures due to 'Invalid or expired token' errors for multiple admin actions including uploading images, deleting categories, and creating team members. Additionally, a bulk delete request for contact submissions failed due to a 'Bad Request' error, citing no IDs provided for deletion. All responses returned a 401 Unauthorized status code, highlighting an authentication issue across different endpoints.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Platform Service API Testing

The document outlines various API testing results, all indicating failures due to 'Invalid or expired token' errors for multiple admin actions including uploading images, deleting categories, and creating team members. Additionally, a bulk delete request for contact submissions failed due to a 'Bad Request' error, citing no IDs provided for deletion. All responses returned a 401 Unauthorized status code, highlighting an authentication issue across different endpoints.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

API Testing

Problem:
Even after re-running it again and again, it keeps
saying its invalid token has expired.

Gallery:-
[Link] Upload Images to Gallery (Admin)
{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": [
"Invalid or expired token"
],
"timestamp": "2026-04-08T13:54:06.908Z",
"path": "/platform-service/admin/gallery/bd7fb73b-0f29-4c33-8118-
d6bddd03e78d/images?page=1&limit=20"
}

[Link] Delete Gallery Category (Admin)


{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": [
"Invalid or expired token"
],
"timestamp": "2026-04-08T13:54:30.370Z",
"path": "/platform-service/admin/gallery/bd7fb73b-0f29-4c33-8118-
d6bddd03e78d"
}
[Link] Get All Categories (Admin)
{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": [
"Invalid or expired token"
],
"timestamp": "2026-04-08T13:54:51.708Z",
"path": "/platform-service/admin/gallery?page=1&limit=10"
}

Contact us(admin):-
[Link] Bulk Delete Contact Submissions
(Admin)
"success": false,
"statusCode": 400,
"error": "Bad Request",
"message": [
"No IDs provided for deletion"
],
"timestamp": "2026-04-08T14:21:39.325Z",
"path": "/platform-service/admin/contact-us"
}

Our team:-
[Link] Create Team Member (Admin)
{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": [
"Invalid or expired token"
],
"timestamp": "2026-04-08T14:01:45.359Z",
"path": "/platform-service/admin/team"
}

Branches:-
1. POST Create Branch (Admin)
{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": [
"Invalid or expired token"
],
"timestamp": "2026-04-08T14:08:11.393Z",
"path": "/platform-service/admin/branches"
}

Company:-
[Link] Create Company (Admin)
{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": [
"Invalid or expired token"
],
"timestamp": "2026-04-08T14:13:16.144Z",
"path": "/platform-service/company"
}

You might also like