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 (https://workbench.developerforce.com/login.php).  Use workbench to OAuth into your org, and then use the REST explorer to explore the various REST APIs available in Salesforce.

Regards,
Nagendra.
Ken KoellnerKen Koellner
Not asking about the built-in REST APIs.  I'm asking about API that we develop in custom Apex.
sunny522sunny522
Hi Ken Koellner,
        If we use webservice modifier in front of method,We will be able to generate Wsdl file.
@RestResource(urlMapping='/Cases/*')
global with sharing class RESTCaseController {

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