diff --git a/versioned_docs/version-1.5.1/contributing/contributing.md b/versioned_docs/version-1.7.1/contributing/contributing.md similarity index 100% rename from versioned_docs/version-1.5.1/contributing/contributing.md rename to versioned_docs/version-1.7.1/contributing/contributing.md diff --git a/versioned_docs/version-1.5.1/contributing/documentation-style-guide.md b/versioned_docs/version-1.7.1/contributing/documentation-style-guide.md similarity index 100% rename from versioned_docs/version-1.5.1/contributing/documentation-style-guide.md rename to versioned_docs/version-1.7.1/contributing/documentation-style-guide.md diff --git a/versioned_docs/version-1.5.1/getting-started/architecture.md b/versioned_docs/version-1.7.1/getting-started/architecture.md similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/architecture.md rename to versioned_docs/version-1.7.1/getting-started/architecture.md diff --git a/versioned_docs/version-1.5.1/getting-started/movie-quotes-app-tutorial.md b/versioned_docs/version-1.7.1/getting-started/movie-quotes-app-tutorial.md similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/movie-quotes-app-tutorial.md rename to versioned_docs/version-1.7.1/getting-started/movie-quotes-app-tutorial.md diff --git a/versioned_docs/version-1.5.1/getting-started/new-api-project-instructions.md b/versioned_docs/version-1.7.1/getting-started/new-api-project-instructions.md similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/new-api-project-instructions.md rename to versioned_docs/version-1.7.1/getting-started/new-api-project-instructions.md diff --git a/versioned_docs/version-1.5.1/getting-started/platformatic-architecture.png b/versioned_docs/version-1.7.1/getting-started/platformatic-architecture.png similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatic-architecture.png rename to versioned_docs/version-1.7.1/getting-started/platformatic-architecture.png diff --git a/versioned_docs/version-1.5.1/getting-started/platformatic-composer-architecture.png b/versioned_docs/version-1.7.1/getting-started/platformatic-composer-architecture.png similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatic-composer-architecture.png rename to versioned_docs/version-1.7.1/getting-started/platformatic-composer-architecture.png diff --git a/versioned_docs/version-1.5.1/getting-started/platformatic-db-architecture.png b/versioned_docs/version-1.7.1/getting-started/platformatic-db-architecture.png similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatic-db-architecture.png rename to versioned_docs/version-1.7.1/getting-started/platformatic-db-architecture.png diff --git a/versioned_docs/version-1.5.1/getting-started/platformatic-runtime-architecture.png b/versioned_docs/version-1.7.1/getting-started/platformatic-runtime-architecture.png similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatic-runtime-architecture.png rename to versioned_docs/version-1.7.1/getting-started/platformatic-runtime-architecture.png diff --git a/versioned_docs/version-1.5.1/getting-started/platformatic-stackables-architecture.png b/versioned_docs/version-1.7.1/getting-started/platformatic-stackables-architecture.png similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatic-stackables-architecture.png rename to versioned_docs/version-1.7.1/getting-started/platformatic-stackables-architecture.png diff --git a/versioned_docs/version-1.5.1/getting-started/platformatid-composer-architecture.excalidraw b/versioned_docs/version-1.7.1/getting-started/platformatid-composer-architecture.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatid-composer-architecture.excalidraw rename to versioned_docs/version-1.7.1/getting-started/platformatid-composer-architecture.excalidraw diff --git a/versioned_docs/version-1.5.1/getting-started/platformatid-db-architecture.excalidraw b/versioned_docs/version-1.7.1/getting-started/platformatid-db-architecture.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatid-db-architecture.excalidraw rename to versioned_docs/version-1.7.1/getting-started/platformatid-db-architecture.excalidraw diff --git a/versioned_docs/version-1.5.1/getting-started/platformatid-runtime-architecture.excalidraw b/versioned_docs/version-1.7.1/getting-started/platformatid-runtime-architecture.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatid-runtime-architecture.excalidraw rename to versioned_docs/version-1.7.1/getting-started/platformatid-runtime-architecture.excalidraw diff --git a/versioned_docs/version-1.5.1/getting-started/platformatid-stackables-architecture.excalidraw b/versioned_docs/version-1.7.1/getting-started/platformatid-stackables-architecture.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/platformatid-stackables-architecture.excalidraw rename to versioned_docs/version-1.7.1/getting-started/platformatid-stackables-architecture.excalidraw diff --git a/versioned_docs/version-1.5.1/getting-started/quick-start-guide.md b/versioned_docs/version-1.7.1/getting-started/quick-start-guide.md similarity index 100% rename from versioned_docs/version-1.5.1/getting-started/quick-start-guide.md rename to versioned_docs/version-1.7.1/getting-started/quick-start-guide.md diff --git a/versioned_docs/version-1.5.1/guides/add-custom-functionality/extend-graphql.md b/versioned_docs/version-1.7.1/guides/add-custom-functionality/extend-graphql.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/add-custom-functionality/extend-graphql.md rename to versioned_docs/version-1.7.1/guides/add-custom-functionality/extend-graphql.md diff --git a/versioned_docs/version-1.5.1/guides/add-custom-functionality/extend-rest.md b/versioned_docs/version-1.7.1/guides/add-custom-functionality/extend-rest.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/add-custom-functionality/extend-rest.md rename to versioned_docs/version-1.7.1/guides/add-custom-functionality/extend-rest.md diff --git a/versioned_docs/version-1.5.1/guides/add-custom-functionality/introduction.md b/versioned_docs/version-1.7.1/guides/add-custom-functionality/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/add-custom-functionality/introduction.md rename to versioned_docs/version-1.7.1/guides/add-custom-functionality/introduction.md diff --git a/versioned_docs/version-1.5.1/guides/add-custom-functionality/prerequisites.md b/versioned_docs/version-1.7.1/guides/add-custom-functionality/prerequisites.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/add-custom-functionality/prerequisites.md rename to versioned_docs/version-1.7.1/guides/add-custom-functionality/prerequisites.md diff --git a/versioned_docs/version-1.5.1/guides/add-custom-functionality/raw-sql.md b/versioned_docs/version-1.7.1/guides/add-custom-functionality/raw-sql.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/add-custom-functionality/raw-sql.md rename to versioned_docs/version-1.7.1/guides/add-custom-functionality/raw-sql.md diff --git a/versioned_docs/version-1.5.1/guides/applications-with-stackables.md b/versioned_docs/version-1.7.1/guides/applications-with-stackables.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/applications-with-stackables.md rename to versioned_docs/version-1.7.1/guides/applications-with-stackables.md diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/architecture-diagram.excalidraw b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/architecture-diagram.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/architecture-diagram.excalidraw rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/architecture-diagram.excalidraw diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/architecture-diagram.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/architecture-diagram.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/architecture-diagram.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/architecture-diagram.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/create-a-static-app-workspace-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/create-a-static-app-workspace-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/create-a-static-app-workspace-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/create-a-static-app-workspace-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/create-a-static-app-workspace-02.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/create-a-static-app-workspace-02.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/create-a-static-app-workspace-02.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/create-a-static-app-workspace-02.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/create-an-app-on-platformati-cloud-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/create-an-app-on-platformati-cloud-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/create-an-app-on-platformati-cloud-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/create-an-app-on-platformati-cloud-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/make-the-composed-media-service-api-read-only-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/make-the-composed-media-service-api-read-only-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/make-the-composed-media-service-api-read-only-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/make-the-composed-media-service-api-read-only-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/start-the-runtime-app-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/start-the-runtime-app-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/start-the-runtime-app-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/start-the-runtime-app-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-books-service-api-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-books-service-api-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-books-service-api-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-books-service-api-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-composed-media-service-api-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-composed-media-service-api-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-composed-media-service-api-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-composed-media-service-api-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-movies-service-api-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-movies-service-api-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-movies-service-api-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-movies-service-api-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-people-service-01.png b/versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-people-service-01.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith-images/test-the-people-service-01.png rename to versioned_docs/version-1.7.1/guides/build-modular-monolith-images/test-the-people-service-01.png diff --git a/versioned_docs/version-1.5.1/guides/build-modular-monolith.md b/versioned_docs/version-1.7.1/guides/build-modular-monolith.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/build-modular-monolith.md rename to versioned_docs/version-1.7.1/guides/build-modular-monolith.md diff --git a/versioned_docs/version-1.5.1/guides/compiling-typescript-for-deployment.md b/versioned_docs/version-1.7.1/guides/compiling-typescript-for-deployment.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/compiling-typescript-for-deployment.md rename to versioned_docs/version-1.7.1/guides/compiling-typescript-for-deployment.md diff --git a/versioned_docs/version-1.5.1/guides/debug-platformatic-db.md b/versioned_docs/version-1.7.1/guides/debug-platformatic-db.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/debug-platformatic-db.md rename to versioned_docs/version-1.7.1/guides/debug-platformatic-db.md diff --git a/versioned_docs/version-1.5.1/guides/deploying-on-lambda.md b/versioned_docs/version-1.7.1/guides/deploying-on-lambda.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/deploying-on-lambda.md rename to versioned_docs/version-1.7.1/guides/deploying-on-lambda.md diff --git a/versioned_docs/version-1.5.1/guides/deployment/advanced-fly-io-deployment.md b/versioned_docs/version-1.7.1/guides/deployment/advanced-fly-io-deployment.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/deployment/advanced-fly-io-deployment.md rename to versioned_docs/version-1.7.1/guides/deployment/advanced-fly-io-deployment.md diff --git a/versioned_docs/version-1.5.1/guides/deployment/deploy-to-fly-io-with-sqlite.md b/versioned_docs/version-1.7.1/guides/deployment/deploy-to-fly-io-with-sqlite.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/deployment/deploy-to-fly-io-with-sqlite.md rename to versioned_docs/version-1.7.1/guides/deployment/deploy-to-fly-io-with-sqlite.md diff --git a/versioned_docs/version-1.5.1/guides/deployment/deployment.md b/versioned_docs/version-1.7.1/guides/deployment/deployment.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/deployment/deployment.md rename to versioned_docs/version-1.7.1/guides/deployment/deployment.md diff --git a/versioned_docs/version-1.5.1/guides/dockerize-platformatic-app.md b/versioned_docs/version-1.7.1/guides/dockerize-platformatic-app.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/dockerize-platformatic-app.md rename to versioned_docs/version-1.7.1/guides/dockerize-platformatic-app.md diff --git a/versioned_docs/version-1.5.1/guides/generate-frontend-code-to-consume-platformatic-rest-api.md b/versioned_docs/version-1.7.1/guides/generate-frontend-code-to-consume-platformatic-rest-api.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/generate-frontend-code-to-consume-platformatic-rest-api.md rename to versioned_docs/version-1.7.1/guides/generate-frontend-code-to-consume-platformatic-rest-api.md diff --git a/versioned_docs/version-1.5.1/guides/images/frontend-screenshot-1.jpg b/versioned_docs/version-1.7.1/guides/images/frontend-screenshot-1.jpg similarity index 100% rename from versioned_docs/version-1.5.1/guides/images/frontend-screenshot-1.jpg rename to versioned_docs/version-1.7.1/guides/images/frontend-screenshot-1.jpg diff --git a/versioned_docs/version-1.5.1/guides/images/frontend-screenshot-2.jpg b/versioned_docs/version-1.7.1/guides/images/frontend-screenshot-2.jpg similarity index 100% rename from versioned_docs/version-1.5.1/guides/images/frontend-screenshot-2.jpg rename to versioned_docs/version-1.7.1/guides/images/frontend-screenshot-2.jpg diff --git a/versioned_docs/version-1.5.1/guides/images/frontend-screenshot-3.jpg b/versioned_docs/version-1.7.1/guides/images/frontend-screenshot-3.jpg similarity index 100% rename from versioned_docs/version-1.5.1/guides/images/frontend-screenshot-3.jpg rename to versioned_docs/version-1.7.1/guides/images/frontend-screenshot-3.jpg diff --git a/versioned_docs/version-1.5.1/guides/images/frontend-screenshot-4.jpg b/versioned_docs/version-1.7.1/guides/images/frontend-screenshot-4.jpg similarity index 100% rename from versioned_docs/version-1.5.1/guides/images/frontend-screenshot-4.jpg rename to versioned_docs/version-1.7.1/guides/images/frontend-screenshot-4.jpg diff --git a/versioned_docs/version-1.7.1/guides/images/kibana-1.png b/versioned_docs/version-1.7.1/guides/images/kibana-1.png new file mode 100644 index 0000000000..aba342992a Binary files /dev/null and b/versioned_docs/version-1.7.1/guides/images/kibana-1.png differ diff --git a/versioned_docs/version-1.7.1/guides/images/kibana-2.png b/versioned_docs/version-1.7.1/guides/images/kibana-2.png new file mode 100644 index 0000000000..e5be35897f Binary files /dev/null and b/versioned_docs/version-1.7.1/guides/images/kibana-2.png differ diff --git a/versioned_docs/version-1.7.1/guides/images/kibana-3.png b/versioned_docs/version-1.7.1/guides/images/kibana-3.png new file mode 100644 index 0000000000..20cd7fca3d Binary files /dev/null and b/versioned_docs/version-1.7.1/guides/images/kibana-3.png differ diff --git a/versioned_docs/version-1.7.1/guides/images/kibana-4.png b/versioned_docs/version-1.7.1/guides/images/kibana-4.png new file mode 100644 index 0000000000..88c6101f9e Binary files /dev/null and b/versioned_docs/version-1.7.1/guides/images/kibana-4.png differ diff --git a/versioned_docs/version-1.5.1/guides/jwt-auth0.md b/versioned_docs/version-1.7.1/guides/jwt-auth0.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/jwt-auth0.md rename to versioned_docs/version-1.7.1/guides/jwt-auth0.md diff --git a/versioned_docs/version-1.7.1/guides/logging-to-elasticsearch.md b/versioned_docs/version-1.7.1/guides/logging-to-elasticsearch.md new file mode 100644 index 0000000000..0ea3e89d81 --- /dev/null +++ b/versioned_docs/version-1.7.1/guides/logging-to-elasticsearch.md @@ -0,0 +1,104 @@ +# Logging to ElasticSearch (or any other destination) + +This guide shows how to configure a Platformatic application to +deliver logs to [ElasticSearch](https://www.elastic.co/elasticsearch/) +or via any other supported [transports](https://getpino.io/#/docs/transports). +The logs will then be visualized via [Kibana](https://www.elastic.co/kibana). + +## Create a platformatic application + +Create a platformatic application using `npx create-platformatic@latest`. + +## Setup ElasticSearch and Kibana + +If you are logging to ElasticSearch and visualizing with Kibana, +you might want to set it up using [Docker Compose](https://docs.docker.com/compose/) +for local testing. + +Write the following as `docker-compose.yml`: + +```yaml +--- +version: '3.8' +services: + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:8.3.3 + environment: + - discovery.type=single-node + # Elasticsearch 8.x has HTTPS and auth on by default. This option is + # needed to use HTTP and no auth (as used in the tests). + - xpack.security.enabled=false + container_name: elasticsearch + ports: ['9200:9200'] + + kibana: + image: docker.elastic.co/kibana/kibana:8.3.3 + container_name: kibana + ports: ['5601:5601'] + depends_on: ['elasticsearch'] +``` + +Then, start ElasticSearch and Kibana with `docker-compose -f docker-compose.yml up`. + +## Install transport + +```bash +npm i pino-elasticsearch +``` + +## Configure Logger Transport + +Configuring your platformatic application to log to ElasticSearch is straighforward, +you just have to configure it like the following: + +```json +{ + ... + "server": { + "hostname": "{PLT_SERVER_HOSTNAME}", + "port": "{PORT}", + "logger": { + "level": "{PLT_SERVER_LOGGER_LEVEL}", + "transport": { + "targets": [{ + "target": "pino-elasticsearch", + "options": { + "node": "http://127.0.0.1:9200" + } + }, { + "target": "pino-pretty" + }] + } + } + } +} +``` + +This snippet can be applied either to the `platformatic.runtime.json` config +for Platformatic Runtime applications, or as part of the applicaiton configuration +for any other application. + +This setup will allow you to log both to the terminal (TTY) +and to ElasticSearch at the same time. + +Start your server with `platformatic start`, and navigate across +its API. + +## Configure Kibana + +1. Open `http://localhost:5601` in your browser +2. Click on the hamburger menu on top left, and then "Discover" + +![Kibana start page](./images/kibana-1.png) + +3. Click on the "Create Data View" + +![Create a Data View](./images/kibana-2.png) + +4. Write `pino*` as `name` and select `time` as timestamp field + +![Select an index](./images/kibana-3.png) + +5. Enjoy your logs + +![Browse logs](./images/kibana-4.png) diff --git a/versioned_docs/version-1.5.1/guides/migrating-express-app-to-platformatic-service.md b/versioned_docs/version-1.7.1/guides/migrating-express-app-to-platformatic-service.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/migrating-express-app-to-platformatic-service.md rename to versioned_docs/version-1.7.1/guides/migrating-express-app-to-platformatic-service.md diff --git a/versioned_docs/version-1.5.1/guides/migrating-fastify-app-to-platformatic-service.md b/versioned_docs/version-1.7.1/guides/migrating-fastify-app-to-platformatic-service.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/migrating-fastify-app-to-platformatic-service.md rename to versioned_docs/version-1.7.1/guides/migrating-fastify-app-to-platformatic-service.md diff --git a/versioned_docs/version-1.5.1/guides/monitoring.md b/versioned_docs/version-1.7.1/guides/monitoring.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/monitoring.md rename to versioned_docs/version-1.7.1/guides/monitoring.md diff --git a/versioned_docs/version-1.5.1/guides/prisma.md b/versioned_docs/version-1.7.1/guides/prisma.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/prisma.md rename to versioned_docs/version-1.7.1/guides/prisma.md diff --git a/versioned_docs/version-1.5.1/guides/securing-platformatic-db.md b/versioned_docs/version-1.7.1/guides/securing-platformatic-db.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/securing-platformatic-db.md rename to versioned_docs/version-1.7.1/guides/securing-platformatic-db.md diff --git a/versioned_docs/version-1.5.1/guides/seed-a-database.md b/versioned_docs/version-1.7.1/guides/seed-a-database.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/seed-a-database.md rename to versioned_docs/version-1.7.1/guides/seed-a-database.md diff --git a/versioned_docs/version-1.5.1/guides/telemetry-images/compose-openapi.png b/versioned_docs/version-1.7.1/guides/telemetry-images/compose-openapi.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/telemetry-images/compose-openapi.png rename to versioned_docs/version-1.7.1/guides/telemetry-images/compose-openapi.png diff --git a/versioned_docs/version-1.5.1/guides/telemetry-images/jaeger-1.png b/versioned_docs/version-1.7.1/guides/telemetry-images/jaeger-1.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/telemetry-images/jaeger-1.png rename to versioned_docs/version-1.7.1/guides/telemetry-images/jaeger-1.png diff --git a/versioned_docs/version-1.5.1/guides/telemetry-images/jaeger-2.png b/versioned_docs/version-1.7.1/guides/telemetry-images/jaeger-2.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/telemetry-images/jaeger-2.png rename to versioned_docs/version-1.7.1/guides/telemetry-images/jaeger-2.png diff --git a/versioned_docs/version-1.5.1/guides/telemetry-images/jaeger-3.png b/versioned_docs/version-1.7.1/guides/telemetry-images/jaeger-3.png similarity index 100% rename from versioned_docs/version-1.5.1/guides/telemetry-images/jaeger-3.png rename to versioned_docs/version-1.7.1/guides/telemetry-images/jaeger-3.png diff --git a/versioned_docs/version-1.5.1/guides/telemetry.md b/versioned_docs/version-1.7.1/guides/telemetry.md similarity index 100% rename from versioned_docs/version-1.5.1/guides/telemetry.md rename to versioned_docs/version-1.7.1/guides/telemetry.md diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/deploy-database-neon.md b/versioned_docs/version-1.7.1/platformatic-cloud/deploy-database-neon.md similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/deploy-database-neon.md rename to versioned_docs/version-1.7.1/platformatic-cloud/deploy-database-neon.md diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/app-workspace-static-deployed.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/app-workspace-static-deployed.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/app-workspace-static-deployed.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/app-workspace-static-deployed.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/button-continue-with-github.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/button-continue-with-github.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/button-continue-with-github.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/button-continue-with-github.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/cloud-apps-empty.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/cloud-apps-empty.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/cloud-apps-empty.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/cloud-apps-empty.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-comment.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-comment.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-comment.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-comment.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-in-progress.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-in-progress.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-in-progress.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/github-pr-deploy-in-progress.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/github-pr-risk-calculation-comment.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/github-pr-risk-calculation-comment.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/github-pr-risk-calculation-comment.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/github-pr-risk-calculation-comment.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/hello-json-response.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/hello-json-response.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/hello-json-response.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/hello-json-response.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/platformatic-db-swagger-ui.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/platformatic-db-swagger-ui.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/platformatic-db-swagger-ui.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/platformatic-db-swagger-ui.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/workspace-create-dynamic.png b/versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/workspace-create-dynamic.png similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/images/quick-start-guide/workspace-create-dynamic.png rename to versioned_docs/version-1.7.1/platformatic-cloud/images/quick-start-guide/workspace-create-dynamic.png diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/pricing.md b/versioned_docs/version-1.7.1/platformatic-cloud/pricing.md similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/pricing.md rename to versioned_docs/version-1.7.1/platformatic-cloud/pricing.md diff --git a/versioned_docs/version-1.5.1/platformatic-cloud/quick-start-guide.md b/versioned_docs/version-1.7.1/platformatic-cloud/quick-start-guide.md similarity index 100% rename from versioned_docs/version-1.5.1/platformatic-cloud/quick-start-guide.md rename to versioned_docs/version-1.7.1/platformatic-cloud/quick-start-guide.md diff --git a/versioned_docs/version-1.5.1/reference/cli.md b/versioned_docs/version-1.7.1/reference/cli.md similarity index 93% rename from versioned_docs/version-1.5.1/reference/cli.md rename to versioned_docs/version-1.7.1/reference/cli.md index 1db5bba110..75ca40bdea 100644 --- a/versioned_docs/version-1.5.1/reference/cli.md +++ b/versioned_docs/version-1.7.1/reference/cli.md @@ -93,6 +93,7 @@ Welcome to Platformatic. Available commands are: * `deploy` - deploy a Platformatic application to the cloud. * `runtime` - start Platformatic Runtime; type `platformatic runtime help` to know more. * `start` - start a Platformatic application. +* `login` - generate a Platformatic login api key. #### compile @@ -131,6 +132,47 @@ Options: > :information_source: > > When deploying an application to a ***dynamic workspace***, specify the deploy `--label` option. You can find it on your cloud dashboard or you can specify a new one. +> +> If you do not specify an environment file to use with the `-e` flag, **ensure that a default environment file named `.env` exists**. + +Deploy a **static** Platformatic Cloud application. + +```bash +platformatic deploy \ + -t static \ + -c platformatic.db.json \ + -e .env.prototype \ + --workspace-id=00000000-0000-0000-0000-000000000000 \ + --workspace-key=11111111111111111111111111111111 +``` + +Deploy a **static** Platformatic Cloud application with a workspace keys file. The keys file can be downloaded from the Platformatic Console when generating a new API key. + +```bash +platformatic deploy \ + -t static \ + -c platformatic.db.json \ + -k foo.plt.txt +``` + +The `foo.plt.txt` must contain two variables for the workspace id and workspace API key. + +``` +# Contents of foo.plt.txt +PLATFORMATIC_STATIC_WORKSPACE_ID=00000000-0000-0000-0000-000000000000 +PLATFORMATIC_STATIC_WORKSPACE_API_KEY=11111111111111111111111111111111 +``` + +Deploy a **dynamic** Platformatic Cloud application. + +```bash +platformatic deploy \ + -t dynamic \ + -c platformatic.db.json \ + -l dev \ + --workspace-id=00000000-0000-0000-0000-000000000000 \ + --workspace-key=11111111111111111111111111111111 +``` #### gh @@ -163,6 +205,20 @@ You can find more details about the configuration format here: +#### login + +Generate a Platformatic login api key. + +``` bash + $ platformatic deploy +``` + +Options: + +* `-c, --config FILE` - Specify a path to a global platformatic config file. Defaults to `~/.platformatic/config.json`. +* `--browser` - Automatically open default browser. If process stdout is a TTY, the default is `true`. Otherwise, the default is `false`. + + #### start Start a Platformatic application with the following command: diff --git a/versioned_docs/version-1.5.1/reference/client/frontend.md b/versioned_docs/version-1.7.1/reference/client/frontend.md similarity index 98% rename from versioned_docs/version-1.5.1/reference/client/frontend.md rename to versioned_docs/version-1.7.1/reference/client/frontend.md index 6721486a1e..1fd15f27b6 100644 --- a/versioned_docs/version-1.5.1/reference/client/frontend.md +++ b/versioned_docs/version-1.7.1/reference/client/frontend.md @@ -114,7 +114,7 @@ The *typescript* implementation will look like this ```ts import type { Api } from './api-types' -import * as Types from './api-types' +import type * as Types from './api-types' let baseUrl = '' export const setBaseUrl = (newUrl: string) : void => { baseUrl = newUrl } diff --git a/versioned_docs/version-1.5.1/reference/client/introduction.md b/versioned_docs/version-1.7.1/reference/client/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/client/introduction.md rename to versioned_docs/version-1.7.1/reference/client/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/client/programmatic.md b/versioned_docs/version-1.7.1/reference/client/programmatic.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/client/programmatic.md rename to versioned_docs/version-1.7.1/reference/client/programmatic.md diff --git a/versioned_docs/version-1.5.1/reference/composer/api-modification.md b/versioned_docs/version-1.7.1/reference/composer/api-modification.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/composer/api-modification.md rename to versioned_docs/version-1.7.1/reference/composer/api-modification.md diff --git a/versioned_docs/version-1.5.1/reference/composer/configuration.md b/versioned_docs/version-1.7.1/reference/composer/configuration.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/composer/configuration.md rename to versioned_docs/version-1.7.1/reference/composer/configuration.md diff --git a/versioned_docs/version-1.5.1/reference/composer/introduction.md b/versioned_docs/version-1.7.1/reference/composer/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/composer/introduction.md rename to versioned_docs/version-1.7.1/reference/composer/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/composer/plugin.md b/versioned_docs/version-1.7.1/reference/composer/plugin.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/composer/plugin.md rename to versioned_docs/version-1.7.1/reference/composer/plugin.md diff --git a/versioned_docs/version-1.5.1/reference/composer/programmatic.md b/versioned_docs/version-1.7.1/reference/composer/programmatic.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/composer/programmatic.md rename to versioned_docs/version-1.7.1/reference/composer/programmatic.md diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/images/http.png b/versioned_docs/version-1.7.1/reference/db/authorization/images/http.png similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/images/http.png rename to versioned_docs/version-1.7.1/reference/db/authorization/images/http.png diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/images/jwt.png b/versioned_docs/version-1.7.1/reference/db/authorization/images/jwt.png similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/images/jwt.png rename to versioned_docs/version-1.7.1/reference/db/authorization/images/jwt.png diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/images/sources/http.excalidraw b/versioned_docs/version-1.7.1/reference/db/authorization/images/sources/http.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/images/sources/http.excalidraw rename to versioned_docs/version-1.7.1/reference/db/authorization/images/sources/http.excalidraw diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/images/sources/jwt.excalidraw b/versioned_docs/version-1.7.1/reference/db/authorization/images/sources/jwt.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/images/sources/jwt.excalidraw rename to versioned_docs/version-1.7.1/reference/db/authorization/images/sources/jwt.excalidraw diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/images/sources/webhook.excalidraw b/versioned_docs/version-1.7.1/reference/db/authorization/images/sources/webhook.excalidraw similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/images/sources/webhook.excalidraw rename to versioned_docs/version-1.7.1/reference/db/authorization/images/sources/webhook.excalidraw diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/images/webhook.png b/versioned_docs/version-1.7.1/reference/db/authorization/images/webhook.png similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/images/webhook.png rename to versioned_docs/version-1.7.1/reference/db/authorization/images/webhook.png diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/introduction.md b/versioned_docs/version-1.7.1/reference/db/authorization/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/introduction.md rename to versioned_docs/version-1.7.1/reference/db/authorization/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/rules.md b/versioned_docs/version-1.7.1/reference/db/authorization/rules.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/rules.md rename to versioned_docs/version-1.7.1/reference/db/authorization/rules.md diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/strategies.md b/versioned_docs/version-1.7.1/reference/db/authorization/strategies.md similarity index 90% rename from versioned_docs/version-1.5.1/reference/db/authorization/strategies.md rename to versioned_docs/version-1.7.1/reference/db/authorization/strategies.md index f34644e0b6..af450b9cd2 100644 --- a/versioned_docs/version-1.5.1/reference/db/authorization/strategies.md +++ b/versioned_docs/version-1.7.1/reference/db/authorization/strategies.md @@ -176,3 +176,18 @@ that presented the `adminSecret` to perform any operation on any entity: "save": false } ``` + +## Custom authorization strategies + +You can create your own authorization strategy using a `addAuthStrategy` function. `addAuthStrategy` accepts a strategy `name` and a `createSession` function as a params. `createSession` function should set `request.user` object. All custom strategies will be executed after `jwt` and `webhook` default strategies. + +_Example_ + +```js +app.addAuthStrategy({ + name: 'custom-auth-strategy', + createSession: async (req, reply) => { + req.user = { id: 42, role: 'admin' } + } +}) +``` diff --git a/versioned_docs/version-1.5.1/reference/db/authorization/user-roles-metadata.md b/versioned_docs/version-1.7.1/reference/db/authorization/user-roles-metadata.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/authorization/user-roles-metadata.md rename to versioned_docs/version-1.7.1/reference/db/authorization/user-roles-metadata.md diff --git a/versioned_docs/version-1.5.1/reference/db/configuration.md b/versioned_docs/version-1.7.1/reference/db/configuration.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/configuration.md rename to versioned_docs/version-1.7.1/reference/db/configuration.md diff --git a/versioned_docs/version-1.5.1/reference/db/introduction.md b/versioned_docs/version-1.7.1/reference/db/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/introduction.md rename to versioned_docs/version-1.7.1/reference/db/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/db/logging.md b/versioned_docs/version-1.7.1/reference/db/logging.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/logging.md rename to versioned_docs/version-1.7.1/reference/db/logging.md diff --git a/versioned_docs/version-1.5.1/reference/db/migrations.md b/versioned_docs/version-1.7.1/reference/db/migrations.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/migrations.md rename to versioned_docs/version-1.7.1/reference/db/migrations.md diff --git a/versioned_docs/version-1.5.1/reference/db/plugin.md b/versioned_docs/version-1.7.1/reference/db/plugin.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/plugin.md rename to versioned_docs/version-1.7.1/reference/db/plugin.md diff --git a/versioned_docs/version-1.5.1/reference/db/programmatic.md b/versioned_docs/version-1.7.1/reference/db/programmatic.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/programmatic.md rename to versioned_docs/version-1.7.1/reference/db/programmatic.md diff --git a/versioned_docs/version-1.5.1/reference/db/schema-support.md b/versioned_docs/version-1.7.1/reference/db/schema-support.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/db/schema-support.md rename to versioned_docs/version-1.7.1/reference/db/schema-support.md diff --git a/versioned_docs/version-1.5.1/reference/errors.md b/versioned_docs/version-1.7.1/reference/errors.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/errors.md rename to versioned_docs/version-1.7.1/reference/errors.md diff --git a/versioned_docs/version-1.5.1/reference/runtime/configuration.md b/versioned_docs/version-1.7.1/reference/runtime/configuration.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/runtime/configuration.md rename to versioned_docs/version-1.7.1/reference/runtime/configuration.md diff --git a/versioned_docs/version-1.5.1/reference/runtime/introduction.md b/versioned_docs/version-1.7.1/reference/runtime/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/runtime/introduction.md rename to versioned_docs/version-1.7.1/reference/runtime/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/runtime/programmatic.md b/versioned_docs/version-1.7.1/reference/runtime/programmatic.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/runtime/programmatic.md rename to versioned_docs/version-1.7.1/reference/runtime/programmatic.md diff --git a/versioned_docs/version-1.5.1/reference/service/configuration.md b/versioned_docs/version-1.7.1/reference/service/configuration.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/service/configuration.md rename to versioned_docs/version-1.7.1/reference/service/configuration.md diff --git a/versioned_docs/version-1.5.1/reference/service/introduction.md b/versioned_docs/version-1.7.1/reference/service/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/service/introduction.md rename to versioned_docs/version-1.7.1/reference/service/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/service/plugin.md b/versioned_docs/version-1.7.1/reference/service/plugin.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/service/plugin.md rename to versioned_docs/version-1.7.1/reference/service/plugin.md diff --git a/versioned_docs/version-1.5.1/reference/service/programmatic.md b/versioned_docs/version-1.7.1/reference/service/programmatic.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/service/programmatic.md rename to versioned_docs/version-1.7.1/reference/service/programmatic.md diff --git a/versioned_docs/version-1.5.1/reference/sql-events/fastify-plugin.md b/versioned_docs/version-1.7.1/reference/sql-events/fastify-plugin.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-events/fastify-plugin.md rename to versioned_docs/version-1.7.1/reference/sql-events/fastify-plugin.md diff --git a/versioned_docs/version-1.5.1/reference/sql-events/introduction.md b/versioned_docs/version-1.7.1/reference/sql-events/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-events/introduction.md rename to versioned_docs/version-1.7.1/reference/sql-events/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/examples/deleteEntity.js b/versioned_docs/version-1.7.1/reference/sql-graphql/examples/deleteEntity.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/examples/deleteEntity.js rename to versioned_docs/version-1.7.1/reference/sql-graphql/examples/deleteEntity.js diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/examples/insertEntity.js b/versioned_docs/version-1.7.1/reference/sql-graphql/examples/insertEntity.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/examples/insertEntity.js rename to versioned_docs/version-1.7.1/reference/sql-graphql/examples/insertEntity.js diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/examples/query.js b/versioned_docs/version-1.7.1/reference/sql-graphql/examples/query.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/examples/query.js rename to versioned_docs/version-1.7.1/reference/sql-graphql/examples/query.js diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/examples/saveEntity.js b/versioned_docs/version-1.7.1/reference/sql-graphql/examples/saveEntity.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/examples/saveEntity.js rename to versioned_docs/version-1.7.1/reference/sql-graphql/examples/saveEntity.js diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/ignore.md b/versioned_docs/version-1.7.1/reference/sql-graphql/ignore.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/ignore.md rename to versioned_docs/version-1.7.1/reference/sql-graphql/ignore.md diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/introduction.md b/versioned_docs/version-1.7.1/reference/sql-graphql/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/introduction.md rename to versioned_docs/version-1.7.1/reference/sql-graphql/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/many-to-many.md b/versioned_docs/version-1.7.1/reference/sql-graphql/many-to-many.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/many-to-many.md rename to versioned_docs/version-1.7.1/reference/sql-graphql/many-to-many.md diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/mutations.md b/versioned_docs/version-1.7.1/reference/sql-graphql/mutations.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/mutations.md rename to versioned_docs/version-1.7.1/reference/sql-graphql/mutations.md diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/queries.md b/versioned_docs/version-1.7.1/reference/sql-graphql/queries.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/queries.md rename to versioned_docs/version-1.7.1/reference/sql-graphql/queries.md diff --git a/versioned_docs/version-1.5.1/reference/sql-graphql/subscriptions.md b/versioned_docs/version-1.7.1/reference/sql-graphql/subscriptions.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-graphql/subscriptions.md rename to versioned_docs/version-1.7.1/reference/sql-graphql/subscriptions.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/api.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/api.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/api.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/api.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/example.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/example.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/example.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/example.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/fields.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/fields.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/fields.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/fields.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/hooks.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/hooks.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/hooks.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/hooks.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/introduction.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/introduction.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/relations.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/relations.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/relations.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/relations.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/timestamps.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/timestamps.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/timestamps.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/timestamps.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/entities/transactions.md b/versioned_docs/version-1.7.1/reference/sql-mapper/entities/transactions.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/entities/transactions.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/entities/transactions.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/count.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/count.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/count.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/count.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/delete.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/delete.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/delete.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/delete.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/fastify-plugin.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/fastify-plugin.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/fastify-plugin.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/fastify-plugin.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/fields.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/fields.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/fields.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/fields.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/find.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/find.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/find.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/find.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/hooks.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/hooks.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/hooks.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/hooks.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/insert.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/insert.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/insert.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/insert.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/relations.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/relations.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/relations.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/relations.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/examples/save.js b/versioned_docs/version-1.7.1/reference/sql-mapper/examples/save.js similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/examples/save.js rename to versioned_docs/version-1.7.1/reference/sql-mapper/examples/save.js diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/fastify-plugin.md b/versioned_docs/version-1.7.1/reference/sql-mapper/fastify-plugin.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/fastify-plugin.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/fastify-plugin.md diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/images/plt-db-hooks.svg b/versioned_docs/version-1.7.1/reference/sql-mapper/images/plt-db-hooks.svg similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/images/plt-db-hooks.svg rename to versioned_docs/version-1.7.1/reference/sql-mapper/images/plt-db-hooks.svg diff --git a/versioned_docs/version-1.5.1/reference/sql-mapper/introduction.md b/versioned_docs/version-1.7.1/reference/sql-mapper/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-mapper/introduction.md rename to versioned_docs/version-1.7.1/reference/sql-mapper/introduction.md diff --git a/versioned_docs/version-1.5.1/reference/sql-openapi/api.md b/versioned_docs/version-1.7.1/reference/sql-openapi/api.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-openapi/api.md rename to versioned_docs/version-1.7.1/reference/sql-openapi/api.md diff --git a/versioned_docs/version-1.5.1/reference/sql-openapi/ignore.md b/versioned_docs/version-1.7.1/reference/sql-openapi/ignore.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-openapi/ignore.md rename to versioned_docs/version-1.7.1/reference/sql-openapi/ignore.md diff --git a/versioned_docs/version-1.5.1/reference/sql-openapi/introduction.md b/versioned_docs/version-1.7.1/reference/sql-openapi/introduction.md similarity index 100% rename from versioned_docs/version-1.5.1/reference/sql-openapi/introduction.md rename to versioned_docs/version-1.7.1/reference/sql-openapi/introduction.md diff --git a/versioned_sidebars/version-1.5.1-sidebars.json b/versioned_sidebars/version-1.7.1-sidebars.json similarity index 98% rename from versioned_sidebars/version-1.5.1-sidebars.json rename to versioned_sidebars/version-1.7.1-sidebars.json index eafd6d15e4..24557b357b 100644 --- a/versioned_sidebars/version-1.5.1-sidebars.json +++ b/versioned_sidebars/version-1.7.1-sidebars.json @@ -60,7 +60,8 @@ "guides/applications-with-stackables", "guides/telemetry", "guides/dockerize-platformatic-app", - "guides/build-modular-monolith" + "guides/build-modular-monolith", + "guides/logging-to-elasticsearch" ] }, { diff --git a/versions.json b/versions.json index 9078e9dec1..179940f682 100644 --- a/versions.json +++ b/versions.json @@ -1,7 +1,7 @@ [ + "1.7.1", "1.7.0", "1.6.1", "1.6.0", - "1.5.2", - "1.5.1" + "1.5.2" ] \ No newline at end of file