Cursor to build frontend for existing REST API

Hey all,

I have an existing REST API and was about to build out the front end, and have decided to give Cursor a try first (having never used it before).

Is there a generally recommended way to do this - Swagger docs or something similar? - so that I can instruct Cursor on what the front end is pointing at?

Thanks!