-
Notifications
You must be signed in to change notification settings - Fork 14
US102307: Added swagger annotations for ACS Connectors APIs. #108
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
Conversation
| this.uaaClientSecret = other.uaaClientSecret; | ||
| } | ||
|
|
||
| @ApiModelProperty(value = "URL to a remote attribute store adapter", required = 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.
Might be more clearly worded as "URL to retrieve attributes from"?
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.
Then it sounds like it's a URL to attribute store itself. How about "Adapter URL to retrieve attributes from"?
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.
Works 👍
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.
Did we decide to change this or leave it? Latest rebase (4a2f699) doesn't show this line being changed.
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.
Missed it. Try again now.
| } | ||
|
|
||
| @ApiModelProperty( | ||
| value = "An OAuth client that coud be used to obtain an access token for this adapter", |
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.
Typo: coud -> could. Also might be more clearly worded as "OAuth client used to obtain an access token for this adapter"?
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.
Agreed
| this.uaaClientId = uaaClientId; | ||
| } | ||
|
|
||
| @ApiModelProperty(value = "A secret for an OAuth client for this adapter", required = 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.
Might be more clearly worded as "OAuth client secret used to obtain an access token for this adapter"?
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.
Agreed
| import io.swagger.annotations.ApiModel; | ||
| import io.swagger.annotations.ApiModelProperty; | ||
|
|
||
| @ApiModel(description = "Connector configuration for external resource or subject atributes.") |
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.
Typo: atributes -> attributes
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.
Thanks.
|
|
||
| private Set<AttributeAdapterConnection> adapters; | ||
|
|
||
| @ApiModelProperty(value = "A flag to enable or disable attribute connector. Disabled by default") |
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 be more clearly worded as "A flag to enable or disable the retrieval of remote attributes. Disabled by default."?
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.
Agreed
| } | ||
|
|
||
| @ApiOperation( | ||
| value = "Deletes connector configururation for external subject attributes for the given zone.", |
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.
Typo: configururation -> configuration
| tags = { "Attribute Connector Management" }, | ||
| response = AttributeConnector.class) | ||
| @ApiResponses( | ||
| value = { @ApiResponse(code = 404, message = "Connector configuration for the given zone is not found.") }) |
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.
See comment above re. mentioning all possible response codes.
| response = AttributeConnector.class) | ||
| @ApiResponses( | ||
| value = { @ApiResponse( | ||
| code = 201, |
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.
See comment above re. mentioning all possible response codes.
| consumes = MediaType.APPLICATION_JSON_VALUE) | ||
| public ResponseEntity<AttributeConnector> putSubjectConnector(@RequestBody final AttributeConnector connector) { | ||
| consumes = MediaType.APPLICATION_JSON_VALUE, | ||
| produces = MediaType.APPLICATION_JSON_VALUE) |
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.
See comment above re. redundant produces field
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.
Good catch. I changed return type from ResponseEntity to ResponseEntity<?>
| this.maxCachedIntervalMinutes = maxCachedIntervalMinutes; | ||
| } | ||
|
|
||
| @ApiModelProperty(value = "A set of attribute store adapters associated with this connector", required = 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.
Might be more clearly worded as "A set of adapters used to retrieve attributes from"? Also should we mention here or in a controller-related Swagger annotation that only one adapter is currently supported?
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.
Agreed.
|
Addressed pull request comments. Please review |
| import io.swagger.annotations.ApiOperation; | ||
| import io.swagger.annotations.ApiParam; | ||
| import io.swagger.annotations.ApiResponse; | ||
| import io.swagger.annotations.ApiResponses;; |
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.
Remove extra semicolon?
|
@irinaepshteyn please merge once PR integration tests pass |
No description provided.