function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ken KoellnerKen Koellner 

Is there a way to generate WADL from an Apex REST Service?

I have some rest service written in custom Apex.  Anyone know if there's a way to generate a WADL file from them?
NagendraNagendra (Salesforce Developers) 
Hi ken,

There's no WADL that I'm aware of, but most of the APIs are pretty well documented (Such as the metadata API, the tooling API, etc etc.).

The closest you're going to get is workbench (  Use workbench to OAuth into your org, and then use the REST explorer to explore the various REST APIs available in Salesforce.

Ken KoellnerKen Koellner
Not asking about the built-in REST APIs.  I'm asking about API that we develop in custom Apex.
Hi Ken Koellner,
        If we use webservice modifier in front of method,We will be able to generate Wsdl file.
global with sharing class RESTCaseController {

  webservice static List<Case> getOpenCases() {
      return null;  
Once you save this class,you can see generate wsdl button to generate wsdl file