APIToGoAPIToGo
Sample Dotnet Backend
  • API Reference
  • Pricing
Information
Meta
    API welcome messageget
Health
    Health check (deploy probe)get
Items
    List itemsgetCreate itempostGet item by idgetReplace itemputDelete itemdeletePartially update itempatch
Echo
    Echo JSON bodypostEcho form-urlencoded bodypostEcho multipart form (optional file)post
Utilities
    Basic arithmeticpostSearch items by textgetReflect request headersget
Test
    Plain text responsegetReturn arbitrary HTTP statusget
Schemas
powered by apitogo
sample-dotnet-backend
sample-dotnet-backend

Utilities

Endpoint

Basic arithmetic

POST
http://localhost:5088
/api/calculate

Basic arithmetic › Request Body

operation
​string · required

add, subtract, multiply, divide (or +, -, *, /)

Example: add
a
​number · double
b
​number · double

Basic arithmetic › Responses

Result

operation
​string
a
​number · double
b
​number · double
result
​number · double
POST/api/calculate
curl --request POST \ --url http://localhost:5088/api/calculate \ --header 'Content-Type: application/json' \ --data ' { "operation": "add", "a": 0, "b": 0 } '
shell
Example Request Body
{ "operation": "add", "a": 0, "b": 0 }
json
Example Responses
{ "operation": "operation", "a": 0, "b": 0, "result": 0 }
json
application/json

Search items by text

GET
http://localhost:5088
/api/search

Search items by text › query Parameters

q
​string

Search term (name, description, category)

limit
​integer · min: 1 · max: 100
Default: 10
offset
​integer · min: 0
Default: 0

Search items by text › Responses

200

Search results

query
​string
limit
​integer
offset
​integer
total
​integer
​object[]
GET/api/search
curl --request GET \ --url http://localhost:5088/api/search
shell
Example Responses
{ "query": "query", "limit": 0, "offset": 0, "total": 0, "items": [ { "id": "00000000-0000-0000-0000-000000000000", "name": "name", "description": "description", "category": "category", "price": 0, "createdAt": "2024-08-25T15:00:00Z", "updatedAt": "2024-08-25T15:00:00Z" } ] }
json
application/json

Reflect request headers

GET
http://localhost:5088
/api/headers

Reflect request headers › Responses

200

Request metadata

method
​string
path
​string | null
query
​string | null
​object
GET/api/headers
curl --request GET \ --url http://localhost:5088/api/headers
shell
Example Responses
{ "method": "method", "path": "path", "query": "query", "headers": { "key": "string" } }
json
application/json

EchoTest