@@ -0,0 +1,25 @@
+**/.classpath
+**/.dockerignore
+**/.env
+**/.git
+**/.gitignore
+**/.project
+**/.settings
+**/.toolstarget
+**/.vs
+**/.vscode
+**/*.*proj.user
+**/*.dbmdl
+**/*.jfm
+**/bin
+**/charts
+**/docker-compose*
+**/compose*
+**/Dockerfile*
+**/node_modules
+**/npm-debug.log
+**/obj
+**/secrets.dev.yaml
+**/values.dev.yaml
+LICENSE
+README.md
@@ -0,0 +1,9 @@
+FROM node:21-alpine
+WORKDIR /app
+VOLUME [ "/app" ]
+# ENV key=value
+RUN npm i postman-to-openapi -g
+# COPY source dest
+# EXPOSE port
+CMD [ "node", "run.ts" ]
+ENTRYPOINT [ "postman-to-openapi" ]
@@ -1,3 +1,26 @@
# postman-to-openapi
-postman-to-openapi
+postman format to openapi format.
+
+## Usage
+postman to openapi:
+```
+docker compose up -d
+openapi to postman:
+login postman website, then import the openapi file.
+## Reference
+https://editor-next.swagger.io/
+https://editor.swagger.io/
+https://file.yoqi.me/openapi-gui/
+## License
@@ -0,0 +1,19 @@
+version: '3.4'
+services:
+ postmantoopenapi:
+ container_name: postmantoopenapi
+ image: jianboy/postmantoopenapi:latest
+ build:
+ context: .
+ dockerfile: ./Dockerfile
+ environment: # - name=value
+ ports:
+ - 3000:3000
+ command:
+ [
+ "npm",
+ "run",
+ "start"
+ ]
+ working_dir: /app
@@ -0,0 +1,11 @@
+{
+ "name": "postman-to-openapi",
+ "version": "1.0.0",
+ "description": "postman format to openapi format.",
+ "main": "index.js",
+ "scripts": {
+ "start": "node run.ts",
+ },
+ "author": "",
+ "license": "ISC"
+}
@@ -0,0 +1,3 @@
+// 1. find *.json and run:
+// run p2o ./shop.postman_collection.json -f ./shop.yaml