This repository contains comprehensive documentation for the EsCore Application, including a complete guide to using the API
POST:
https://escore-app.et.r.appspot.com/api/register
Request Body
{
"fullName": "string",
"email": "string",
"password": "string"
}
Response Success
{
"error": false,
"message": "User registered successfully!"
}
Response Failed
{
"error": true,
"message": "Internal server error!",
}
POST:
https://escore-app.et.r.appspot.com/api/login
Request Body
{
"email": "string",
"password": "string"
}
Response Success
{
"error": false,
"message": "Success logged in!",
"loginResult": {
"userId": "string",
"email": "string"
"fullName": "string"
"token": "string"
}
}
Response Failed
{
"error": true,
"message": "Internal server error!",
}
GET:
https://escore-app.et.r.appspot.com/api/history/:email
Response Success
{
"error": false,
"message": "History predictions retrieved successfully!",
"email": "string"
"predictions": [
{
"id": "string",
"title": "string",
"essay": "string",
"createdAt": "2024-12-05T14:56:13.606Z",
"predicted_result": {
"score": "string",
"suggestion": "string"
}
}
]
}
Response Failed
{
"error": true,
"message": "Internal server error!",
}
POST:
https://backend-ml-g4eq4oioha-et.a.run.app/predict
Request Body
{
"user_email": "string",
"title": "string",
"essay": "string"
}
Response Success
{
"error": false,
"message": "Essay has been predicted!",
"user_email": "string",
"result": {
"title": "string",
"essay": "string"
"createdAt": "timestamp"
"predicted_result": {
"score": "string"
"suggestion": "string"
}
}
}
Response Failed
{
"error": true,
"message": "An error occurred while processing the request!",
}