Skip to content

fikurimax/aichat-assessment

Repository files navigation

AiChat Assesment

Prerequisite

  • PHP 8.0 or above
  • MySQL 5.7+

Setup

  • Clone this project
  • Run composer install
  • Create database aichat_assessment_123
  • Run migration php artisan migrate

Run tests

  • Run run_test.sh

Endpoint

  • Eligibility Check

    • route: /api/campaign/annyversary/check
    • method: GET
    • header:
      • Authorization: Bearer token
    • response:
      • json:
      {
          "status": "ok"|"error",
          "message": string,
          "data": null
      }
      
  • Submission

    • route: /api/campaign/annyversary/submission
    • method: POST
    • header:
      • Authorization: Bearer token
    • request:
      • photo: file (maximum size: 2Mb)
    • response:
      • json:
      {
          "status": "ok"|"error",
          "message": string,
          "data": {
              "code": string
          }
      }
      

Business Flow

  • Eligibility

  • Submission

About

AiChat Assessment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published