curl --request POST \
--url https://api.example.com/api/plan/generate-plan \
--header 'Content-Type: application/json' \
--data '
{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"weeklyHours": 123,
"challengingAreas": [
{}
],
"specificAreas": [
{}
],
"preferredSchedule": "<string>",
"barExamPreparationMaterial": "<string>",
"additionalInformation": "<string>"
}
'{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"weeklyHours": 123,
"challengingAreas": [
{}
],
"specificAreas": [
{}
],
"preferredSchedule": "<string>",
"barExamPreparationMaterial": "<string>",
"additionalInformation": "<string>",
"currentStreak": 123,
"lastRequestDate": "<string>",
"updatedAt": "<string>",
"error": "<string>"
}Generate a personalized bar exam study plan based on user preferences and update user streak
curl --request POST \
--url https://api.example.com/api/plan/generate-plan \
--header 'Content-Type: application/json' \
--data '
{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"weeklyHours": 123,
"challengingAreas": [
{}
],
"specificAreas": [
{}
],
"preferredSchedule": "<string>",
"barExamPreparationMaterial": "<string>",
"additionalInformation": "<string>"
}
'{
"barExamTestDate": "<string>",
"currentScore": 123,
"targetScore": 123,
"weeklyHours": 123,
"challengingAreas": [
{}
],
"specificAreas": [
{}
],
"preferredSchedule": "<string>",
"barExamPreparationMaterial": "<string>",
"additionalInformation": "<string>",
"currentStreak": 123,
"lastRequestDate": "<string>",
"updatedAt": "<string>",
"error": "<string>"
}/workspace/source/src/app/api/plan/generate-plan/route.ts:60-87
curl -X POST 'https://api.lsattraining.com/api/plan/generate-plan?uuid=user123' \
-H 'Content-Type: application/json' \
-d '{
"barExamTestDate": "2024-07-30",
"currentScore": 145,
"targetScore": 165,
"weeklyHours": 20,
"challengingAreas": ["Contracts", "Torts"],
"specificAreas": ["Case Analysis", "Legal Writing"],
"preferredSchedule": "Morning",
"barExamPreparationMaterial": "Barbri",
"additionalInformation": "Need help with essay writing"
}'
{
"barExamTestDate": "2024-07-30",
"currentScore": 145,
"targetScore": 165,
"weeklyHours": 20,
"challengingAreas": ["Contracts", "Torts"],
"specificAreas": ["Case Analysis", "Legal Writing"],
"preferredSchedule": "Morning",
"barExamPreparationMaterial": "Barbri",
"additionalInformation": "Need help with essay writing",
"currentStreak": 5,
"lastRequestDate": "2024-03-03",
"updatedAt": "2024-03-03T10:30:00.000Z"
}
{
"error": "UUID is required"
}
{
"error": "Missing required fields"
}
{
"error": "User not found"
}
{
"error": "Failed to update Firestore document"
}
{
"error": "Failed to update user data"
}
/workspace/source/src/app/api/plan/generate-plan/route.ts