Merged
Conversation
# Conflicts: # TOMP-API.yaml
TOMP-WG#114 remove asset, is included in typeOfAsset TOMP-WG#110 consistency in Operator Information
Changed systemInformation from array to single object Change openingTimes to returnTimes Fix condition inheritance Reference: https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/ Remove duplicate customer requirements Replace kebab-case with camelCase Add missing TO tags Remove station_status fields from stationInformation Remove duplicate area definition, clarify area usage Remove gender (should be in asset (type) if anywhere) Fix allOf and oneOf syntax Use built-in date format Fix response codes Alphabetise sections
Amendments to Edwin's PR
Tjalle
reviewed
May 4, 2020
Tjalle
left a comment
There was a problem hiding this comment.
Hello Edwin,
I've gone over this document & the changes and added some comments.
hope this helps,
Tjalle
| headers: | ||
| Location: | ||
| description: The URI where the created options can be found, in case of 'provide-ids' = true | ||
| description: The URI where the created options can be found, in case of 'provideIds' = true | ||
| schema: | ||
| type: string | ||
| example: '/planning-options/1234' |
Collaborator
Author
There was a problem hiding this comment.
Tjalle, we agreed on kebab-casing the URLs.
| '400': | ||
| $ref: '#/components/responses/400BadRequest' | ||
| '401': | ||
| $ref: '#/components/responses/401Unauthorized' | ||
| '404': | ||
| $ref: '#/components/responses/404NotFound' | ||
| '410': | ||
| $ref: '#/components/responses/410Gone' | ||
| callbacks: # webhooks | ||
| # as described in https://swagger.io/docs/specification/callbacks/ | ||
| booking-operations: |
| '410': | ||
| $ref: '#/components/responses/410Gone' | ||
|
|
||
| /legs/{id}/available-assets: |
| /operator/pricing-plans: | ||
|
|
||
| /operator/available-assets: |
| '401': | ||
| $ref: '#/components/responses/401Unauthorized' | ||
|
|
||
| /operator/pricing-plans: |
| type: object | ||
| description: provides current asset location & duration and distance of the current leg | ||
| required: | ||
| - coordinates | ||
| - coordinate |
There was a problem hiding this comment.
coordinate is a req. field, but in the properties below it's still coordinates
Collaborator
Author
There was a problem hiding this comment.
Check, I'll repair this one
|
|
||
| license: | ||
| type: object | ||
| description: driver or usage license for a specific user. Contains the number and the asset-type you're allowed to operate (e.g. driver license for CAR) |
Collaborator
Author
There was a problem hiding this comment.
yes. repaired
| description: the amount of people that have to travel from `from` to `to` [https://github.com/efel85/TOMP-API/issues/56] | ||
| type: number | ||
| useAssets: | ||
| description: when you use the /operator/available-assets and you want to book a displayed asset, you must be able to request o a planning-option for the specific asset (with provide-ids=true), post a booking with the provided id and send directly a commit. This field should contain the asset to book. |
There was a problem hiding this comment.
when you use the /operator/availableAssets
| required: | ||
| - stationId | ||
| - name | ||
| - coordinate |
There was a problem hiding this comment.
required/properties-> coordinate vs coordinates
TOMP-API.yaml
Outdated
Collaborator
Author
There was a problem hiding this comment.
kebab case => camelCase was only for the JSON.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking release. Instead of kebab-cased json, we now use camelCased json. Also other breaking issues. Look at the release notes in wiki