Releases: hosseinmd/swagger-typescript
Releases · hosseinmd/swagger-typescript
Support Postman
Generate code from postman collection
Full Changelog: v6.2.2...v6.3.0
Support multi git branches (git flow)
Generate react hooks for apis
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()
Generate mock data
- Generate mock data
- Add few items to description of service and types
swagger v2 supported
v4.6.0 chore(release): 4.6.0
Handle FromData types
v4.5.0 chore(release): 4.5.0
Security
Axios Interceptor
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
Support javascript
For format to JavaScript you should edit the language in swagger.config.json
{
...
"language": "javascript"
}