Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Generate Open API Spec from Apigee trace file

License

NotificationsYou must be signed in to change notification settings

msadasivam/trace2spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Open API Spec from Apigee trace files.

This script helps reverse engineer API calls traced onApigee to create anOpen API Spec. OAS is now a widely accepted mechanism to capture RESTful web APIs design and serve as a starting point to create API proxies, API documentation, stubs, testcases, etc.

Several systems exist today without a well defined spec. Creating a passthrough layer in Apigee allows one to capture traffic andexport as trace files. These trace files can then be fed to this tool to create OAS. The generated specs are only a best effort attempt, they require some cleanup to update business context in description. Further work may be needed to clean and consolidate schema reused in multiple resources.

The tool supports the following features:

  • Hosts
  • REST resource paths
  • Query parameters
  • Headers
  • Request payload JSON schema
  • Success and error response codes
  • Response payload JSON schema
  • Multiple trace file support

More features being considered are as follows:

  • Resource path params
  • Security schemes
  • Non-JSON content types

Usage

    python3 trace2spec.py -f <apigee-trace-file.xml>         -f apigee trace file        -X verbose mode    Multiple trace files    --------------------    python3 trace2spec.py -f <apigee-trace-file.xml> -f <apigee-trace-file-2.xml> ...

Apigee offline trace

Learn here to extract offline trace from Apigeehttps://docs.apigee.com/api-platform/debug/using-offline-trace-tool

Trace Download

Support

Please raise an issue.

Contributing

Please send a pull request.

About

Generate Open API Spec from Apigee trace file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp