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.
--
-
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.
Developers, QA engineers, Presales, etc. working with Teamcenter REST APIs
-
Java 17 or later (e.g., Azul Zulu, OpenJDK, or Oracle JDK)
- Verify installation:
java -version - Set
JAVA_HOMEenvironment variable to your JDK installation directory
- Verify installation:
-
Maven 3.6 or later (required to build from source)
- Download from https://maven.apache.org/download.cgi or use a package manager (e.g.,
choco install mavenon Windows with Chocolatey) - Verify installation:
mvn -version
- Download from https://maven.apache.org/download.cgi or use a package manager (e.g.,
If you're building from source, follow these steps:
- Clone or download this repository
- Navigate to the project directory
- Run the build:
mvn clean package
- The compiled jar will be in the
target/directory (namedTCApi2Postman-1.0.0.jar)
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=trueUse 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.configOptions:
--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!