Browse Source

fix(docs): typo

Peter Thomassen 3 years ago
parent
commit
9c1e4f13cf
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/auth/tokens.rst

+ 3 - 3
docs/auth/tokens.rst

@@ -349,7 +349,7 @@ rest of the API, so is not documented in detail here.
 For example, to retrieve a list of policies for a given token, issue a ``GET``
 For example, to retrieve a list of policies for a given token, issue a ``GET``
 request as follows::
 request as follows::
 
 
-    curl -X GET https://desec.io/api/v1/auth/tokens/{id}/policies/domains/ \
+    curl -X GET https://desec.io/api/v1/auth/tokens/{id}/policies/domain/ \
         --header "Authorization: Token mu4W4MHuSc0Hy-GD1h_dnKuZBond"
         --header "Authorization: Token mu4W4MHuSc0Hy-GD1h_dnKuZBond"
 
 
 The server will respond with a list of token domain policy objects.
 The server will respond with a list of token domain policy objects.
@@ -374,11 +374,11 @@ dynDNS updates for a specific domain::
 You can retrieve (``GET``), update (``PATCH``, ``PUT``), and remove
 You can retrieve (``GET``), update (``PATCH``, ``PUT``), and remove
 (``DELETE``) policies by appending their ``domain`` to the endpoint::
 (``DELETE``) policies by appending their ``domain`` to the endpoint::
 
 
-    curl -X DELETE https://desec.io/api/v1/auth/tokens/{id}/policies/domains/{domain}/ \
+    curl -X DELETE https://desec.io/api/v1/auth/tokens/{id}/policies/domain/{domain}/ \
         --header "Authorization: Token mu4W4MHuSc0Hy-GD1h_dnKuZBond"
         --header "Authorization: Token mu4W4MHuSc0Hy-GD1h_dnKuZBond"
 
 
 The default policy can be accessed using the special domain name ``default``
 The default policy can be accessed using the special domain name ``default``
-(``/api/v1/auth/tokens/{id}/policies/domains/default/``).
+(``/api/v1/auth/tokens/{id}/policies/domain/default/``).
 
 
 When modifying or deleting policies, the API enforces the default policy's
 When modifying or deleting policies, the API enforces the default policy's
 primacy:
 primacy: