diff options
author | 2021-07-22 11:53:53 -0400 | |
---|---|---|
committer | 2021-07-23 08:39:12 -0400 | |
commit | 22fe2165bed771fdd4c452891646076aecb22ac3 (patch) | |
tree | c40ba41a039ae4f275b6eea0ff62dbc77f76d50d /src/main/resources/application.yml | |
parent | 092d4a0b4eb6011b16d223f0c1d5072fdb5f6abb (diff) |
generating swagger-ui and controller interface using openapi.yml
Issue-ID: CPS-387
Signed-off-by: Renu Kumari <renu.kumari@bell.ca>
Change-Id: I3e9742407148efcb16d8d79411e4de6738796f86
Diffstat (limited to 'src/main/resources/application.yml')
-rwxr-xr-x | src/main/resources/application.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5fe30b0..0b41a07 100755 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -13,11 +13,17 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= server: port: 8080 +rest: + api: + base-path: /cps-temporal/api + spring: datasource: url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/cpstemporaldb @@ -50,3 +56,11 @@ app: listener: data-updated: topic: ${CPS_CHANGE_EVENT_TOPIC:cps.cfg-state-events} + +springdoc: + swagger-ui: + disable-swagger-default-url: true + urlsPrimaryName: query + urls: + - name: query + url: /swagger/openapi.yml |