com.capitalone.dashboard.controller.PingController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of github-graphql-scm-collector Show documentation
Show all versions of github-graphql-scm-collector Show documentation
Github Collector Microservice collecting stats from Github using graphql
package com.capitalone.dashboard.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
@RestController
public class PingController {
public PingController() {
}
@RequestMapping(value = "/ping", method = GET, produces = APPLICATION_JSON_VALUE)
public ResponseEntity ping () {
return ResponseEntity
.status(HttpStatus.OK)
.body("hello github");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy