Comments (4)
This information has been moved out of the OPTIONS for individual endpoints and consolidated in the root API description.
from postgrest.
Reopening this issue because people have been asking how to find out the primary and foreign keys of a relation in order to do resource embedding, and the openapi description is proving insufficient.
As mentioned above, I'm considering having each endpoint include a describedby http header link. It would go to another endpoint that provides metadata about the original. Kind of like our old OPTIONS way but without abusing the options verb.
from postgrest.
They can create a custom view that describes their schema with all the details they need.
Here is a base query to start from
https://gist.github.com/ruslantalpa/b2f10eb1b5f6dd0fc1c154e071a1c91b
from postgrest.
As mentioned in #790 (comment) having the users provide their own query is redundant work, the ideas here are worth considering, let's follow this issue on #790.
from postgrest.
Related Issues (20)
- Rejected `application/vnd.pgrst.object+json` returns the media type sucessfully
- Fields operations on select HOT 1
- Content-type not set when function returning a domain representing media type is requested with Accept "*/*" header HOT 2
- Response body encoded as JSON string when function returning a domain representing media type is requested with Accept "*/*" header HOT 1
- Improve string handling in Query generation for additional safety and performance HOT 1
- Misleading error PGRST121 HOT 2
- Document the need to use double embedding when doing OR filtering across embeds
- On-demand server-timing HOT 3
- Event triggers don't work on read replicas HOT 6
- Add the error code in the logs HOT 3
- OpenAPI does not tag a column as FK if it also has a UNIQUE constraint
- IO tests depend too heavily on timing / sleeping HOT 12
- Conditional Puts/Upserts HOT 1
- Error PGRST200 on a view
- arm builds failing in CI HOT 4
- Cannot nix run PostgREST on aarch64-darwin HOT 2
- Add pool checkout to `Server-Timing` HOT 1
- POST header Prefer: return=headers-only not returning LOCATION information HOT 2
- `600 Operator Error` status code
- The Case of count() : doc not ok HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgrest.