Skip to content

Commit 88ea749

Browse files
committed
chore: sunset Foo API
1 parent 119e065 commit 88ea749

8 files changed

Lines changed: 24 additions & 0 deletions

File tree

packages/foo-api-docs/docs/api-cli.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's API CLI for its page experience testing serv
66

77
# API CLI
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
`foo-api` CLI is a Node.js package to provide utilities using [Foo's REST API](/docs/api/endpoints). This package is [hosted on NPM](https://www.npmjs.com/package/@foo-software/foo-api-cli).
1013

1114
## Getting Started

packages/foo-api-docs/docs/api-client.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's Node.js API CLI for its page experience test
66

77
# Node.js API Client
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
The API client is a Node.js package to interface with [Foo's REST API](/docs/api/endpoints) programmatically. This package is [hosted on NPM](https://www.npmjs.com/package/@foo-software/foo-api-client) and exports an API client class with methods for interacting with endpoints. The project is typed (for those working with TypeScript). Before proceeding you may want to first read the below sections.
1013

1114
- [API Endpoints](/docs/api/endpoints)

packages/foo-api-docs/docs/api/api-response.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's API response for its page experience testing
66

77
# Response
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
All responses will have either a `data` or `error` field. A request for a collection of data will populate `data` with an array, otherwise `data` will be a single JSON object. If an error occurs - th `error` field will be populated with a message. Below is an illustration of the API response in TypeScript.
1013

1114
```typescript

packages/foo-api-docs/docs/api/authentication.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's API authentication for its page experience t
66

77
# Authentication
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
Foo's REST API implements a loose form of "token authentication" or "bearer authentication". At the time of this writing all endpoints require authentication and there is a single, "all or nothing" level of authorization (as in - no endpoints requre specific types of access... you either have access to all of them or you don't).
1013

1114
## Example

packages/foo-api-docs/docs/api/endpoints.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's API endpoints for its page experience testin
66

77
# Endpoints
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
Foo exposes a public REST API for management of pages on to be audited by Lighthouse. Before proceeding you may want to first read the below sections.
1013

1114
- [API Response](/docs/api/api-response)

packages/foo-api-docs/docs/api/parameters.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's API parameters for its page experience testi
66

77
# Parameters
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
API methods that are "read-only" and return an array of data will typically support the following optional parameters. In the REST API these are query parameters. Below is a TypeScript representation useful for [Foo's Node.js API client](/docs/api-client).
1013

1114
```typescript

packages/foo-api-docs/docs/api/resources.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's API resources for its page experience testin
66

77
# Resources
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
The sets of data we manage can be thought of as resources. Each resource is represented by a shape of data consistent across interfaces.
1013

1114
## Common Types

packages/foo-api-docs/docs/api/rest-methods.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description: Documentation of Foo's API REST methods for its page experience tes
66

77
# REST Methods
88

9+
> [!IMPORTANT]
10+
> Foo API is now deprecated and will sunset on 01/01/2026. It will be permanently offline soon after that date.
11+
912
Foo's REST API expects standard requests and payloads. Below are examples of different REST methods via [cURL](https://en.wikipedia.org/wiki/CURL#cURL).
1013

1114
## GET

0 commit comments

Comments
 (0)