Postman Plugin not working

I am trying to add a postman plugin inside my application I followed the docs and added the following part inside my Configure.AppHost.cs file

Plugins.Add(new PostmanFeature());
Plugins.Add(new CorsFeature());

It is giving me a plugin link on my metadata page as follows

image

But when I navigate to /postman route it is giving me

No webpage was found for the web address: https://localhost:44312/postman

Am I missing any configuration necessary for that plugin to work?

Are you using ServiceStack Routing?

Yes. Its a simple template downloaded from the official site. I haven’t changed any routes related settings.

The default templates use Endpoint Routing. You’d need to click on ServiceStack Auth for projects using ServiceStack Routing.

Okay then for endpoint routing what do I need to do?

It’s not supported yet, looking into now to see what it would require to support it.

This should now be supported from v8.5.3+ which is now available in the pre release packages.

Note: when using Endpoint Routing all Plugins should be registered in ConfigureServices() with services.AddPlugin(), e.g:

//...
.ConfigureServices((context, services) => {
      services.AddPlugin(new PostmanFeature());
})

Okay thanks it worked with the pre release packages.

1 Like