This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 6dde10a [STREAMPIPES-282] Remove empty path annotation
6dde10a is described below
commit 6dde10a834c7e0f7625a9c23fa5c105a90c389dd
Author: Dominik Riemer <[email protected]>
AuthorDate: Tue May 18 21:52:16 2021 +0200
[STREAMPIPES-282] Remove empty path annotation
---
.../rest/impl/nouser/PipelineElementImportNoUser.java | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git
a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/nouser/PipelineElementImportNoUser.java
b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/nouser/PipelineElementImportNoUser.java
index d607a0e..8644811 100644
---
a/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/nouser/PipelineElementImportNoUser.java
+++
b/streampipes-rest/src/main/java/org/apache/streampipes/rest/impl/nouser/PipelineElementImportNoUser.java
@@ -42,23 +42,27 @@ public class PipelineElementImportNoUser extends
AbstractRestResource {
@Context
UriInfo uri;
- @Path("/")
@POST
@Produces(MediaType.APPLICATION_JSON)
- public Response addElement(@PathParam("username") String username,
@FormParam("uri") String uri, @FormParam("publicElement") boolean
publicElement) {
+ public Response addElement(@PathParam("username") String username,
+ @FormParam("uri") String uri,
+ @FormParam("publicElement") boolean
publicElement) {
logger.info("User " + username + " adds element with URI: " + uri + " to
triplestore");
return ok(verifyAndAddElement(uri, username, publicElement));
}
- private Message verifyAndAddElement(String uri, String username, boolean
publicElement) {
+ private Message verifyAndAddElement(String uri,
+ String username,
+ boolean publicElement) {
return new EndpointItemParser().parseAndAddEndpointItem(uri, username,
publicElement, true);
}
@Path("/delete")
@POST
@Produces(MediaType.APPLICATION_JSON)
- public Response deleteElement(@PathParam("username") String username,
@FormParam("uri") String uri) {
+ public Response deleteElement(@PathParam("username") String username,
+ @FormParam("uri") String uri) {
UserService userService = getUserService();
IPipelineElementDescriptionStorageCache requestor =
getPipelineElementRdfStorage();