Skip to content

Commit 4a891fc

Browse files
PER-15119: remove deprecated pdp-api.permit.io host from docs (#638)
* PER-15119: remove deprecated pdp-api.permit.io host from docs The shared public PDP at pdp-api.permit.io is a legacy/decommissioned instance and is no longer in use. Remove all references to that host: - PDP API Reference page: drop the dead online redoc iframe embed and keep the local-PDP OpenAPI/redoc guidance. - SDK redoc deep-links (all-tenants, url-mapping): repoint to the internal /api/pdp-api-reference page. - authz-query curl examples (all-tenants, authorized_users, user-permissions): repoint to the local PDP at http://localhost:7766, matching the convention used elsewhere in the docs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * PER-15119: fix local PDP redoc/openapi URL to localhost:7766 The PDP API Reference page referenced localhost:7000, which is the container-internal port. The host-mapped port used everywhere else in the docs (via -p 7766:7000) is 7766. Repoint the browser-facing openapi.json/redoc URLs to localhost:7766 for consistency. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 16539a1 commit 4a891fc

5 files changed

Lines changed: 8 additions & 23 deletions

File tree

docs/api/pdp-api-reference.mdx

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,8 @@ title: PDP API Reference
55

66
# PDP API Reference
77

8-
## PDP/SDK OpenAPI spec - overview and evaluation purpose of online version
8+
## PDP/SDK OpenAPI spec
99

10+
Just like the Permit.io cloud service, the PDP exposes an OpenAPI spec which can be used to explore the API and develop your own SDKs.
1011

11-
You can access and view the redoc at [https://pdp-api.permit.io/redoc](https://pdp-api.permit.io/redoc) which is embedded here:
12-
13-
<iframe
14-
style={{
15-
boxShadow: "0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)",
16-
backgroundColor: "#FDFCFC",
17-
maxWidth: "80vw",
18-
}}
19-
src={"https://pdp-api.permit.io/redoc"}
20-
width={"1080px"}
21-
height={"600px"}
22-
/>
23-
24-
## PDP/SDK OpenAPI spec - local version
25-
26-
Just like the Permit.io cloud service, the local PDP exposes an OpenAPI spec which can be used to develop your own SDKs.
27-
Assuming you're running your PDP at `localhost:7000` you can access the spec at `http://localhost:7000/openapi.json` and view the docs at `http://localhost:7000/redoc`.
12+
Assuming you're running your PDP at `localhost:7766` you can access the spec at `http://localhost:7766/openapi.json` and view the docs at `http://localhost:7766/redoc`.

docs/how-to/enforce-permissions/url-mapping/url-mapping-check.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ curl --location 'http://localhost:7766/allowed_url' \
8484
}'
8585
```
8686

87-
You can see more details about the payload in the [PDP API Redoc](https://pdp-api.permit.io/redoc#tag/Authorization-API/operation/is_allowed_url_allowed_url_post)
87+
You can see more details about the payload in the [PDP API Reference](/api/pdp-api-reference)

docs/sdk/nodejs/all-tenants.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: All Tenants Check Examples
1010
To validate permissions irrespective of the tenant, you can use the permit.AllTenantsCheck function. This function determines if a user has permissions for a specified action
1111
on a resource across all tenants, the response will be a list of tenants in which the user is allowed to perform the request.
1212
:::note
13-
You can also find information about the All tenants check in the [Permit Authorization Redoc](https://pdp-api.permit.io/redoc#tag/Authorization-API/operation/is_allowed_all_tenants_allowed_all_tenants_post).
13+
You can also find information about the All tenants check in the [PDP API Reference](/api/pdp-api-reference).
1414
:::
1515

1616

@@ -23,7 +23,7 @@ To perform this check, send a GET request to the `/allowed/all-tenants` endpoint
2323
- **sdk**: The identifier for the SDK making the request.
2424

2525
```bash
26-
curl 'https://pdp-api.permit.io/allowed/all-tenants' \
26+
curl 'http://localhost:7766/allowed/all-tenants' \
2727
-X GET \
2828
-H 'Authorization: Bearer API_SECRET_KEY' \
2929
-D '{ "user": "employee1", "action": "read", "resource": "document", "context": {}, "sdk": "node" }'

src/sdks/walkthroughs/authz-queries/getAuthorizedUsers/example.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
curl https://pdp-api.permit.io/authorized_users \
1+
curl http://localhost:7766/authorized_users \
22
--request POST \
33
--header "Authorization: Bearer YOUR_SECRET_TOKEN" \
44
--header "Content-Type: application/json" \

src/sdks/walkthroughs/authz-queries/getUserPermissions/example.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
curl https://pdp-api.permit.io/user-permissions \
1+
curl http://localhost:7766/user-permissions \
22
--request POST \
33
--header "Authorization: Bearer YOUR_SECRET_TOKEN" \
44
--header "Content-Type: application/json" \

0 commit comments

Comments
 (0)