A Public API
Overview
This is a public-facing Open API Specification of a single endpoint with a single method served by xinfer.ai.
- API Base URL:
https://api.xinfer.ai
- Version:
2024-01-01
Authentication
The API supports the following authentication methods:
- Bearer Token (via the
Authorization
header) - API Key (via the
key
query parameter)
Endpoint
Add Two or Three Numbers
URL: /api/8wb282el2/my-very-first-api/v1
Method: POST
Description: A demo API for adding two or three numbers.
Request
- Content-Type:
application/json
- Body Parameters:
a
(number, required): The first number. Example:3
b
(number, required): The second number. Example:0.14
c
(number, optional): The third number. Example:0.00156926
Example Request Body
{
"a": 3,
"b": 0.14,
"c": 0.00156926
}
Response
-
200 OK:
- Content-Type:
application/json
- Body:
result
(number): The result of the summation. Example:3.1415926
- Content-Type:
-
Default (4XX Response):
- Content-Type:
application/json
- Body: Additional properties may vary.
- Content-Type:
Example Response
{
"result": 3.1415926
}