Skip to content

Commit

Permalink
add dynamic examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Nov 2, 2024
1 parent 43862aa commit 1300a9b
Show file tree
Hide file tree
Showing 53 changed files with 124 additions and 47,386 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.DS_Store

# Default TypeSpec output
tsp-output/
dist/

# Dependency directories
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ tsp-output/
dist/

# Dependency directories
node_modules/
node_modules/
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ COPY package.json package-lock.json* ./
RUN npm ci && npm cache clean --force

COPY . .

RUN make compile

EXPOSE 8080
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ dev:
docker run -e PORT=$(PORT) -v ./custom-server:/custom-server -p $(PORT):$(PORT) --name rest-api-example $(IMAGE_ID)

start:
prism mock -m -p 4011 --host 0.0.0.0 ./tsp-output/http-api/@typespec/openapi3/openapi.1.0.yaml &
prism mock -m -p 4012 --host 0.0.0.0 ./tsp-output/http-protocol/@typespec/openapi3/openapi.1.0.yaml &
prism mock -m -p 4013 --host 0.0.0.0 ./tsp-output/js-playwright/@typespec/openapi3/openapi.1.0.yaml &
prism mock -m -p 4014 --host 0.0.0.0 ./tsp-output/postman/@typespec/openapi3/openapi.1.0.yaml &
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 &
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 &
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 &
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 &
npm start &
caddy run

Expand Down
23 changes: 0 additions & 23 deletions custom-server/assets/docs/http-api/.swagger-codegen-ignore

This file was deleted.

This file was deleted.

12,975 changes: 0 additions & 12,975 deletions custom-server/assets/docs/http-api/index.html

This file was deleted.

23 changes: 0 additions & 23 deletions custom-server/assets/docs/http-protocol/.swagger-codegen-ignore

This file was deleted.

This file was deleted.

12,550 changes: 0 additions & 12,550 deletions custom-server/assets/docs/http-protocol/index.html

This file was deleted.

23 changes: 0 additions & 23 deletions custom-server/assets/docs/js-playwright/.swagger-codegen-ignore

This file was deleted.

This file was deleted.

8,035 changes: 0 additions & 8,035 deletions custom-server/assets/docs/js-playwright/index.html

This file was deleted.

23 changes: 0 additions & 23 deletions custom-server/assets/docs/postman/.swagger-codegen-ignore

This file was deleted.

1 change: 0 additions & 1 deletion custom-server/assets/docs/postman/.swagger-codegen/VERSION

This file was deleted.

12,550 changes: 0 additions & 12,550 deletions custom-server/assets/docs/postman/index.html

This file was deleted.

8 changes: 0 additions & 8 deletions typespec/examples/auth.tsp

This file was deleted.

Loading

0 comments on commit 1300a9b

Please sign in to comment.