Custom Endpoints

These custom APIs are useful to share the data from different platforms as and when needed.

Purpose Method Url Parameter (type) Return Type
Get all specialties GET https://sure-dev.docmode.org/wp-json/api/v1/specialty/ - JSON data | False
Get all sub specialties GET https://sure-dev.docmode.org/wp-json/api/v1/sub_specialty/ - JSON data | False
Get all sub specialties by specialty id GET https://sure-dev.docmode.org/wp-json/api/v1/sub_specialty/?specialty_id={ specialty_id }
E.g. https://sure-dev.docmode.org/wp-json/api/v1/sub_specialty/?specialty_id=1
specialty_id (int) JSON data | False
Get all sub specialties by specialty name GET https://sure-dev.docmode.org/wp-json/api/v1/sub_specialty/?specialty_name={specialty name}
E.g. https://sure-dev.docmode.org/wp-json/api/v1/sub_specialty/?specialty_name=Radio Therapy
specialty_name (string) JSON data | False
Get all sub specialties by specialty slug GET https://sure-dev.docmode.org/wp-json/api/v1/sub_specialty/?specialty_slug={specialty slug}
E.g. https://sure-dev.docmode.org/wp-json/api/v1/sub_specialty/?specialty_slug=radio_therapy
specialty_slug (string) JSON data | False