Code Monkey home page Code Monkey logo

Comments (4)

ralfhandl avatar ralfhandl commented on August 12, 2024

Hi @gregorwolf,

I was wondering what the /$metadata path would state and checked the OData Transformer you linked above. Result is

    "/$metadata": {
      "get": {
        "summary": "$Metadata endpoint",
        "operationId": "$metadata/get",
        "responses": {
          "200": {
            "description": ""
          }
        }
      }
    }

Now I wonder how this would be helpful. Could you please provide a use case?

Thanks in advance

from odata-openapi.

gregorwolf avatar gregorwolf commented on August 12, 2024

In my current scenario there is an API management system that only allows requests that match the OpenAPI specification.

from odata-openapi.

ralfhandl avatar ralfhandl commented on August 12, 2024

What requirements does your API management system have regarding preciseness of the request description? The example above basically allows any kind of response.

Would it be an option for you to reflect the specialties of your API management system in a post-processing step that adds a system-specific /$metadata path?

from odata-openapi.

WillEastbury avatar WillEastbury commented on August 12, 2024

Hey Ralf, that's pretty much what the converter site described above does, it's not overly complex to do to be honest.
Here's the few lines of code we use to add it.

https://github.com/WillEastbury/odata-openapi/blob/f5468e21135e12af97427d70a06664a746afa689/fnappdotnet/OpenAPIConverterAndPatches.cs#L183

from odata-openapi.

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.