Skip to content

[Bug]: Wrong REST path generated in OpenAPI spec #1633

@yorek

Description

@yorek

What happened?

When adding the entity via DAB CLI, the generated path for REST contains an unescaped slash. This is the DAB CLI command I used:

dab add Todos --source dbo.todos --permissions "anonymous:*" --rest todos

and this is the configuration I got for the created entity:

"Todos": {
      ...
      "rest": {
        "enabled": true,
        "path": "/todos",
        "methods": [
          "get",
          "post",
          "put",
          "patch",
          "delete"
        ]
      },
    ...
    }

the path at which REST API are available is:

/api/odos

instead of the correct:

/api/Todos

Version

Microsoft.DataApiBuilder 0.8.44-rc+ebe4ef414deaf7670b579fe160b872c6b682c114

What database are you using?

Azure SQL

What hosting model are you using?

Local (including CLI)

Which API approach are you accessing DAB through?

REST

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageissues to be triaged

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions