Azure / Azure/data-api-builder

Support search by PK without the need to specify column names

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

Description

In DAB it is possible, via REST, to get a specific item by specifying the PK in the URL path, using a `/column1/value1/.../columnN/valueN` pattern.

We should evaluate the ability to have an option in the configuration file, say `positional-pk` for example:

```
"rest": {
"path": "/api",
"positional-pk": true
}
```

that would allow to search by PK using only the values and omitting columns names, for example, from this

```
/api/todo/id/1
```

to

```
/api/todo/1
```

which is very common in REST calls

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.