Skip to content

Commit

Permalink
Auto-Generated Swagger Typescript API
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
  • Loading branch information
dvaldivia committed Mar 14, 2023
1 parent f368d99 commit deb69da
Show file tree
Hide file tree
Showing 20 changed files with 5,321 additions and 377 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ clean-swagger:
swagger-console:
@echo "Generating swagger server code from yaml"
@swagger generate server -A console --main-package=management --server-package=restapi --exclude-main -P models.Principal -f ./swagger.yml -r NOTICE
@echo "Generating typescript api"
@npx swagger-typescript-api -p ./swagger.yml -o ./portal-ui/src/api -n consoleApi.ts
@sed -i -e 's/encodeURIComponent/encodeURLString/g' ./portal-ui/src/api/consoleApi.ts


assets:
Expand Down
Loading

0 comments on commit deb69da

Please sign in to comment.