Endpoints - Ponceleon-Software/ponce-demos GitHub Wiki

Login

Responses

Login Exitoso

  • code : 200 🟢
  • message: "Succesfuly Logged in"
  • data:
    • result:"successful_auth"
    • id: User id 🧔

Ya está logueado

  • code : 202🟠
  • message: "A user is already logged"
  • data:
    • result:"successful_auth"

Contraseña invalida

  • code : 400 🔴
  • message: "invalid password"
  • data:
    • result:"unsuccessful_auth"

Usuario invalido

  • code : 400 🔴
  • message: "Username/Email is not valid or does not exist"
  • data:
    • result:"unsuccessful_auth"

Parámetros inválidos

  • code : 400 🔴
  • message: "Invalid params"
  • data:
    • result:"unsuccessful_auth"

Parámetros vacíos

  • code : 400 🔴
  • message: "Empty params"
  • data:
    • result:"unsuccessful_auth"

Registro

Responses

Login Exitoso

  • code : 200 🟢
  • message: "Succesfuly Logged in"
  • data:
    • result:"successful_auth"
    • id: User id 🧔

Ya está logueado

  • code : 202🟠
  • message: "A user is already logged"
  • data:
    • result:"successful_auth"

Parámetros Vacíos

  • code : 400 🔴
  • message: "Empty params"
  • data:
    • result:"unsuccessful_register"

Parámetros inválidos

  • code : 400 🔴
  • message: "Invalid params"
  • data:
    • result:"unsuccessful_register" -invalid_params: "Username"|"Email"|"Password"

Datos en uso

  • code : 400 🔴
  • message: "Username or Email already exists"
  • data:
    • result:"unsuccessful_register"

Errores de back en wp (Sin coverage aún)

  • code : 400 🔴
  • message: (get_error_message())
  • data:
    • result:"unsuccessful_register"
    • is_wp_error: True

New_page