Open another-guy opened 1 year ago
Thank you for your suggestion. We're in the middle of reworking the API docs, and this suggestion will definitely be taken into consideration 🙏
I recently did some discovery around this and found some interesting info.
The public URL is: https://api.cal.com/docs However, that spec is missing all of the paths for each tag.
Curiously, if you pull down the repo and run the API app directly, you will get a full spec with the paths:
cd apps/api
yarn dev
curl http://localhost:3002/docs
I'm uncertain of where the script for deploying the API lives, but my first guess would be to look at that and try and figure out why the production URL is missing the paths from the OpenAPI spec.
next-swagger-doc
seems to be the library responsible for generating the spec. https://github.com/jellydn/next-swagger-doc
Updating to the latest version did not seem to have any effect in my local testing.
I just had a random thought. Is it possible that the deploy script is stripping the comments from the code before deploy? This would mean that next-swagger-doc wouldn't be able to see the @swagger
JSDocTag since it got removed.
Not sure, but a random thought I had that might help someone with higher access privileges troubleshoot this.
Curious on the status of this.
Is your proposal related to a problem?
Cal.com service API is unclear. The documentation under https://cal.com/docs/enterprise-features/api is lacking necessary details for reliable integration. E.g. what's the shape of EventType object? Which fields are required, which are optional, and so on.
Describe the solution you'd like
Post an official automatically generated documentation in two forms:
Describe alternatives you've considered
Not sure
House rules
🚨 needs approval
label, don't start coding yet. Wait until a core member approves feature request by removing this label, then you can start coding.🚨 needs approval
label.