Skip to content

Commit

Permalink
Merge branch 'issue20' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
twagoo committed Aug 23, 2016
2 parents efd12c9 + 7f96669 commit 5446091
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
*
*/
@Path("/")
@Api(value = "/", description = "Rest API for the CMDI Component Registry", produces = MediaType.APPLICATION_XML)
@Service
@Singleton
public class ComponentRegistryRestService {
Expand Down Expand Up @@ -147,6 +148,7 @@ public class ComponentRegistryRestService {
* @return RegistryService resource with the requested service
*/
@Path("/registry/{cmdVersion: 1\\.[12x]}")
@ApiOperation(value = "Registry for a CMDI version")
public Class<RegistryService> versionService() {
return RegistryService.class;
}
Expand All @@ -157,6 +159,7 @@ public Class<RegistryService> versionService() {
* @return RegistryService resource for default version
*/
@Path("/registry")
@ApiOperation(value = "Registry for the default CMDI version")
public Class<RegistryService> defaultVersionService() {
return RegistryService.class;
}
Expand All @@ -178,7 +181,7 @@ public AllowedAttributetypesXML getAllowedAttributeTypes()
* Subresource for a registry service
*/
@Transactional(rollbackFor = {Exception.class, ValidationException.class})
@Api(value = "/registry", description = "Rest API for the CMDI Component Registry", produces = MediaType.APPLICATION_XML)
@Api(value = "/registry", description = "Profiles and component registry", produces = MediaType.APPLICATION_XML)
public static class RegistryService extends AbstractComponentRegistryRestService {

@PathParam("cmdVersion")
Expand Down
2 changes: 1 addition & 1 deletion ComponentRegistry/src/main/webapp/api-docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
if (url && url.length > 1) {
url = url[1];
} else {
url = "../../rest/api-docs";
url = "../rest/api-docs";
}
window.swaggerUi = new SwaggerUi({
url: url,
Expand Down

0 comments on commit 5446091

Please sign in to comment.