From 1d82a72883a1aafe581834113847fcd7fc10f9bf Mon Sep 17 00:00:00 2001 From: Keenan Johnson Date: Mon, 1 Jun 2026 18:51:15 -0500 Subject: [PATCH] Update URLs in docs --- README.md | 8 ++++---- internal/docs/openapi.yaml | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4e7712c..0886b30 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ A public API for global CO2 measurements, powered by the [Ribbit Network](https: ## 📖 Documentation Interactive API reference (try requests in the browser): -**[ribbit-api.fly.dev/docs](https://ribbit-api.fly.dev/docs)** +**[api.ribbitnetwork.org/docs](https://api.ribbitnetwork.org/docs)** Machine-readable OpenAPI spec: -**[ribbit-api.fly.dev/openapi.yaml](https://ribbit-api.fly.dev/openapi.yaml)** +**[api.ribbitnetwork.org/openapi.yaml](https://api.ribbitnetwork.org/openapi.yaml)** The spec also lives in this repo at [`internal/docs/openapi.yaml`](internal/docs/openapi.yaml) and is the source of truth — use it to generate client SDKs (`openapi-generator`, `oapi-codegen`, etc.) or to import into Postman / Insomnia / Bruno. @@ -18,7 +18,7 @@ Once you have an [API key](#api-keys), fetch the last day of CO2 readings: ```sh curl -H "Authorization: Bearer $RIBBIT_API_KEY" \ - "https://ribbit-api.fly.dev/data?start=2024-01-01T00:00:00Z&stop=2024-01-02T00:00:00Z&fields=co2,lat,lon&interval=1h" + "https://api.ribbitnetwork.org/data?start=2024-01-01T00:00:00Z&stop=2024-01-02T00:00:00Z&fields=co2,lat,lon&interval=1h" ``` Endpoints at a glance: @@ -31,7 +31,7 @@ Endpoints at a glance: | `GET /data` | ✅ | Sensor measurements over a time range | | `GET /sensors` | ✅ | List of known sensor IDs | -See **[/docs](https://ribbit-api.fly.dev/docs)** for full parameter, response, and error documentation. +See **[/docs](https://api.ribbitnetwork.org/docs)** for full parameter, response, and error documentation. ## Rate limits diff --git a/internal/docs/openapi.yaml b/internal/docs/openapi.yaml index a0a1367..714ab5c 100644 --- a/internal/docs/openapi.yaml +++ b/internal/docs/openapi.yaml @@ -37,8 +37,10 @@ info: url: https://github.com/Ribbit-Network/api servers: - - url: https://ribbit-api.fly.dev + - url: https://api.ribbitnetwork.org description: Production + - url: https://ribbit-api.fly.dev + description: Production (Fly-assigned fallback URL) - url: http://localhost:8080 description: Local development