From 05a2b535274e00a335715c8dd9046a0ea6496ff7 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 26 Oct 2015 11:36:26 +0000 Subject: [PATCH] Add information about /liquibase and /flyway to Actuator's docs Closes gh-3438 --- spring-boot-actuator-docs/pom.xml | 19 +++++++++++++++++++ .../src/main/asciidoc/flyway.adoc | 12 ++++++++++++ .../src/main/asciidoc/liquibase.adoc | 12 ++++++++++++ .../db/changelog/db.changelog-master.yaml | 5 +++++ .../resources/db/migration/V1__initialize.sql | 0 5 files changed, 48 insertions(+) create mode 100644 spring-boot-actuator-docs/src/main/asciidoc/flyway.adoc create mode 100644 spring-boot-actuator-docs/src/main/asciidoc/liquibase.adoc create mode 100644 spring-boot-actuator-docs/src/restdoc/resources/db/changelog/db.changelog-master.yaml create mode 100644 spring-boot-actuator-docs/src/restdoc/resources/db/migration/V1__initialize.sql diff --git a/spring-boot-actuator-docs/pom.xml b/spring-boot-actuator-docs/pom.xml index b2cd3f0e255..93883448e6a 100644 --- a/spring-boot-actuator-docs/pom.xml +++ b/spring-boot-actuator-docs/pom.xml @@ -30,6 +30,10 @@ spring-boot-actuator provided + + com.h2database + h2 + junit junit @@ -40,6 +44,21 @@ groovy-templates provided + + org.flywaydb + flyway-core + provided + + + org.liquibase + liquibase-core + provided + + + org.springframework + spring-jdbc + provided + org.springframework spring-test diff --git a/spring-boot-actuator-docs/src/main/asciidoc/flyway.adoc b/spring-boot-actuator-docs/src/main/asciidoc/flyway.adoc new file mode 100644 index 00000000000..1aa6447e32a --- /dev/null +++ b/spring-boot-actuator-docs/src/main/asciidoc/flyway.adoc @@ -0,0 +1,12 @@ +=== /flyway +This endpoint provides information about database migrations that have been performed +by Flyway. + +Example curl request: +include::{generated}/flyway/curl-request.adoc[] + +Example HTTP request: +include::{generated}/flyway/http-request.adoc[] + +Example HTTP response: +include::{generated}/flyway/http-response.adoc[] diff --git a/spring-boot-actuator-docs/src/main/asciidoc/liquibase.adoc b/spring-boot-actuator-docs/src/main/asciidoc/liquibase.adoc new file mode 100644 index 00000000000..4b558b86066 --- /dev/null +++ b/spring-boot-actuator-docs/src/main/asciidoc/liquibase.adoc @@ -0,0 +1,12 @@ +=== /liquibase +This endpoint provides information about database migrations that have been performed +by Liquibase. + +Example curl request: +include::{generated}/liquibase/curl-request.adoc[] + +Example HTTP request: +include::{generated}/liquibase/http-request.adoc[] + +Example HTTP response: +include::{generated}/liquibase/http-response.adoc[] diff --git a/spring-boot-actuator-docs/src/restdoc/resources/db/changelog/db.changelog-master.yaml b/spring-boot-actuator-docs/src/restdoc/resources/db/changelog/db.changelog-master.yaml new file mode 100644 index 00000000000..1eb036da916 --- /dev/null +++ b/spring-boot-actuator-docs/src/restdoc/resources/db/changelog/db.changelog-master.yaml @@ -0,0 +1,5 @@ +databaseChangeLog: + - changeSet: + id: 1 + author: awilkinson + changes: diff --git a/spring-boot-actuator-docs/src/restdoc/resources/db/migration/V1__initialize.sql b/spring-boot-actuator-docs/src/restdoc/resources/db/migration/V1__initialize.sql new file mode 100644 index 00000000000..e69de29bb2d