Hi, is there a way to generate a typescript client from the available API endpoints and models for the properties returned from the specific endpoint?
n
nathanwoulfe
10/31/2023, 8:34 PM
Sounds very much like a job for Swagger. Have a look at the v14/dev branch, in particular the new management API and the client-side setup in the new backoffice.
t
TackleMcClean 🏅
11/15/2023, 11:31 PM
@nathanwoulfe I'm also looking to do this - would you say v14 is the only realistic version to do this in, or would 13 work just as fine?
I have basic knowledge of Bellissima project and Swagger but not to the extent of finding my way around in v14 codebase or how to generate stuff from Swagger, but I can dig if I knew where to start 😊
n
nathanwoulfe
11/17/2023, 9:44 AM
Should be ok in 13 too - have a look at the package.json in Bellissima, particularly the generate:api scripts, that should point you in the right direction for the client side generation. For the actual swagger docs, any of the backoffice api controllers should be decorated with the required attributes
t
TackleMcClean 🏅
11/22/2023, 8:49 AM
@nathanwoulfe do you happen to know if Bellissima resides in another repo than Umbraco Cms? Trying to find this package.json
n
nathanwoulfe
11/22/2023, 9:58 AM
I do indeed know - it's in the umbraco.cms.backoffice repo