Update documentation content

This commit is contained in:
2026-03-15 05:32:05 +01:00
parent 7d10f030f3
commit c0b92596ec
30 changed files with 1840 additions and 29 deletions
@@ -0,0 +1,46 @@
---
title: API CRUD OPTIONS | Datasquirel docs
description: Inspect available CRUD operations for a table
page_title: OPTIONS
page_description: Retrieve metadata about the CRUD operations available for a table.
---
## Overview
The OPTIONS endpoint returns metadata about the available operations for a given table — useful for dynamically discovering what fields and actions are supported.
## REST API
```
OPTIONS /api/v1/crud/{dbName}/{tableName}
```
**Headers:**
```
Authorization: Bearer YOUR_API_KEY
```
## Response
The response includes information about the table schema and the HTTP methods supported for that table.
```json
{
"success": true,
"payload": {
"methods": ["GET", "POST", "PUT", "DELETE"],
"schema": [
{ "name": "id", "type": "int", "required": true },
{ "name": "name", "type": "varchar(255)", "required": true },
{ "name": "email", "type": "varchar(255)", "required": false }
]
}
}
```
## Related
- [GET](/docs/api-reference/crud/get) — read records
- [POST](/docs/api-reference/crud/post) — create records
- [PUT](/docs/api-reference/crud/put) — update records
- [DELETE](/docs/api-reference/crud/delete) — delete records