Azure / Azure/data-api-builder
Support search by PK without the need to specify column names
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 370
- Ø Merge
- 3 T. 22 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Das Issue nennt keine Dateien oder Tests. Lokalisieren Sie den Einstiegspunkt für die REST-Pfadauflösung und die Konfigurationsverarbeitung für den Abschnitt `rest`, und verfolgen Sie anschließend die bestehende Primärschlüsselroute `/column/value`; als erledigt gilt die Aufgabe, wenn die konfigurierte Positionsform `/api/todo/1` akzeptiert, während die bestehende benannte Form weiterhin unterstützt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- api, backend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100