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
+90-5Lines changed: 90 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ This plugin is designed to integrate Postman functionality into your Backstage a
32
32
33
33
# Disclaimer and Plugin Compatibility
34
34
These backstage plugins are not officially supported by Postman and are intended for Backstage users to integrate Postman into their API documentation easily.
35
-
They have been successfully tested with Backstage v1.22and 1.23. Please file an issue if you are using a newer version of Backstage so that we can recommend how to integrate best under those circumstances.
35
+
They have been successfully tested with Backstage v1.22, v1.23 and 1.28. Please file an issue if you are using a newer version of Backstage so that we can recommend how to integrate best under those circumstances.
36
36
37
37
# Plugin Features
38
38
@@ -206,7 +206,92 @@ This guide provides instructions for configuring your application to interact wi
206
206
207
207
If you prefer not to utilise caching and always get the latest information from Postman, you can set the TTL value to 0 or any value smaller than the interval at which the entity service refreshes.
208
208
209
-
### Add the backend plugin to your Backstage application
209
+
### Add the backend plugin to your Backstage application (newer Backstage versions >= v1.24)
210
+
211
+
1. Modify file `packages/backend/src/index.ts`, and add the following to it:
212
+
213
+
```ts
214
+
...
215
+
216
+
import { createBackend } from '@backstage/backend-defaults';
217
+
218
+
// new code after other imports
219
+
import { loggerToWinstonLogger, CacheManager } from '@backstage/backend-common';
220
+
import {
221
+
coreServices,
222
+
createBackendPlugin,
223
+
createBackendModule,
224
+
} from '@backstage/backend-plugin-api';
225
+
import { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';
226
+
import { PostmanEntityProvider, createRouter as postmanRouter } from '@postman-solutions/postman-backstage-backend-plugin';
Additionally, you would need to insert the following lines into your `packages/backend/src/plugins/catalog.ts` file:
341
+
Additionally, if you are using an older version of Backstage ( < 1.24) you would need to insert the following lines into your `packages/backend/src/plugins/catalog.ts` file:
257
342
258
343
``` ts
259
344
...
@@ -289,6 +374,8 @@ import { CacheManager } from '@backstage/backend-common';
289
374
...
290
375
```
291
376
377
+
For newer versions of Backstage (v1.24+), we included the entity service initialization code in our modifications for `packages/backend/src/index.ts`.
0 commit comments