Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Ping github collector (#35)
Browse files Browse the repository at this point in the history
* Ping github collector

* upgraded version to 3.1.3-SNAPSHOT
  • Loading branch information
nireeshT authored Jun 18, 2020
1 parent e2b5f98 commit 19f01cd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</description>
<url>https://github.com/Hygieia/${repository.name}</url>
<packaging>jar</packaging>
<version>3.1.2-SNAPSHOT</version>
<version>3.1.3-SNAPSHOT</version>

<parent>
<groupId>com.capitalone.dashboard</groupId>
Expand Down Expand Up @@ -50,7 +50,7 @@
<repository.name>hygieia-scm-github-graphql-collector</repository.name>
<apache.rat.plugin.version>0.13</apache.rat.plugin.version>
<bc.version>3.0.1</bc.version>
<com.capitalone.dashboard.core.version>3.7.2</com.capitalone.dashboard.core.version>
<com.capitalone.dashboard.core.version>3.7.8</com.capitalone.dashboard.core.version>
<commons.io.version>2.4</commons.io.version>
<commons.lang.version>3.8.1</commons.lang.version>
<coveralls.maven.plugin.version>4.3.0</coveralls.maven.plugin.version>
Expand Down
13 changes: 12 additions & 1 deletion src/main/java/com/capitalone/dashboard/Application.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
package com.capitalone.dashboard;

import com.capitalone.dashboard.config.MongoConfig;
import com.capitalone.dashboard.config.RestApiAppConfig;
import com.capitalone.dashboard.config.WebMVCConfig;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

/**
* Application configuration and bootstrap
*/
@SpringBootApplication
public class Application {
@EnableEncryptableProperties
public class Application extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class, RestApiAppConfig.class, WebMVCConfig.class, MongoConfig.class);
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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<String> ping () {
return ResponseEntity
.status(HttpStatus.OK)
.body("hello github");
}

}

0 comments on commit 19f01cd

Please sign in to comment.