Skip to content

Accept the port request field when creating routes #4257

@danail-branekov

Description

@danail-branekov

Background

According to the CF API, user can specify a port number when creating routes. That port only makes sense for TCP routes.
Korifi does not support TCP routes, however the API invocation should not fail if port is specified

Acceptance

WHEN I create a route via

curl "https://api.example.org/v3/routes" \
  -X POST \
  -H "Authorization: bearer [token]" \
  -H "Content-type: application/json" \
  -d '{
    "host": "a-hostname",
    "path": "/some_path",
    "port": 6666,
    "relationships": {
       ...
    },
  }'

THEN I get a HTTP 201 created response

Dev notes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🇪🇺 To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions