Fixed URLs
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-service@160709 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e73c411953
commit
c74b9b7c54
2
pom.xml
2
pom.xml
|
@ -18,7 +18,7 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<webappDirectory>${project.basedir}/src/main/webapp/WEB-INF</webappDirectory>
|
||||
<distroDirectory>${project.basedir}/distro</distroDirectory>
|
||||
<serviceClass>DataPublishing</serviceClass>
|
||||
<serviceClass>Accounting</serviceClass>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
|
|
|
@ -30,10 +30,8 @@ public class ResourceInsert {
|
|||
private static final Logger log = LoggerFactory.getLogger(ResourceInsert.class);
|
||||
|
||||
public static final String INSERT_PATH_PART = "insert";
|
||||
public static final String RECORD_PATH_PART = "record";
|
||||
|
||||
@POST
|
||||
@Path(RECORD_PATH_PART)
|
||||
@Consumes({MediaType.TEXT_PLAIN, AccountingResource.APPLICATION_JSON_CHARSET_UTF_8})
|
||||
public Response add(String json) throws Exception {
|
||||
|
||||
|
|
|
@ -26,13 +26,12 @@ public class ResourceQuery {
|
|||
private static final Logger log = LoggerFactory.getLogger(ResourceQuery.class);
|
||||
|
||||
public static final String QUERY_PATH_PART = "query";
|
||||
public static final String RECORD_PATH_PART = "record";
|
||||
|
||||
|
||||
public static final String TYPE_PATH_PART = "type";
|
||||
public static final String RECORD_ID_PATH_PART = "recordID";
|
||||
|
||||
@GET
|
||||
@Path(RECORD_PATH_PART + "/{" + TYPE_PATH_PART + "}/{" + RECORD_ID_PATH_PART + "}/")
|
||||
@Path("/{" + TYPE_PATH_PART + "}/{" + RECORD_ID_PATH_PART + "}/")
|
||||
@Produces(AccountingResource.APPLICATION_JSON_CHARSET_UTF_8)
|
||||
public Response get(@NotNull @PathParam(TYPE_PATH_PART) String type,
|
||||
@NotNull @PathParam(RECORD_ID_PATH_PART) String recordId) throws Exception {
|
||||
|
|
|
@ -37,11 +37,10 @@ public class ServiceState {
|
|||
public static final String INSERT_CONNECTION_UP = "insertConnection";
|
||||
|
||||
@GET
|
||||
@Path("/")
|
||||
@Produces(AccountingResource.APPLICATION_JSON_CHARSET_UTF_8)
|
||||
public Response getState() throws JSONException {
|
||||
String context = AccountingServiceInitializer.getCurrentContext();
|
||||
logger.debug("Getting Service Status fro context {}", context);
|
||||
logger.debug("Getting Service Status for context {}", context);
|
||||
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.append(SERVICE, RUNNING);
|
||||
|
|
Loading…
Reference in New Issue