Setting Up Swagger UI for a Production Environment

Similar documents
Setting Up Swagger UI on WebSphere

IBM. Cúram JMX Report Generator Guide

IBM Software. Maximo Asset Management Version 7 Releases. Enabling Enterprise Mode for Internet Explorer. Maximo Report Designer/Architect.

IBM Endpoint Manager for OS Deployment Linux OS provisioning using a Server Automation Plan

Version 9 Release 0. IBM i2 Analyst's Notebook Premium Configuration IBM

IBM Tivoli Composite Application Manager Solution: Using ITCAM to Monitor In-House website Solutions

Version 9 Release 0. IBM i2 Analyst's Notebook Configuration IBM

Generating SPMP Analytics from the command line

Build integration overview: Rational Team Concert and IBM UrbanCode Deploy

IBM Security QRadar Version Customizing the Right-Click Menu Technical Note

Access to CER Determination Results

Configuring Netcool/Impact Event Correlation to resolve a Netcool/OMNIbus Events Flood

Best practices. Starting and stopping IBM Platform Symphony Developer Edition on a two-host Microsoft Windows cluster. IBM Platform Symphony

IBM Control Desk 7.5.3

White Paper: Configuring SSL Communication between IBM HTTP Server and the Tivoli Common Agent

Version 1.2 Tivoli Integrated Portal 2.2. Tivoli Integrated Portal Customization guide

IBM. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns. Version 2 Release 1 BA

Using application properties in IBM Cúram Social Program Management JUnit tests

Using Netcool/Impact and IBM Tivoli Monitoring to build a custom selfservice

Maximo 76 Cognos Dimensions

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns IBM BA

Migrating Classifications with Migration Manager

CONFIGURING SSO FOR FILENET P8 DOCUMENTS

IBM Maximo Calibration Version 7 Release 5. Installation Guide

Tivoli Access Manager for Enterprise Single Sign-On

Platform LSF Version 9 Release 1.1. Migrating on Windows SC

IBM License Metric Tool Enablement Guide

IBM emessage Version 8.x and higher. Account Startup Overview

Version 4 Release 1. IBM i2 Enterprise Insight Analysis Data Model White Paper IBM

Platform LSF Version 9 Release 1.3. Migrating on Windows SC

Best practices. Reducing concurrent SIM connection requests to SSM for Windows IBM Platform Symphony

Installing Watson Content Analytics 3.5 Fix Pack 1 on WebSphere Application Server Network Deployment 8.5.5

Networking Bootstrap Protocol

Using Client Security with Policy Director

IBM Spectrum LSF Process Manager Version 10 Release 1. Release Notes IBM GI

IBM WebSphere Sample Adapter for Enterprise Information System Simulator Deployment and Testing on WPS 7.0. Quick Start Scenarios

IBM UrbanCode Cloud Services Security Version 3.0 Revised 12/16/2016. IBM UrbanCode Cloud Services Security

Integrated use of IBM WebSphere Adapter for Siebel and SAP with WPS Relationship Service. Quick Start Scenarios

IBM i2 ibridge 8 for Oracle

IBM Security QRadar Version Forwarding Logs Using Tail2Syslog Technical Note

IBM XIV Provider for Microsoft Windows Volume Shadow Copy Service. Version 2.3.x. Installation Guide. Publication: GC (August 2011)

Best practices. Linux system tuning for heavilyloaded. IBM Platform Symphony

IBM Financial Transactions Repository Version IBM Financial Transactions Repository Guide IBM

ServeRAID-MR10i SAS/SATA Controller IBM System x at-a-glance guide

IBM Cognos Dynamic Query Analyzer Version Installation and Configuration Guide IBM

IBM Storage Driver for OpenStack Version Installation Guide SC

Development tools System i5 Debugger

IBM Kenexa LCMS Premier on Cloud. Release Notes. Version 9.3

Integrating IBM Rational Build Forge with IBM Rational ClearCase and IBM Rational ClearQuest

Contents. Configuring AD SSO for Platform Symphony API Page 2 of 8

IBM. IBM i2 Analyze Security White Paper. Version 4 Release 1

Version 1 Release 1 November IBM Social Marketing Solution Pack User's Guide IBM

IBM Cloud Object Storage System Version Time Synchronization Configuration Guide IBM DSNCFG_ K

IBM OpenPages GRC Platform - Version Interim Fix 1. Interim Fix ReadMe

Rational Focal Point Technical Overview 2(15)

Operating System Installation Guide for Models 3xx, 5xx, 7xx, and 9xx

Implementing IBM Easy Tier with IBM Real-time Compression IBM Redbooks Solution Guide

IBM OpenPages GRC Platform Version 7.0 FP2. Enhancements

IBM Content Analytics with Enterprise Search Version 3.0. Expanding queries and influencing how documents are ranked in the results

IBM Storage Management Pack for Microsoft System Center Operations Manager (SCOM) Version Release Notes

Determining dependencies in Cúram data

IBM. IBM i2 Analyze Windows Upgrade Guide. Version 4 Release 1 SC

IBM Storage Driver for OpenStack Version Release Notes

IBM Rational Development and Test Environment for System z Version Release Letter GI

IBM Worklight V5.0.6 Getting Started

IBM Storage Driver for OpenStack Version Installation Guide SC

IBM Operations Analytics - Log Analysis: Network Manager Insight Pack Version 1 Release 4.1 GI IBM

IBM FlashSystem V MTM 9846-AC3, 9848-AC3, 9846-AE2, 9848-AE2, F, F. Quick Start Guide IBM GI

Version 2 Release 2. IBM i2 Enterprise Insight Analysis Installing the components IBM SC

IBM. IBM i2 Analyze: Backing Up A Deployment. Version 4 Release 1

Tivoli Endpoint Manager for Patch Management - AIX. User s Guide

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Maintaining a deployment IBM

IBM Maximo for Service Providers Version 7 Release 6. Installation Guide

IBM License Metric Tool Version Readme File for: IBM License Metric Tool, Fix Pack TIV-LMT-FP0001

IBM BladeCenter Chassis Management Pack for Microsoft System Center Operations Manager 2007 Release Notes

Getting Started with InfoSphere Streams Quick Start Edition (VMware)

Integrated Management Module (IMM) Support on IBM System x and BladeCenter Servers

IBM. Networking INETD. IBM i. Version 7.2

IBM SmartCloud for Social Business. Sametime Chat and Meetings mobile User's Guide

Netcool/Impact Version Release Notes GI

IBM OpenPages GRC Platform Version Interim Fix 5. Interim Fix ReadMe

IBM i2 Analyst s Notebook Quick Start Guide

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

IBM Maximo for Aviation MRO Version 7 Release 6. Installation Guide IBM

Lotus Forms Designer 3. What s New

IBM Storage Device Driver for VMware VAAI. Installation Guide. Version 1.1.0

IBM Storage Management Pack for Microsoft System Center Operations Manager (SCOM) Version Release Notes IBM

Tivoli Access Manager for Enterprise Single Sign-On

IBM i2 Analyze ibase Connector Deployment Guide. Version 4 Release 1 IBM

Printing Systems Division. Infoprint Manager for AIX NLV Release Notes

IBM Maximo Asset Management Report Update Utility Version x releases

IBM Maximo Spatial Asset Management Version 7 Release 5. Installation Guide

Job Aid: LDAP or VMM Synch

IBM z/os Management Facility V2R1 Solution Guide IBM Redbooks Solution Guide

IBM ThinkPad 770 Setup Guide

System i. Networking RouteD. Version 5 Release 4

IBM FlashSystem V Quick Start Guide IBM GI

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Java SE

IBM Netcool/OMNIbus 8.1 Web GUI Event List: sending NodeClickedOn data using Netcool/Impact. Licensed Materials Property of IBM

Migrating on UNIX and Linux

Transcription:

IBM Cúram Social Program Management Setting Up Swagger UI for a Production Environment Document version 1.0 Jenny Cooper, Software Engineer, IBM Cúram Platform Group. jcooper3@ie.ibm.com

Copyright International Business Machines Corporation 2015. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Setting Up Swagger UI for a Production Environment CONTENTS List of Figures... iv Revision History... v 1 Setting Up Swagger UI for a Production Environment... 1 1.1 Introduction... 1 1.2 Pre-requisites... 1 1.3 Downloading and Configuring Swagger UI... 1 1.4 Installing Swagger UI on a WebSphere Server... 2 1.5 Using Swagger UI... 2 References... 4 iii

LIST OF FIGURES Figure 1 Expanding a tag name, in this case the Person tag name, shows a list of resources. 3 Figure 2 Expanding a resource gives detailed information about that resource... 3 iv

Setting Up Swagger UI for a Production Environment REVISION HISTORY Date Version Revised By Comments 30 June 2015 1.0 [initials] [comments] v

Setting Up Swagger UI for a Production Environment 1 Setting Up Swagger UI for a Production Environment 1.1 Introduction This article details the steps required to install and configure the Swagger UI tool, which allows app developers to view and test out a Cúram REST API in a production environment. This article is intended for developers of Cúram REST APIs who want to install the Swagger UI tool in order to fully document their APIs and allow other developers to discover and test those APIs. 1.2 Pre-requisites A Cúram application (version 6.1 or later), which includes a REST application, must be already running on a WebSphere server. Ensure the Swagger specification for the API, which is automatically generated by the Rest application, is accessible through a URL. This article assumes that v1 of the API is being used. The Swagger specification should be available at https://<hostname>:<port>/rest/api/definitions/v1 1.3 Downloading and Configuring Swagger UI Download the Swagger UI tool from the swagger-api GitHub repository at https://github.com/swagger-api/swagger-ui. Note: Ensure that the Swagger UI version downloaded is compatible with Swagger Spec 2.0, as this is the Swagger spec version that is generated by the Rest application. Extract the downloaded swagger.zip file. Copy the dist folder that is inside the swagger.zip file to a new location. This is the only folder that is required It contains pre-built files that are ready to use out of the box. Rename the 'dist' folder to swagger. In the swagger folder, open the index.html file with a text editor. Modify the following line, which specifies the default value for the url property, from: url = http://petstore.swagger.io/v2/swagger.json; to url = https://<hostname>:<port>/rest/api/definitions/v1; Note: If this step is not performed, when the Swagger UI tool starts up, it will display the API resources for the Swagger pet store sample application. Open a command prompt and change directory to be inside the swagger folder. Run the following command: jar cvf swagger.war * 1

Setting Up Swagger UI for a Production Environment This packages the Swagger UI tool into a swagger.war file, in the swagger folder. 1.4 Installing Swagger UI on a WebSphere Server Open the WebSphere Admin Console. Click on Applications -> New Application in the left side menu. Click on New Enterprise Application. When asked for the path to the new application, browse to select the swagger.war file that was created in the swagger folder. Choose the default settings for the next screens, until the Map virtual hosts for Web modules screen is displayed. In the Map virtual hosts for Web modules screen, change the Virtual host value from default_host to client_host in the dropdown box. Note: The use of client_host assumes you are using the default Cúram configuration. Select the appropriate virtual host if this is not the case. On the Map context roots for Web Modules screen, enter /swagger for the value for Context Root. Choose the default settings for the rest of the installation. When the application has been successfully installed, ensure you save the updates. Go to Applications -> Application Types > WebSphere Enterprise Applications in the left side menu. Select the checkbox beside the Swagger application, and click the start button. Open a browser and access the Swagger UI tool at https://<hostname>:<port>/rest/swagger/index.html 1.5 Using Swagger UI All resources for the API are now viewable in the Swagger UI tool. They are grouped together based on the tags that they have been configured with. Click on any tag name to expand the list of resources that have this tag. 2

Setting Up Swagger UI for a Production Environment Figure 1 Expanding a tag name, in this case the Person tag name, shows a list of resources. Click on any resource, e.g. /v1/persons, to show all details about the resource and its parameters. There will also be an option to try out this resource. Figure 2 Expanding a resource gives detailed information about that resource Click the Try It Out button. Details about the request and the response will be displayed. 3

REFERENCES Swagger.io, (2015). Swagger UI Swagger. [online] Available at: http://swagger.io/swagger-ui/ [Accessed 2 Jul. 2015]. 4

Setting Up Swagger UI for a Production Environment Copyright IBM Corporation 2015 IBM United States of America Produced in the United States of America US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-ibm product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U.S.A. The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PAPER AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes may be made periodically to the information herein; these changes may be incorporated in subsequent versions of the paper. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this paper at any time without notice. Any references in this document to non-ibm Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation 4205 South Miami Boulevard Research Triangle Park, NC 27709 U.S.A. All statements regarding IBM's future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only. This information is for planning purposes only. The information herein is subject to change before the products described become available. If you are viewing this information softcopy, the photographs and color illustrations may not appear. 5

Trademarks IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with a trademark symbol ( or ), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the web at "Copyright and trademark information" at http://www.ibm.com/legal/copytrade.shtml. Other company, product, or service names may be trademarks or service marks of others. 6