Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit 5239547

Browse files
committed
new package name
1 parent 7a9a48a commit 5239547

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

src/api/mapping.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ options:
66
# will be placed into the "api" and "model" subpackages of packageName:
77
# - interfaces => "${packageName}.api"
88
# - models => "${packageName}.model"
9-
package-name: com.github.hauner.openapi
9+
package-name: io.openapiprocessor

src/main/java/com/github/hauner/openapi/Application.java renamed to src/main/java/io/openapiprocessor/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.hauner.openapi;
1+
package io.openapiprocessor;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;

src/main/java/com/github/hauner/openapi/EchoController.java renamed to src/main/java/io/openapiprocessor/EchoController.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original authors
2+
* Copyright 2019-2020 the original authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,10 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.github.hauner.openapi;
17+
package io.openapiprocessor;
1818

19-
import com.github.hauner.openapi.api.EchoApi;
20-
import org.springframework.http.ResponseEntity;
19+
import io.openapiprocessor.api.EchoApi;
2120
import org.springframework.web.bind.annotation.RestController;
2221

2322
/**
@@ -29,8 +28,8 @@
2928
public class EchoController implements EchoApi {
3029

3130
@Override
32-
public ResponseEntity<String> getEcho (String source) {
33-
return ResponseEntity.ok (source);
31+
public String getEcho (String source) {
32+
return source;
3433
}
3534

3635
}

src/main/java/com/github/hauner/openapi/PingController.java renamed to src/main/java/io/openapiprocessor/PingController.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 the original authors
2+
* Copyright 2019-2020 the original authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,10 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.github.hauner.openapi;
17+
package io.openapiprocessor;
1818

19-
import com.github.hauner.openapi.api.PingApi;
20-
import org.springframework.http.ResponseEntity;
19+
import io.openapiprocessor.api.PingApi;
2120
import org.springframework.web.bind.annotation.RestController;
2221

2322
/**
@@ -29,8 +28,8 @@
2928
public class PingController implements PingApi {
3029

3130
@Override
32-
public ResponseEntity<String> getPing () {
33-
return ResponseEntity.ok ("pong");
31+
public String getPing () {
32+
return "pong";
3433
}
3534

3635
}

src/testInt/groovy/com/github/hauner/openapi/EchoControllerSpec.groovy renamed to src/testInt/groovy/io/openapiprocessor/EchoControllerSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.github.hauner.openapi
17+
package io.openapiprocessor
1818

1919
import org.springframework.beans.factory.annotation.Autowired
2020
import org.springframework.boot.test.context.SpringBootTest

src/testInt/groovy/com/github/hauner/openapi/PingControllerSpec.groovy renamed to src/testInt/groovy/io/openapiprocessor/PingControllerSpec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.github.hauner.openapi
17+
package io.openapiprocessor
1818

1919
import org.springframework.beans.factory.annotation.Autowired
2020
import org.springframework.boot.test.context.SpringBootTest

0 commit comments

Comments
 (0)