Comments (3)
Ah I prefer the application/json render and I think it makes sense for this work to use that.
from mds-openapi.
It seems like there is no way to distinguish the two (Accept vs. Content-type) in OpenAPI 3.1 or earlier.
Each Media Type Object
defines both the request and response media type.
@schnuerle -- which should we use in the MDS OpenAPI docs?
application/vnd.mds+json
is what the spec says it should be, but...application/json
renders much nicer in the Stoplight website, giving an immediate preview vs. having to click to "Send request" with the above type
As application/vnd.mds+json
Here we see a "Send request" link
Clicking that (sometimes) gives a preview
As application/json
Here we immediately see a preview without clicking any buttons ("Send request" is still available)
from mds-openapi.
Great, that's what I went with!
from mds-openapi.
Related Issues (17)
- Create project in Stoplight HOT 3
- Jurisdiction API
- Metrics API
- Create v2.0 branch HOT 4
- Describe 400 for Provider endpoints with params
- Use endpoint for summary field
- Policy rule conditional requirements
- Fix mode trip_id requirements and event_types
- Agency GET endpoints return MDS version in responses HOT 5
- Add securitySchemes for Metrics
- Make sure /entity/{entity_id} endpoints return an array of length 1
- Is it possible to create somehow one OpenApi file? HOT 2
- Provider API
- Agency API
- Policy API
- Geography API
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 mds-openapi.