Files
few-line-engine/out/ts/docs/FunctionsApi.md
lborv 66a461f12a Add API documentation and models for Functions, Logs, Projects, Queries, and Redis Management
- Created documentation for FunctionsCreatePostRequest and FunctionsDeletePostRequest.
- Added Log and LogContentInner models with corresponding documentation.
- Introduced LoggerIdFindAllPostRequest and LoggingApi for log management.
- Added Migration and Project models with their respective documentation.
- Implemented ProjectCreatePutRequest and ProjectManagementApi for project management.
- Created Query and QueryCreatePostRequest models with documentation.
- Added RedisNode and RedisNodeCreatePostRequest for Redis management.
- Included Token model for API token management.
- Added a script for git push operations and updated index.ts for API exports.
2025-10-25 17:50:15 +03:00

2.9 KiB

FunctionsApi

All URIs are relative to http://localhost:3000

Method HTTP request Description
functionsCreatePost POST /functions/create Create function
functionsDeletePost POST /functions/delete Delete function

functionsCreatePost

Function functionsCreatePost(functionsCreatePostRequest)

Create a new function in the project

Example

import {
    FunctionsApi,
    Configuration,
    FunctionsCreatePostRequest
} from './api';

const configuration = new Configuration();
const apiInstance = new FunctionsApi(configuration);

let functionsCreatePostRequest: FunctionsCreatePostRequest; //

const { status, data } = await apiInstance.functionsCreatePost(
    functionsCreatePostRequest
);

Parameters

Name Type Description Notes
functionsCreatePostRequest FunctionsCreatePostRequest

Return type

Function

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Function created successfully -
401 Unauthorized -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

functionsDeletePost

functionsDeletePost(functionsDeletePostRequest)

Delete a function from the project

Example

import {
    FunctionsApi,
    Configuration,
    FunctionsDeletePostRequest
} from './api';

const configuration = new Configuration();
const apiInstance = new FunctionsApi(configuration);

let functionsDeletePostRequest: FunctionsDeletePostRequest; //

const { status, data } = await apiInstance.functionsDeletePost(
    functionsDeletePostRequest
);

Parameters

Name Type Description Notes
functionsDeletePostRequest FunctionsDeletePostRequest

Return type

void (empty response body)

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Function deleted successfully -
401 Unauthorized -
404 Function not found -

[Back to top] [Back to API list] [Back to Model list] [Back to README]