-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changed the spec issues-api #23
Conversation
spec/swagger.yaml
Outdated
description: >- | ||
Currently the only allowed issue states are `OPENED` and `RESOLVED` but | ||
Smartling may introduce additional states in future. This request | ||
returns all current allowed states. | ||
tags: | ||
- Issues | ||
- Dictionaries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is how it groups the API's, so it should still be under Issues i believe.
spec/swagger.yaml
Outdated
in: path | ||
required: true | ||
type: string | ||
description: '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description should be provided
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
spec/swagger.yaml
Outdated
in: path | ||
required: true | ||
type: string | ||
description: '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add description (this applies to all params, fields, etc)
spec/swagger.yaml
Outdated
@@ -2545,7 +2610,7 @@ paths: | |||
as needed before attempting to render it. Maximum length is 4000 | |||
characters. | |||
tags: | |||
- Issues | |||
- Comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i believe it should be issues still
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be Issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A number of descriptions are not provided and tags look off to me.
spec/swagger.yaml
Outdated
get: | ||
summary: List all issue types | ||
summary: Get Issue Types (DEPRECATED) | ||
description: >- | ||
This request returns all current issue types. Smartling may occasionally |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since it's deprecated, I think the description should say what should be used instead
description: >- | ||
This request returns all current issue types. Smartling may occasionally | ||
add or change the list of allowed issue types. | ||
tags: | ||
- Issues | ||
deprecated: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didnt know they had this, good to know
spec/swagger.yaml
Outdated
description: >- | ||
Returns a list of issues matching specified filter options. You can | ||
filter based on the date issues were created, target languages, strings, | ||
issue types and states and the user who opened the issue. Unless | ||
otherwise specified, request will return a maximum of 30 results. All | ||
parameters are optional. | ||
tags: | ||
- Issues | ||
- Search |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be Issues
spec/swagger.yaml
Outdated
tags: | ||
- Issues | ||
- Watchers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
further changes needed still, see comments
I see the response block is not showing up on the rendered page, that needs to be addressed before its merged |
spec/swagger.yaml
Outdated
get: | ||
summary: List all issue types | ||
summary: Get Issue Types (DEPRECATED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think the first API listed should be a deprecated API. This should be moved to the bottom of the APi's for Issues
in: query | ||
required: false | ||
type: string | ||
description: Unique identifier of corresponding account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
required: false | ||
default: 100 | ||
type: number | ||
description: limit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jones-smartling @hchaps, seems like various apis use different description for limit
and offset
parameters. Do we want them to be consistent across all apis?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need @hchaps to help standardize the language here, but for now its ok. We wont get consistent across defaults and such and that is ok. My 2 cents.
spec/swagger.yaml
Outdated
@@ -3008,51 +3081,33 @@ paths: | |||
in: path | |||
required: true | |||
type: string | |||
description: Unique identifier of corresponding account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space before Unique
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
spec/swagger.yaml
Outdated
@@ -3065,22 +3120,24 @@ paths: | |||
in: path | |||
required: true | |||
type: string | |||
description: '' | |||
description: Unique identifier of corresponding account |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space before Unique
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
spec/swagger.yaml
Outdated
- name: watcherUid | ||
in: path | ||
required: true | ||
type: string | ||
description: '' | ||
description: Unique identifier of corresponding watcher |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space before Unique
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
spec/swagger.yaml
Outdated
- name: issueUid | ||
in: path | ||
required: true | ||
type: string | ||
description: '' | ||
description: Unique identifier of corresponding issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space before Unique
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done for all places
data: | ||
type: object | ||
properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is possible to extract issue and watcher response properties into a separate item and to reuse it wherever needed? Like for get/find/create issues responses?
See
Line 7777 in 8156345
$ref: '#/definitions/ListJobsResponseItem' |
- #23 - wrong reference fix
No description provided.