Separate frontend and backend #565
-
I have a setup where my frontend is separated from my backend (separate repositories). Since I cannot consume the router/contract from my frontend.. Is it safe to generate types from the Open API spec? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can follow this: #205 (comment) |
Beta Was this translation helpful? Give feedback.
-
@unnoq is there any possible way get work with spec.json inteasd of router/contract. Creating the client using Open API Json. So we don't need Hey api. We already generate the spec.json using scalar so it's possible. It will helpfull for if front-end and back-end separated. But the thing is need to generate the document in front-end. If we achieve this. We can use the any open API specification json with openAPILink. In this case we don't need to generate the type just use the OpenAPI specification json located in project folder or use the URL. Its already possible mean pls provide the example. I am not native speaker pls adjust my English. |
Beta Was this translation helpful? Give feedback.
You can follow this: #205 (comment)