You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I want to add: summary, description, servers (dev / staging / prod), externalDocs, or to mention additional body or headers to the requests that aren't mentioned inside the entity (like a middleware that checks different kind of authentication methods that running outside of remult).
And then process the openApi json file before sending it to swagger:
constopenApiDocument=api.openApiDoc({title: "remult-react-todo"});// --> process the json here. to add what you want based on the options you extendapp.get("/api/openApi.json",(req,res)=>res.json(openApiDocument));app.use('/api/docs',swaggerUi.serve,swaggerUi.setup(openApiDocument));
consider this ability on an entity:
what do you think?
The text was updated successfully, but these errors were encountered: