Skip to content

This repository contains comprehensive documentation for the EsCore Application, including a complete guide to using the API

License

Notifications You must be signed in to change notification settings

EsCore-Team/API-Documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

API-Documentation

This repository contains comprehensive documentation for the EsCore Application, including a complete guide to using the API

User Register

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!",
}

User Login

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!",
}

History Prediction

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!",
}

Essay Prediction

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!",
}

About

This repository contains comprehensive documentation for the EsCore Application, including a complete guide to using the API

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •