Previewing and Exporting an API
After defining and modeling your REST API, you can perform the following operations:
- Click Export in the upper right corner to export the API definition to a JSON file or a YAML file on the local filesystem or Github. See Exporting to Github for more information.
- Click Preview to view the API on the API Preview page.
Exporting to Github
API specifications can be exported to Github:
- Click Export to export the API definition to a JSON file or a YAML file on the local file system or Github.
- Select Github and click Next.
- Follow the steps in Importing API Specifications to sign in and authorize TIBCO Cloud™ Integration.
- All the GitHub repositories that you can access will be displayed in the Export to GitHub window.
The left side panel of the window is the list of all the repositories in which you have read or write permissions, which includes organization repositories. For example, the
CatChasing
repository of thePetChasers
organization is displayed there, which only happens when the access request you sent earlier has been approved by the owner of thePetChasers
organization.TIBCO Cloud Integration only supports exporting to the master branch of the repositories on GitHub.
- Select a GitHub repository, and enter a File Name and Commit message.
You can choose the repository from the left panel, navigate to the target folder, and export to API specifications from this folder.
- Click Export.
What to Do Next
- Test the API against a live endpoint with a Mock app. For more details, see Creating an API Mock App.
- Export and implement the API using TIBCO Business Studio™ for BusinessWorks™.