1
votes

I am new to WSO2 api manager.I want to configure the existing api in api publisher. I have few question.

1)After choosing "I have existing Api" radio button, two option populates

a)swagger file b)swagger url.

For first option, from where swagger file will generate? and how to generate?

For second option, which url api publisher expecting?

2)After choosing the swagger url radio button. on next page import option is present which also shows same option as above.Whats use of this option and which one to choose.

I tried with the swagger url in both condition and click on save button then it shows below error message.

{"error" : true, "message" : "Invalid CSRF Token please try refreshing the page."}

Can someone please help me to resolve this issue also please share some link or documentation for configuration of existing api?

1

1 Answers

1
votes

In APIM, when you select "I have existing API", that means you already have a swagger document for the API. If that's not what you want (i.e. you don't have a swagger doc), you can proceed with Create New API option.

Edit: What do you mean by an existing API here? Are you just having a service which needs to be exposed as a manage service? If yes, Create New API is the way to proceed.