You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-13Lines changed: 24 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,39 +26,50 @@ Alternatively, you can import the files directly from this repository:
26
26
2. Select **Import**
27
27
3. Drag the files from `src/` to the application
28
28
29
-
## Authentication and Utilities
29
+
###Authentication
30
30
31
-
The collection-level pre-request script manages authentication and provides helper functions.
31
+
1.**Set your credentials**
32
+
- Define the following environment variables:
33
+
34
+
*`username` – your UDNS username
35
+
*`password` – your UDNS password
36
+
37
+
2.**Manually obtain your token (first time)**
38
+
- In Postman:
39
+
40
+
* Open the **Authorization** tab at the collection level
41
+
* Click **"Get New Access Token"**, then **"Use Token"**
42
+
43
+
3.**Token refresh**
44
+
- After the initial token is retrieved, Postman will automatically refresh it when needed—provided the refresh token remains valid.
45
+
46
+
## Utilities
47
+
48
+
The collection-level pre-request script provides helper functions.
32
49
33
50
Since `utils` is defined globally by not using a declaration keyword, it is accessible to request-level scripts. This allows for the definition of reusable functions for our requests. Utility functions can be invoked like so:
34
51
35
52
```javascript
36
53
utils.functionName()
37
54
```
38
55
39
-
### Username/Password
40
-
41
-
For the pre-request script to run, you must set `username` and `password` variables containing your UDNS credentials in an environment. UDNS uses OAuth2 to generate an access token. The access token and refresh token will also be stored in your environment along with a timestamp, so the script knows when to refresh.
42
-
43
56
## Resources
44
57
45
58
The collection is organized into folders, each representing a base resource (ex: `zones`) or a specific functionality (ex: `push notifications`).
46
59
47
60
-**Zones**: Contains the DNS configuration. Some resources are not available in the latest "version" of the API, hence why "snapshot/restore" use the "v1" endpoint.
48
61
62
+
-**Records**: APIs for adding/updating/deleting RRsets for a zone. These APIs use RRset DTO definitions and pre-request/post-request scripts for managing environment variables and POST body content.
63
+
49
64
-**Tasks**: Operations that produce background tasks will return a `202` status code and have an `x-task-id` header. This ID is stored under the `currentTask` variable in the environment.
50
65
51
66
-**Reports**: After you request a report, retrieve it from the `results` endpoint using the report ID. This ID is stored in the post-request script, similar to tasks.
52
67
53
-
-**Webhook**: A set of 3 requests related to UDNS's push notification feature.
54
-
55
-
-**Subaccounts**: APIs exclusive to accounts that contain child accounts. If you don't have access to this feature, they'll produce an error.
56
-
57
-
-**Records**: APIs for adding/updating/deleting RRsets for a zone. These APIs use RRset DTO definitions and pre-request/post-request scripts for managing environment variables and POST body content.
68
+
-**Webhook**: A set of 3 requests related to UDNS's push notification feature.\
58
69
59
-
## Bypassing Automated Authentication
70
+
-**DNSSEC Multi-Signer**
60
71
61
-
To manually provide your Bearer token, go to the "Authorization" tab of the collection and modify the value. This would be necessary, as an example, to use a token produced by the subaccount authorization endpoint. Remember to revert it to the `{{accessToken}}` variable after you're done.
0 commit comments