Defining an OpenAPI Spec for an Endpoint with a Generic Body
We define our APIs using OpenApi 3. We are using Spring-Boot on the back-end. We need to define an endpoint to receive notifications from arbitrary third parties. We will have a URL parameter for the type which we will use to find the correct plugin to handle it, but i want a single generic endpoint. For JSON and XML I guess I can't do better than type: object but for application/x-www-form-urlencoded I feel i should be able to end up with a request body that is Map<String, Object> (or even Map<String, String> ) but I can't work out how to describe this in the OAS spec. is it possible? I have
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.