
@Path(value="/{a:application}")
@Api(name="Application Resource",
description="Methods for managing PMC Application")
@ApiVersion(since="1.0")
public class ApplicationResource
extends Object
11/29/13
| Constructor and Description |
|---|
ApplicationResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
action(String object) |
String |
getJsonDoc() |
String |
getVersion() |
public ApplicationResource()
@GET
@Path(value="/jsondoc")
@Produces(value="application/json")
@ApiMethod(path="/application/jsondoc",
verb=GET,
description="Gets a application documentation",
produces="application/json",
responsestatuscode="200 - OK")
@ApiErrors(apierrors=@ApiError(code="500",description="Application critical error"))
@ApiResponseObject
public String getJsonDoc()
@GET
@Path(value="/version")
@Produces(value="application/json")
@ApiMethod(path="/application/version",
verb=GET,
description="Gets a application version",
produces="application/json",
responsestatuscode="200 - OK")
@ApiErrors(apierrors=@ApiError(code="500",description="Application critical error"))
@ApiResponseObject
public String getVersion()
@PUT
@Path(value="/status")
@Consumes(value="application/json")
@Produces(value="application/json")
@ApiMethod(path="/application/status",
verb=PUT,
description="Sets a application status to stopped",
produces="application/json",
consumes="application/json",
responsestatuscode="200 - OK")
@ApiErrors(apierrors=@ApiError(code="500",description="Application critical error"))
public javax.ws.rs.core.Response action(@ApiBodyObject
String object)
Copyright © 2015 Maxim Yunusov. All rights reserved.