Skip to content

Commit 1300a9b

Browse files
committed
add dynamic examples
1 parent 43862aa commit 1300a9b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+124
-47386
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.DS_Store
33

44
# Default TypeSpec output
5+
tsp-output/
56
dist/
67

78
# Dependency directories

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ tsp-output/
66
dist/
77

88
# Dependency directories
9-
node_modules/
9+
node_modules/

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ COPY package.json package-lock.json* ./
99
RUN npm ci && npm cache clean --force
1010

1111
COPY . .
12+
1213
RUN make compile
1314

1415
EXPOSE 8080

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ dev:
1616
docker run -e PORT=$(PORT) -v ./custom-server:/custom-server -p $(PORT):$(PORT) --name rest-api-example $(IMAGE_ID)
1717

1818
start:
19-
prism mock -m -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml &
20-
prism mock -m -p 4012 --host 0.0.0.0 ./tsp-output/http-protocol/@typespec/openapi3/openapi.1.0.yaml &
21-
prism mock -m -p 4013 --host 0.0.0.0 ./tsp-output/js-playwright/@typespec/openapi3/openapi.1.0.yaml &
22-
prism mock -m -p 4014 --host 0.0.0.0 ./tsp-output/postman/@typespec/openapi3/openapi.1.0.yaml &
19+
prism mock -m -d --json-schema-faker-fillProperties=false -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml &
20+
prism mock -m -d --json-schema-faker-fillProperties=false -p 4012 --host 0.0.0.0 ./tsp-output/http-protocol/@typespec/openapi3/openapi.1.0.yaml &
21+
prism mock -m -d --json-schema-faker-fillProperties=false -p 4013 --host 0.0.0.0 ./tsp-output/js-playwright/@typespec/openapi3/openapi.1.0.yaml &
22+
prism mock -m -d --json-schema-faker-fillProperties=false -p 4014 --host 0.0.0.0 ./tsp-output/postman/@typespec/openapi3/openapi.1.0.yaml &
2323
npm start &
2424
caddy run
2525

custom-server/assets/docs/http-api/.swagger-codegen-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

custom-server/assets/docs/http-api/.swagger-codegen/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

custom-server/assets/docs/http-api/index.html

Lines changed: 0 additions & 12975 deletions
This file was deleted.

custom-server/assets/docs/http-protocol/.swagger-codegen-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

custom-server/assets/docs/http-protocol/.swagger-codegen/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

custom-server/assets/docs/http-protocol/index.html

Lines changed: 0 additions & 12550 deletions
This file was deleted.

0 commit comments

Comments
 (0)