|
16 | 16 | - [Step 5.3: Request an Access Token](#step-53-request-an-access-token) |
17 | 17 | - [For Windows (PowerShell)](#for-windows-powershell) |
18 | 18 | - [For Linux, macOS, or WSL (cURL)](#for-linux-macos-or-wsl-curl) |
| 19 | + - [Step 5.4: Creating a Sample Case Using Postman](#step-54-creating-a-sample-case-using-postman) |
19 | 20 | - [6. Stopping the Services](#6-stopping-the-services) |
20 | 21 | - [Service Endpoints and Tools](#service-endpoints-and-tools) |
21 | 22 | - [ZGW API Services](#zgw-api-services) |
@@ -243,6 +244,33 @@ You will receive a JSON response containing the `access_token`. You can now use |
243 | 244 | > |
244 | 245 | > You will need to request a new token for this change to take effect. |
245 | 246 |
|
| 247 | +#### Step 5.4: Creating a Sample Case Using Postman |
| 248 | + |
| 249 | +You can quickly test the Zaken API by creating a sample case ("zaak") using Postman and the provided [ZGW-APIs-postman-tests](https://github.com/OneGround/ZGW-APIs-postman-tests) project. |
| 250 | + |
| 251 | +**Steps:** |
| 252 | + |
| 253 | +1. **Import the Create Case project** |
| 254 | + |
| 255 | + - Open Postman. |
| 256 | + - Import the Create Case collection and environment files from the [ZGW-APIs-postman-tests](https://github.com/OneGround/ZGW-APIs-postman-tests) repository. |
| 257 | + |
| 258 | +2. **Obtain an Access Token** |
| 259 | + |
| 260 | + - Follow the instructions in the "Configure API Authentication" section above to get a valid access token. |
| 261 | + - Paste the token into the `jwt_token` variable in your Postman Create Case Environment. |
| 262 | + |
| 263 | +3. **Set Up Other Environment Variables** |
| 264 | + |
| 265 | + - Update the variables for your local setup if they deviate from standard set up, such as `zrc_url`. |
| 266 | + |
| 267 | +4. **Create a Sample Case** |
| 268 | + |
| 269 | + - In the imported collection `ZGW Create Case`, find the folder named `Casetype`. Click 'run' and 'Run ZGW Create Case'. The catalog will be created, a case and other types will be added. |
| 270 | + - Find the folder named `Case`. Click 'run' and 'Run ZGW Create Case'. The case with related entities (status, result, document) will be added. If you need more cases run it multiple times. |
| 271 | + |
| 272 | +> For more details and advanced scenarios, see the documentation in the Postman collection. |
| 273 | + |
246 | 274 | ### 6. Stopping the Services |
247 | 275 |
|
248 | 276 | To stop all running Docker containers, run the following command from the `docker-compose` directory: |
|
0 commit comments