Code Monkey home page Code Monkey logo

Comments (4)

begriffs avatar begriffs commented on May 4, 2024

This information has been moved out of the OPTIONS for individual endpoints and consolidated in the root API description.

from postgrest.

begriffs avatar begriffs commented on May 4, 2024

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.

ruslantalpa avatar ruslantalpa commented on May 4, 2024

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.

steve-chavez avatar steve-chavez commented on May 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.