Skip to content

Commit

Permalink
Improves IA of the API ref section (#14523)
Browse files Browse the repository at this point in the history
Co-authored-by: Bill Palombi <[email protected]>
  • Loading branch information
discdiver and billpalombi authored Jul 10, 2024
1 parent 954d250 commit abc6d04
Show file tree
Hide file tree
Showing 186 changed files with 378 additions and 421 deletions.
14 changes: 6 additions & 8 deletions docs/3.0rc/api-ref/index.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
title: API Reference
description: Explore Prefect's auto-generated reference documentation.
title: API & SDK References
sidebarTitle: Overview
description: Explore Prefect's auto-generated API & SDK reference documentation.
---

Prefect auto-generates reference documentation for the following components:

- **[Prefect Python SDK](https://prefect-python-sdk-docs.netlify.app/)**: used to build, test, and execute workflows.
- **Prefect REST API**: used by workflow clients and the Prefect UI for orchestration and data retrieval.
- Prefect Cloud REST API documentation is available at <a href="https://app.prefect.cloud/api/docs" target="_blank">https://app.prefect.cloud/api/docs</a>.
- The REST API documentation for self-hosted Prefect server is available in the [Prefect REST API Reference](3.0rc/api-ref/server).


When self-hosting, you can access REST API documentation at the `/docs` endpoint of your [`PREFECT_API_URL`](/3.0rc/manage/settings-and-profiles/) - for example, if you ran `prefect server start` with no additional configuration you can find this reference at <a href="http://localhost:4200/docs" target="_blank">http://localhost:4200/docs</a>.
- **[Prefect REST API](/3.0rc/api-ref/)**: used by workflow clients and the Prefect UI for orchestration and data retrieval.
- Prefect Cloud REST API documentation: <a href="https://app.prefect.cloud/api/docs" target="_blank">https://app.prefect.cloud/api/docs</a>.
- Self-hosted Prefect server [REST API documentation](/3.0rc/api-ref/server). Additionally, if self-hosting a Prefect server instance, you can access REST API documentation at the `/docs` endpoint of your [`PREFECT_API_URL`](/3.0rc/manage/settings-and-profiles/). For example, if you run `prefect server start` with no additional configuration you can find this reference at <a href="http://localhost:4200/docs" target="_blank">http://localhost:4200/docs</a>.
4 changes: 0 additions & 4 deletions docs/3.0rc/api-ref/rest-api/cloud-rest-api-reference.mdx

This file was deleted.

8 changes: 8 additions & 0 deletions docs/3.0rc/api-ref/rest-api/cloud/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Cloud API Overview
description: The Prefect Cloud API enables you to interact programmatically with Prefect Cloud.
---

The Prefect Cloud API is organized around REST.

Explore the interactive [Prefect Cloud REST API reference](https://app.prefect.cloud/api/docs).
6 changes: 3 additions & 3 deletions docs/3.0rc/api-ref/rest-api/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Cloud API Overview
description: Prefect REST API for interacting with the orchestration engine and Prefect Cloud.
title: REST API overview
description: Prefect REST API for interacting with Prefect Cloud & self-hosted Prefect server.
---

The Prefect API is organized around REST. It is used for communicating data from clients to a self-hosted Prefect server instance so that orchestration can be performed. This API is consumed by clients such as the Prefect Python SDK or the server dashboard.
Expand All @@ -17,7 +17,7 @@ Prefect Cloud and self-hosted Prefect server each provide a REST API.

You can interact with the Prefect REST API in several ways:

- Create an instance of [`PrefectClient`](https://prefect-python-sdk-docs.netlify.app/prefect/client/orchestration/#prefect.client.orchestration.PrefectClient)
- Create an instance of [`PrefectClient`](https://prefect-python-sdk-docs.netlify.app/prefect/client/orchestration/#prefect.client.orchestration.PrefectClient), which is part of the [Prefect Python SDK](/3.0rc/api-ref/python/).
- Use your favorite Python HTTP library such as [Requests](https://requests.readthedocs.io/en/latest/) or [HTTPX](https://www.python-httpx.org/)
- Use an HTTP library in your language of choice
- Use [curl](https://curl.se/) from the command line
Expand Down
9 changes: 9 additions & 0 deletions docs/3.0rc/api-ref/rest-api/server/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Server API Overview
description: The Prefect server API enables you to interact programmatically with self-hosted Prefect server.
---

The self-hosted Prefect server API is organized around REST.
Select links in the left navigation menu to explore.

Learn about [self-hosting Prefect server](/3.0rc/manage/self-host/).
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions docs/3.0rc/api-ref/server/index.mdx

This file was deleted.

Loading

0 comments on commit abc6d04

Please sign in to comment.