Skip to content

TCApi2Postman is application that converts auto-generated REST API documentation from Teamcenter into a fully-loaded Postman collection.

License

Notifications You must be signed in to change notification settings

Krusty84/TCApi2Postman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCApi2Postman

What is this?

TCApi2Postman is application that converts auto-generated REST API documentation from Teamcenter into a fully-loaded Postman collection. It doesn’t just spit out a bunch of requests—it packs each method with detailed documentation, ready to roll in Postman.

--

Features

  • Transforms Teamcenter REST API documentation (structure.js) into a Postman collection.

  • Auto-populates each request with rich, detailed documentation for every API method.

  • Supports optional inclusion of internal APIs with the --include-internal flag.

  • Allows customization via a config file with the --config option.

  • Outputs a clean, ready-to-import .json file for Postman.

Who is it for?

Developers, QA engineers, Presales, etc. working with Teamcenter REST APIs

Instructions

Prerequisites

  • Java 17 or later (e.g., Azul Zulu, OpenJDK, or Oracle JDK)

    • Verify installation: java -version
    • Set JAVA_HOME environment variable to your JDK installation directory
  • Maven 3.6 or later (required to build from source)

Build TCApi2Postman from Source

If you're building from source, follow these steps:

  1. Clone or download this repository
  2. Navigate to the project directory
  3. Run the build:
    mvn clean package
  4. The compiled jar will be in the target/ directory (named TCApi2Postman-1.0.0.jar)

Get Your Input Data

You'll need the structure.js file from your Teamcenter setup (AWC layer). Generate or regenerate it using:

  • cd ...\aws2\stage
  • initenv
  • npm run genSoaApi
  • cd ...\aws2\stage\out\soa\api

Note: You must regenerate structure.js after updating Teamcenter Core or AWC to ensure the API documentation is up-to-date with the latest changes.

Note: To include unpublished (Internal) API, before building structure.js, you MUST modify aws2\stage\initenv.cmd by adding a new line with the environment variable SOAGENAPI_INCLUDE_UNPUBLISHED set to true:

SET SOAGENAPI_INCLUDE_UNPUBLISHED=true

Run TCApi2Postman

Use the command below to convert your API docs to a Postman collection:

java -jar TCApi2Postman-1.0.0.jar <structure.js> <out.postman_collection.json> [--include-internal] [--config <TCApi2Postman.config>]

Example:

java -jar TCApi2Postman-1.0.0.jar C:\Siemens\Teamcenter\13\aws2\stage\out\soa\api\structure.js D:\Temp\TcApi_collection.json --config TCApi2Postman.config

Options: --include-internal: Include internal APIs in the output (optional, for the brave).
--config : Point to a custom config file for extra control.

Import to Postman: Load the generated .json file into Postman, and you’re good to go!

image image image

About

TCApi2Postman is application that converts auto-generated REST API documentation from Teamcenter into a fully-loaded Postman collection.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages