swagger-typescript

An auto typescript/javascript code generator from swagger.

MIT License

Downloads
6.3K
Stars
78
Committers
11
swagger-typescript - Support Postman Latest Release

Published by hosseinmd about 2 years ago

Generate code from postman collection
Full Changelog: https://github.com/hosseinmd/swagger-typescript/compare/v6.2.2...v6.3.0

swagger-typescript - Generate react hooks for apis

Published by hosseinmd about 3 years ago

I excited to tell we know generating hooks for APIs for example:
A get endpoint
/user/info
will be useGetUserInfo you can use it like this

const {data,isLoading,error} = useGetUserInfo()
swagger-typescript - Generate mock data

Published by hosseinmd over 3 years ago

  • Generate mock data
  • Add few items to description of service and types
swagger-typescript - Handle FromData types

Published by hosseinmd over 3 years ago

swagger-typescript - swagger v2 supported

Published by hosseinmd over 3 years ago

swagger-typescript - Security

Published by hosseinmd about 4 years ago

Security is exported from swagger.json and you can access that on all requests, you can use that to specify authentication.

https://github.com/hosseinmd/swagger-typescript/commit/474bda15a87336d8ca977da2ed1baa818cb41bd5

swagger-typescript - Axios Interceptor

Published by hosseinmd about 4 years ago

In this release we changed config.ts to use Axios interceptor for customization.
If you are using v3 or below, read how to migrate to v4.

Thanks @tbowmo

swagger-typescript - Support javascript

Published by hosseinmd about 4 years ago

For format to JavaScript you should edit the language in swagger.config.json

{
...
"language": "javascript"
}
Package Rankings
Top 4.77% on Npmjs.org
Badges
Extracted from project README
install size
Related Projects