src/main/java/io/vertx/todo/TodoApplication.java
/**
	 * @param routingContext
	 * <p>
	 * Method to create a Todo by getting the user's message, getting
	 * the routingContext which receiving by the accept and storing in redis
	 * </p>
	 */
@param routingContext

Method to create a Todo by getting the user's message, getting
the routingContext which receiving by the accept and storing in redis

@param routingContext Method to create a Todo by getting the user ' s message getting the routingContext which receiving by the accept and storing in redis
private void createTodo(RoutingContext routingContext) {
		final String message = routingContext.request().getParam("msg");
        Todo todo = new Todo(message);
        System.out.println(message);
		client.set(Integer.toString(todo.getId()), todo.getMessage(), r -> {
			if (!r.succeeded()) {
				System.out.println("Operation Failed " + r.cause());
			} else {
				routingContext.response().setStatusCode(201)
						.putHeader("content-type", "application/json; charset=utf-8").end(Json.encodePrettily(todo));
			}
		});
	}
private void createTodo ( RoutingContext routingContext ) { final String message = routingContext . request ( ) . getParam ( "msg" ) ; Todo todo = new Todo ( message ) ; System . out . println ( message ) ; client . set ( Integer . toString ( todo . getId ( ) ) , todo . getMessage ( ) , r -> { if ( ! r . succeeded ( ) ) { System . out . println ( "Operation Failed " + r . cause ( ) ) ; } else { routingContext . response ( ) . setStatusCode ( 201 ) . putHeader ( "content-type" , "application/json; charset=utf-8" ) . end ( Json . encodePrettily ( todo ) ) ; } } ) ; }
@param routingContext
 <p>
 Method to create a Todo by getting the user's message, getting
 the routingContext which receiving by the accept and storing in redis
 </p>
@param routingContext <p > Method to create a Todo by getting the user ' s message getting the routingContext which receiving by the accept and storing in redis < / p >
// Read the request's content and create an Todo task. // Adding todo task to redis db using client // showing the cause of faliure // Return the created todo task as JSON