1. auth
LeksiGo v2
  • auth
    • login
      POST
    • register
      POST
    • logout
      POST
  • child
    • get [parent]
      GET
    • post [parent]
      POST
    • get [insitution]
      GET
    • put [parent]
      PUT
    • delete [parent]
      DELETE
  • users
    • get
      GET
    • post
      POST
    • show
      GET
    • put
      PUT
    • delete
      DELETE
  • institution
    • get
      GET
    • post [admin]
      POST
    • show
      GET
    • updateStatus
      PATCH
    • get applicants [institution]
      GET
    • apply applicants [institution]
      POST
  • teacher
    • get
      GET
    • post
      POST
    • put
      PUT
    • updateStatus
      PATCH
  • playground
    • teacher
      • course
        • store
        • get
        • show
        • put
        • active status
      • modul
        • post
        • put
        • active status
        • submit answer
  1. auth

register

Developing
POST
/auth/register

Request

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/auth/register' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Antonio Refaldo",
    "username": "antonio",
    "email": "antonio@gmail.com",
    "phone": "091231231",
    "password": "123456"
}'
Response Response Example
{"success":false,"error":"Cannot destructure property 'name' of 'req.body' as it is undefined."}
Modified at 2026-05-10 03:28:23
Previous
login
Next
logout
Built with