Skip to main content
POST
/
api
/
v1
/
endpoints
cURL
curl --request POST \
  --url http://localhost:52000/api/v1/endpoints \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": 123,
  "name": "<string>",
  "type": "<string>",
  "description": "<string>",
  "url": "<string>",
  "body": "<unknown>",
  "successCondition": "<string>",
  "httpMethod": "<string>",
  "httpHeaders": {},
  "httpParameters": {},
  "grpcServiceName": "<string>",
  "grpcMethodName": "<string>",
  "grpcStubPath": "<string>"
}
'
{
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "id": 123,
  "name": "<string>",
  "description": "<string>",
  "type": "<string>",
  "url": "<string>",
  "body": "<string>",
  "successCondition": "<string>",
  "httpMethod": "<string>",
  "httpHeaders": "<string>",
  "httpParameters": "<string>",
  "grpcServiceName": "<string>",
  "grpcMethodName": "<string>",
  "grpcStubPath": "<string>",
  "projectId": 123
}

Body

application/json
projectId
integer<int64>
required
name
string
required
Minimum string length: 1
type
string
required
Minimum string length: 1
description
string
url
string
body
any
successCondition
string
httpMethod
string
httpHeaders
object
httpParameters
object
grpcServiceName
string
grpcMethodName
string
grpcStubPath
string

Response

200 - */*

OK

createdAt
string<date-time>
updatedAt
string<date-time>
id
integer<int64>
name
string
description
string
type
string
url
string
body
string
successCondition
string
httpMethod
string
httpHeaders
string
httpParameters
string
grpcServiceName
string
grpcMethodName
string
grpcStubPath
string
projectId
integer<int64>