Skip to main content

API Endpoints

Auto-generated - Do not edit manually.

Framework M exposes REST APIs for all DocTypes with api_resource = True.


Resource API

Base URL: /api/v1/resource/{DocType}

MethodEndpointDescription
GET/{DocType}List records (paginated)
GET/{DocType}/{id}Get single record
POST/{DocType}Create record
PUT/{DocType}/{id}Update record
DELETE/{DocType}/{id}Delete record

Query Parameters

ParameterTypeDescription
limitintMax records (default: 20, max: 1000)
offsetintSkip records
order_bystrSort field (prefix - for desc)
filtersJSONFilter specs

Filter Format

[
{"field": "status", "operator": "eq", "value": "Active"},
{"field": "amount", "operator": "gte", "value": 100}
]

Operators

OperatorDescription
eqEquals
neNot equals
gtGreater than
gteGreater than or equal
ltLess than
lteLess than or equal
likeContains (SQL LIKE)
inIn list
is_nullIs null

Meta API

EndpointDescription
GET /api/v1/meta/{DocType}Get DocType schema

Returns JSON Schema for the DocType including:

  • Field definitions
  • Required fields
  • Default values
  • Validation rules