@POST
  @Path("{blueprintName}")
  @Produces(MediaType.TEXT_PLAIN)
  @ApiOperation(value = "Creates a blueprint",
      nickname = "BlueprintService#createBlueprint"
  )
  @ApiImplicitParams({
      @ApiImplicitParam(dataType = BLUEPRINT_REQUEST_TYPE, paramType = PARAM_TYPE_BODY, allowMultiple = false)
  })
  @ApiResponses({
      @ApiResponse(code = HttpStatus.SC_CREATED, message = MSG_SUCCESSFUL_OPERATION),
      @ApiResponse(code = HttpStatus.SC_ACCEPTED, message = MSG_REQUEST_ACCEPTED),
      @ApiResponse(code = HttpStatus.SC_BAD_REQUEST, message = MSG_RESOURCE_NOT_FOUND),
      @ApiResponse(code = HttpStatus.SC_NOT_FOUND, message = MSG_RESOURCE_NOT_FOUND),
      @ApiResponse(code = HttpStatus.SC_CONFLICT, message = MSG_RESOURCE_ALREADY_EXISTS),
      @ApiResponse(code = HttpStatus.SC_UNAUTHORIZED, message = MSG_NOT_AUTHENTICATED),
      @ApiResponse(code = HttpStatus.SC_FORBIDDEN, message = MSG_PERMISSION_DENIED),
      @ApiResponse(code = HttpStatus.SC_INTERNAL_SERVER_ERROR, message = MSG_SERVER_ERROR),
  })
  public Response createBlueprint(String body, @Context HttpHeaders headers, @Context UriInfo ui,
                                  @ApiParam @PathParam("blueprintName") String blueprintName) {

    return handleRequest(headers, body, ui, Request.Type.POST, createBlueprintResource(blueprintName));
  }
Handles: POST /blueprints/{blueprintID}
Create a specific blueprint.

@param headers       http headers
@param ui            uri info
@param blueprintName blueprint id
@return information regarding the created blueprint
ambari-server/src/main/java/org/apache/ambari/server/api/services/BlueprintService.java