Develop a new API endpoint to store crash logs#103
Merged
SauravBizbRolly merged 1 commit intorelease-3.10.0from Dec 8, 2025
Merged
Develop a new API endpoint to store crash logs#103SauravBizbRolly merged 1 commit intorelease-3.10.0from
SauravBizbRolly merged 1 commit intorelease-3.10.0from
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
JIRA ID: AMM-1915
We need to implement a secure backend API to allow the mobile app to upload crash log files along with metadata. The uploaded crash logs must be stored in a structured folder format on the server with strict validation and security.
API Endpoint
POST /crash-logs/upload
Request Format:
Content-Type: multipart/form-data
Headers:
JwtToken: <JWT_TOKEN>
User-Agent:
Body:
file = crash log file (.txt)
metadata = JSON string
Metadata JSON:
{
"appVersion": "1.2.3",
"deviceId": "abc123xyz",
"timestamp": "2024-11-25 06:30:00"
}
Rules:
Only .txt files allowed
Frontend must send timestamp in "yyyy-MM-dd HH:mm:ss" format
Metadata will be used to generate filename: userId_appVersion_deviceId_timestamp.txt
Example filename:
963_1.2.3_abc123xyz_2024-11-25_06-30-00.txt
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.