Routes
Create a new Route
Create a new Route
post/{workspace}/routes
Path parameters
workspacestring required
Example:team-payments
The name of the workspace
Request body
Example request
{
"hosts": [
"foo.example.com",
"foo.example.us"
],
"id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
"name": "example-route",
"paths": [
"/v1",
"/v2"
],
"service": {
"id": "bd380f99-659d-415e-b0e7-72ea05df3218"
}
}Response
Successfully created Route
Example response
{
"hosts": [
"foo.example.com",
"foo.example.us"
],
"id": "56c4566c-14cc-4132-9011-4139fcbbe50a",
"name": "example-route",
"paths": [
"/v1",
"/v2"
],
"service": {
"id": "bd380f99-659d-415e-b0e7-72ea05df3218"
}
}Changes
Changed in 2 of the 11 revisions of this API.3
- ○
the
protocolsrequest property default value changed fromhttphttpstohttpsrequest-property-default-value-changed
- ○
the
protocolsresponse's property default value changed fromhttphttpstohttpsfor the status201response-property-default-value-changed
- ○
- ○
endpoint added
endpoint-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 11 revisions, 1 has no diff computed.