Added a new API route to get the event-types
using the slug
.
Closes #12411 /claim #12411
There were two options: either to update the existing /event-types/{id}
route to /event-types/{idOrSlug}
or to add a new route /event-types/bySlug/{slug}
.
I chose to add a new route as updating the existing one to /event-types/{idOrSlug}
would make it ambiguous whether the event-type is fetched using slug or the id.
/event-types/bySlug/{slug}
API key
is passed and event-type
with the slug
exists for the user, it should be returned; otherwise forbidden.All done
Abhijeet Singh
@abhijeetsingh-22
Cal.com, Inc.
@cal