We would like to convert our configuration files from XML into YAML.
XmlFileManager into YamlFileManager, so that we could start converting the XML files into YAML. The property names will have to be changed and they'll have to be camel case instead of using hyphens.etc/conf/strongbox.xmletc/conf/strongbox-authorization.xmletc/conf/strongbox-cron-tasks.xmletc/conf/strongbox-security-users.xmlThis task's follow-up tasks: #1216 , #1167, #1169.
Hi @sbespalov @steve-todorov, I have a question, what do I do about any controller methods related with this? For example:
@ApiOperation(value = "Retrieves the strongbox-authorization.xml configuration file.")
@ApiResponses(value = { @ApiResponse(code = 200, message = SUCCESSFUL_GET_CONFIG),
@ApiResponse(code = 500, message = FAILED_GET_CONFIG) })
@GetMapping(value = "/xml",
produces = { MediaType.APPLICATION_XML_VALUE,
MediaType.APPLICATION_JSON_VALUE })
public ResponseEntity getAuthorizationConfig(@RequestHeader(HttpHeaders.ACCEPT) String acceptHeader)
{
return processConfig(null, acceptHeader);
}
Do I need to convert it to this?
@ApiOperation(value = "Retrieves the strongbox-authorization.yaml configuration file.")
@ApiResponses(value = { @ApiResponse(code = 200, message = SUCCESSFUL_GET_CONFIG),
@ApiResponse(code = 500, message = FAILED_GET_CONFIG) })
@GetMapping(value = "/yaml",
produces = { "application/x-yaml",
MediaType.APPLICATION_JSON_VALUE })
public ResponseEntity getAuthorizationConfig(@RequestHeader(HttpHeaders.ACCEPT) String acceptHeader)
{
return processConfig(null, acceptHeader);
}
I think it should be just GET without /xml or /yaml. Content
negotiation should work out of the box in Spring depending on Accept
header.
сб, 2 февр. 2019 г. в 18:59, Pablo Tirado notifications@github.com:
Hi @sbespalov https://github.com/sbespalov @steve-todorov
https://github.com/steve-todorov, I have a question, what do I do about
any controller methods related with this? For example:@ApiOperation(value = "Retrieves the strongbox-authorization.xml configuration file.") @ApiResponses(value = { @ApiResponse(code = 200, message = SUCCESSFUL_GET_CONFIG), @ApiResponse(code = 500, message = FAILED_GET_CONFIG) }) @GetMapping(value = "/xml", produces = { MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE }) public ResponseEntity getAuthorizationConfig(@RequestHeader(HttpHeaders.ACCEPT) String acceptHeader) { return processConfig(null, acceptHeader); }Do I need to convert it to this?
@ApiOperation(value = "Retrieves the strongbox-authorization.yaml configuration file.") @ApiResponses(value = { @ApiResponse(code = 200, message = SUCCESSFUL_GET_CONFIG), @ApiResponse(code = 500, message = FAILED_GET_CONFIG) }) @GetMapping(value = "/yaml", produces = { "application/x-yaml", MediaType.APPLICATION_JSON_VALUE }) public ResponseEntity getAuthorizationConfig(@RequestHeader(HttpHeaders.ACCEPT) String acceptHeader) { return processConfig(null, acceptHeader); }—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/strongbox/strongbox/issues/965#issuecomment-459959513,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVunQ0z9nVNfN4Oq7wkZgaq7YifVJTbAks5vJX2sgaJpZM4ZjcP4
.
I agree with @sbespalov :+1: :)
I also agree with @sbespalov and @steve-todorov.
@ptirador / @fuss86 ,
Could you guys please also look into updating our documentation?
Thanks! :)
Could you guys please also look into updating our documentation?
Thanks! :)
https://github.com/strongbox/strongbox-docs/pull/10
@ptirador feel free to update it.
@carlspring this part of doc depends on:
Just saw your comments, @fuss86! strongbox/strongbox-docs#10 looks like it's shaping up quite well, thanks!
Most helpful comment
I think it should be just GET without
/xmlor/yaml. Contentnegotiation should work out of the box in Spring depending on
Acceptheader.
сб, 2 февр. 2019 г. в 18:59, Pablo Tirado notifications@github.com: