terminal NutriLegBack API
API Status: Checking…
deployed_code

NutriLegBack API Backend

The robust and simple backend for your next big project. Built with performance and developer experience as core pillars.

rocket_launch

Quick Start

curl -X GET "https://www.api.assanetech.com/api/status" \
  -H "Accept: application/json"
GET /api/status Response: 200 OK
security

JWT Authentication

Secure authentication flow with access and refresh tokens via /api/auth.

speed

9 API Groups

Auth, contents, subscriptions, payments, notifications and more — discoverable via /api/docs.

API Endpoints

Live documentation generated from registered routes. Authenticated endpoints require a Bearer JWT token.

Authentication

Registration, login, token refresh and session management.

  • POST /api/auth/forgot-password
    public
  • POST /api/auth/login
    public
  • POST /api/auth/logout
    jwt
  • POST /api/auth/logout-all
    jwt
  • GET /api/auth/me
    jwt
  • POST /api/auth/refresh
    public
  • POST /api/auth/register
    public
  • POST /api/auth/reset-password
    public
  • GET /api/auth/sessions
    jwt
  • DELETE /api/auth/sessions/{deviceId}
    jwt
  • POST /api/auth/verify-reset-token
    public

Contents

CRUD for published and draft content resources.

  • GET /api/contents
    jwt
  • POST /api/contents
    jwt
  • GET /api/contents/{content}
    jwt
  • PUT /api/contents/{content}
    jwt
  • DELETE /api/contents/{content}
    jwt

Notifications

Push notifications, device tokens and read state.

  • GET /api/notifications
    jwt
  • POST /api/notifications/device-token
    jwt
  • POST /api/notifications/read-all
    jwt
  • PATCH /api/notifications/settings
    jwt
  • GET /api/notifications/unread-count
    jwt
  • DELETE /api/notifications/{notification}
    jwt
  • POST /api/notifications/{notification}/read
    jwt

Subscriptions & Plans

Subscription lifecycle and available plans.

  • GET /api/subscription-plans
    jwt
  • POST /api/subscription-plans
    admin
  • PUT /api/subscription-plans/{subscriptionPlan}
    admin
  • DELETE /api/subscription-plans/{subscriptionPlan}
    admin
  • GET /api/subscriptions
    admin
  • POST /api/subscriptions
    jwt
  • GET /api/subscriptions/user/{user}
    jwt
  • PUT /api/subscriptions/{subscription}
    jwt

Payments

PayTech checkout, status sync and IPN callbacks.

  • POST /api/payments
    jwt
  • GET /api/payments
    admin
  • POST /api/payments/ipn
    public
  • GET /api/payments/user/{user}
    jwt
  • PUT /api/payments/{payment}
    jwt
  • GET /api/payments/{payment}
    jwt

Chatbot

Dialogflow-powered conversational endpoints.

  • POST /api/chatbot/message
    jwt

Users & Roles

User management, roles and permissions (admin).

  • GET /api/permissions
    admin
  • POST /api/permissions
    admin
  • PUT /api/permissions/{permission}
    admin
  • DELETE /api/permissions/{permission}
    admin
  • GET /api/roles
    admin
  • POST /api/roles
    admin
  • PUT /api/roles/{role}
    admin
  • DELETE /api/roles/{role}
    admin
  • POST /api/roles/{role}/permissions
    admin
  • GET /api/users
    admin
  • POST /api/users
    admin
  • PUT /api/users/{user}
    jwt
  • DELETE /api/users/{user}
    admin
  • POST /api/users/{user}/roles
    admin
  • PUT /api/users/{user}/status
    admin

Statistics

Dashboard metrics for subscriptions and plans.

  • GET /api/statistics
    admin
  • GET /api/statistics/subscription-plans/{subscriptionPlan}
    admin

Documentation

Meta endpoints for API discovery and health.

  • GET /api/docs
    public
  • GET /api/status
    public

Built-in Monitoring

Track API health, version and environment directly from the integrated status endpoint. No third-party tools required for baseline observability.

  • check_circle GET /api/status — health & version
  • check_circle GET /api/docs — machine-readable docs
  • check_circle GET /up — Laravel health check
{
  "success": true,
  "data": {
    "status": "online",
    "app": "NutriLegBack",
    "version": "1.0.0"
  }
}