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

Echo

Endpoint

Echo JSON body

POST
http://localhost:5088
/api/echo/json

Echo JSON body › Request Body

message
​string · minLength: 1 · required
​object | null
repeat
​boolean
Default: false

Echo JSON body › Responses

Echo result

​object
contentType
​string | null
POST/api/echo/json
curl --request POST \ --url http://localhost:5088/api/echo/json \ --header 'Content-Type: application/json' \ --data ' { "message": "message", "tags": { "key": "string" }, "repeat": false } '
shell
Example Request Body
{ "message": "message", "tags": { "key": "string" }, "repeat": false }
json
Example Responses
{ "echo": { "message": "message", "length": 0, "tags": { "key": "string" }, "receivedAt": "2024-08-25T15:00:00Z" }, "contentType": "contentType" }
json
application/json

Echo form-urlencoded body

POST
http://localhost:5088
/api/echo/form

Echo form-urlencoded body › Request Body

name
​string · required
email
​string | null
notes
​string | null

Echo form-urlencoded body › Responses

Echo result

name
​string
email
​string | null
notes
​string | null
contentType
​string
receivedAt
​string · date-time
POST/api/echo/form
curl --request POST \ --url http://localhost:5088/api/echo/form \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data name=name \ --data email=email \ --data notes=notes
shell
Example Request Body
{ "name": "name", "email": "email", "notes": "notes" }
json
Example Responses
{ "name": "name", "email": "email", "notes": "notes", "contentType": "contentType", "receivedAt": "2024-08-25T15:00:00Z" }
json
application/json

Echo multipart form (optional file)

POST
http://localhost:5088
/api/echo/multipart

Echo multipart form (optional file) › Request Body

name
​string · required
notes
​string
attachment
​string

Optional file upload

Echo multipart form (optional file) › Responses

Echo result

name
​string
notes
​string | null
fileName
​string | null
fileContentType
​string | null
fileSizeBytes
​integer | null · int64
receivedAt
​string · date-time
POST/api/echo/multipart
curl --request POST \ --url http://localhost:5088/api/echo/multipart \ --header 'Content-Type: multipart/form-data' \ --form name=name \ --form notes=notes \ --form attachment=attachment
shell
Example Request Body
{ "name": "name", "notes": "notes", "attachment": "attachment" }
json
Example Responses
{ "name": "name", "notes": "notes", "fileName": "fileName", "fileContentType": "fileContentType", "fileSizeBytes": 0, "receivedAt": "2024-08-25T15:00:00Z" }
json
application/json

ItemsUtilities