APIs automation in Apigee using OpenAPI spec - openapi

I have created an apigee API proxy using swagger file, then I modified my swagger file (I added a new endpoint) but this new endpoint doesn't display until in apigee UI until I add it manually (In conditional flows), Is there a rest API provider by Apigee or something allows us to update the endpoints in Apigee dynamically by the edit of the swagger file? and thank you

I am not sure which Apigee version you are on but the Specs menu on Apigee Edge should allow you to do this. However, this is not available on Apigee-X.
For the management API you would have to create your own script that modifies the endpoints on update.

Related

where is the swagger spec file kept?

So I am building a Rest API and have used a swagger YAML file to define the API.
I use the swagger editor to view the spec but how do I host / make it available for everyone in our company to browse ?
Does the swagger get bundled with the actual deployed code and then it is accessible ?
You will need to host it somewhere. Either simply as a downloadable file, or embedded in an application such as Swagger UI.

WSO2 API Manager methods are not loaded from WSDL

I'm trying to proxy an SOAP EPR using API Manager.
I follow the procedure of creation of REST API "I have a SOAP End Point" and I provide the WSDL. but in the "design" tab i can't see the methods. Seems like API Manager "does not understand" the WSDL I provided.
I can browse The same WSDL and I used SOAPUI client, the WSDL is correct and I can see the methods and test them.
Does anyone exerienced this kind of issues with API Manager?
Best regards.
Before APIM 2.2.0 you will see only a single resource.
Enhanced support for exposing SOAP services as REST APIs by auto-generating the REST interface by parsing the WSDL of the SOAP Service was introduced in APIM 2.2.0.

Customizing the Hyperledger Composer Rest Server

I have a test Hyperledger Fabric running in the IBM Cloud, with the IBM Blockchain Application Service. I also have a kubernetes cluster running the Hyperledger Composer REST Server. Everything works great, but how do I extend the REST api with some custom api's?
The documentation mentions being able to use the swagger definition (yaml file) with the IBM API Connect or Strongloop product...but how do I do that, as I don't see any way to export the swagger definition?
I don't have a tutorial, but as I see it you would have to do three tasks minimally:
write your REST APIs (to do what you want to do) - perhaps these
resources on REST APIs will help ? -> Loopback ->
https://developer.ibm.com/code/patterns/create-rest-apis-using-loopback/
and in architectural in general
->https://www.ibm.com/developerworks/library/ws-restful/ and
build the routes for your custom APIs
customise your swagger
definitions to document your REST APIs - this may help you ->
https://www.ibm.com/developerworks/library/wa-use-swagger-to-document-and-define-restful-apis/index.html
and Swagger itself -> http://swagger.io/
If you write custom api and call it as 3rd party api which is mentioned in IBM already it will help you to response but it has very limted scope. I belive you should use swagger to understand its end point are properly configured

Can i use my hosted WEB API (created in ASP.NET) in Mulesoft API manger?

I am trying to learn mulesoft AnyPoint Platform, and trying to host an API using API Manager.
I already have an API created in asp.net, can i use it in API manager, or i need to create new API.
Please help
Yes its possible if you are using Cloud based API Manager where below are the steps -
Click on the "Add New API" button.
Enter the API name of Mythical
Mobile Experience API (Replace Mythical with your preferred company
name)
Enter Version name of 1.0 Leave the the API Endpoint blank for
now.
Enter a description.
You should see the API administration page for your newly created API. From this page, you can Define API in API designer using RAML, publish an API portal, and Configure endpoint for the API.
Note, If you are using on-prem API Gateway then you need to develop a proxy Mule application which then need to be deployed using auto discovery component so that it will register under api manager then You should see the API administration page for your newly created API. From this page, you can Define API in API designer using RAML, publish an API portal, and Configure endpoint for the API.
Yes you can use the API Manager for hosting the API.
Yes you can use the API created.

Azure Service Fabric and API Management Integration

I have provisioned a service fabric cluster on azure. It has two node types: one for the frontend and the other one for the backend.
I have deployed a Stateless self-hosted API on the frontend node-type. Now what i'd like to do is to expose that service through the Azure API Management. I've been trying to import the API without success. I have also tried to use swagger to generate the service specification but it seems that swagger does not work. I can access the swagger URL but it loads a blank page.
Any suggestions on how I can integrate my stateless service with APIM or how swagger works here?
Thanks a lot.
there are a few different ways you can produce your swagger document. If you are using Web API, you can use SwashBuckle to generate your Swagger for you. To validate your swagger file, you can use Swagger Editor. Finally, if you still have problems once you have validated your swagger document, share the document and the error here and we will see what we can do to assist.
Many thanks