@POST
  @Path("{urlName}")
  @Produces(MediaType.TEXT_PLAIN)
  @ApiOperation(value = "Create view URL")
  @ApiImplicitParams({
    @ApiImplicitParam(dataType = VIEW_URL_INFO_TYPE, paramType = PARAM_TYPE_BODY)
  })
  @ApiResponses({
          @ApiResponse(code = HttpStatus.SC_CREATED, message = MSG_SUCCESSFUL_OPERATION),
          @ApiResponse(code = HttpStatus.SC_BAD_REQUEST, message = MSG_INVALID_ARGUMENTS),
          @ApiResponse(code = HttpStatus.SC_UNAUTHORIZED, message = MSG_NOT_AUTHENTICATED),
          @ApiResponse(code = HttpStatus.SC_INTERNAL_SERVER_ERROR, message = MSG_SERVER_ERROR),
  })
  public Response createUrl(String body, @Context HttpHeaders headers, @Context UriInfo ui,
                            @PathParam("urlName") String urlName) {
    return handleRequest(headers, body, ui, Request.Type.POST, createViewUrlResource(urlName));
  }
Create a new View URL
@param body
@param headers
@param ui
@param urlName
@return
ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewUrlsService.java