All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.essec.microservices.PingService Maven / Gradle / Ivy

Go to download

Shared configuration and tools. This project contains a custom spring boot module to facilitate new api project developpement startup process.

There is a newer version: 1.0.42
Show newest version
package com.essec.microservices;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;

import io.swagger.v3.oas.annotations.Operation;

@Service
@Path("/")
@Scope("prototype")
public class PingService {

	@GET
	@Path("/test/ping")
	@Produces({ MediaType.TEXT_PLAIN })
	@Operation(hidden = true)
	@HystrixCommand
	public Response ping() {
		String result = "ok";
		return Response.ok(result).build();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy