API management solutions ease business growth with its importance, nailing connectivity and so on. Security is as important to build any successful API program through API modeling & mocking with mashery. Follow the steps to know how this new feature helps modelling and mocking with the APIs.
Step 1: Use your credentials to login to https://cloud.tibco.com.
Step 2: Click the marked one to proceed to next.
Now, you will get below mentioned screen with all your APIs in it.
Step: 3 If you want to create your Organisation Group, just click the one as shown in the image.
Step: 4 Create a group and now select it. Now, you can create your first API using CLICK ON Create BUTTON
Now you will find a screen which is similar to this one.
Fill the details and click create. Now you can see the screen like this one
Step:5 Click on Add Resource and then fill the path and method. For example, I am taking of GET Method. Once set, Click SAVE.
You will get the screen as shown in the below image for Tibco Modeling
Note: You can also create query parameter by clicking on query param. Set the options and create it.
Step:6 Now your Request is set and you need to set the responses for the same request, so click on
response
A screen will appear as shown in the image after setting your response.
Step:7 To set the Mock Response, you need to click on 200 OK to set the response json Schema. So, click on Generate Schema from Sample Data.
Once clicked, you will notify a screen as shown in the image
Just Copy and Paste your Sample Json, Now Click on Generate Schema and then Click SAVE. Now Response is set.Now the Response is set.
Important note: We have just done Mock Request and Mock Response alone. Go Back to the Dashboard and now you can see all your API
Click on a three DOTS to create one Mock APP
Click Create now
Now the app is successfully created. It is important to test the end points. To test the end points, we need to follow the below steps.
Click on Endpoint, just VIEW and TEST it to know whether it works fine.
Now you see the Test Results of the mock app as shown below:
So, Go to Mock app and click on Publish to mashery
Click on next and add package to it. Now, it will be published to TIBCO Mashery.