Azure / Azure/data-api-builder

[Enhancement]: The rest endpoint is in the background odata. But it doesn't present an OData MetadataEndpoint

Open
#1,566 3 comments 2 reactions 0 assignees View on GitHub
enhancement triage
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

### What happened?

The `/rest/...` of the genereated API contains at the end technically an ODATA endpoint. But the problem is for many API tools is, that the generated part doesn't make the `$metadata` endpoint accessible. This endpoint is for example used in PowerBi to be connected to an OData API and get the schema and all valid endpoints from it.

So my expactation would be that I could call:

`rest/$metadata` and get the XML schema of the OData feed back.

Currently I get:

```json
{"error":{"code":"EntityNotFound","message":"Invalid Entity path: $metadata.","status":404}}
```

### Version

Azure Static Web Apps CLI (1.1.3)

### What database are you using?

Azure SQL

### What hosting model are you using?

Static Web Apps (SWA)

### Which API approach are you accessing DAB through?

REST

### Relevant log output

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.