[progress Communities] [progress Openedge Abl] File: Sample Program To Generate An Openapi...

  • Thread starter Thread starter egarcia
  • Start date Start date
Status
Not open for further replies.
E

egarcia

Guest
The OpenAPI Specification describes RESTful Web Services. The specification can be used to generate client and server programs as well as documenting the services. The Data Service Catalog describes the prescriptive REST API in OpenEdge Data Services. This REST API is used by JSDO-based clients to access the OpenEdge backend. This sample program takes a catalog JSON file as input and generates an OpenAPI Specification file that can be used with related tools such as the Swagger Editor. Note: Use Progress Developer Studio for OpenEdge to create an OpenEdge Data Service with a catalog file. See the following document for information on how to create one: https://community.progress.com/community_groups/openedge_kendo_ui_builder/m/documents/3363 Requirements Recent version of Node.js and NPM Installation unzip genoas.zip cd genoas npm install Usage genoas [file | url] genoas [file | url] [--host host] [--title title] [--desc description] [--version version] Example Run genoas command for a catalog.json file: genoas http://oemobiledemo.progress.com/OEMobileDemoServices/static/CustomerService.json genoas http://oemobiledemo.progress.com/OEMobileDemoServices/static/SportsService.json This step generates the specification into a file with extension .yaml. Access http://editor3.swagger.io and import the generated oas.yaml file. Review and the API and try invoking an operation, for example, a GET operation. Swagger Editor showing generated spec Related links OpenAPI Specification and Swagger: https://en.wikipedia.org/wiki/OpenAPI_Specification https://swagger.io/specification/ https://swagger.io OpenEdge Data Service: https://community.progress.com/community_groups/openedge_kendo_ui_builder/m/documents/3363 https://github.com/CloudDataObject/CDO/blob/master/CloudDataObject_Catalog.pdf https://github.com/CloudDataObject/CDO

Continue reading...
 
Status
Not open for further replies.
Back
Top