Comments (9)
We did have a big discussion on #838 about some response codes. @marie-x It seems we should be using 401 and we can remove 403 from the spec. Do you see any issue with that?
from mobility-data-specification.
We did have a big discussion on #838 about some response codes. @marie-x It seems we should be using 401 and we can remove 403 from the spec. Do you see any issue with that?
Sounds great!
from mobility-data-specification.
So remove 403
for sure.
What about 200
vs 201
? Seems like 201 is valuable to have to ensure the item was created, vs the more generic 200 when all is ok. So both are good to keep?
from mobility-data-specification.
@marie-x @schnuerle How about the difference between 200
and 201
?
201
is mentioned here as what a successful POST should return, different from200
in the Agency docs.
from mobility-data-specification.
So remove
403
for sure.
Done.
Seems like 201 is valuable to have to ensure the item was created, vs the more generic 200 when all is ok. So both are good to keep?
Yep, I'll keep both in the OpenAPI docs.
from mobility-data-specification.
So should any 403s like in Vehicles in Agency, and in Jurisdiction, be changed to 401s? Or should 403s be removed completely?
from mobility-data-specification.
Jurisdiction shouldn't have either, because it is public / shouldn't throw "Not authorized" errors.
In Agency (and Metrics, Provider) we should use 401
everywhere there could be an authorization error, and remove 403
entirely.
I think only the Agency docs in the spec need the update though.
from mobility-data-specification.
This is done in the OpenAPI docs.
from mobility-data-specification.
Everything mentioned here should be resolved as part of #856 so focusing on that Issue now.
from mobility-data-specification.
Related Issues (20)
- MDS 2.0 - accessibility_options for vehicles should be optional not required HOT 12
- Improve REST API docs HOT 2
- Agency PUT Stops payload HOT 7
- Agency error and bulk responses HOT 11
- /vehicles in MDS 2.0 HOT 9
- MDS 2.0 - telemetry fields trip_ids/journey_id should correspond to the event HOT 2
- MDS 2.0 - trip/fare attributes inconsistencies HOT 7
- MDS Provider Id Registration HOT 1
- Getting vehicle event status in MDS 2.0 HOT 3
- Fix Reports - Register error table HOT 1
- MDS 2.0 - Stops should have same response structure as vehicles or vice versa HOT 4
- MDS 2.0 - round-trip car sharing and reservation/reserved HOT 4
- Correction of description vehicle events (car sharing) HOT 3
- Car_type as an vehicle attribute HOT 1
- Minor additions to vehicle attributes // Car sharing HOT 4
- Add geographies to be returned in Reports in Requirements HOT 2
- Reports endpoint - START_DATE clarification HOT 4
- guidance on how to use telemetry data for compliance HOT 3
- What vehicles are included in the MDS 2.0 /vehicles endpoint? HOT 4
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 mobility-data-specification.