public class SampleController : ApiController { [HttpGet] [Route("api/sample/{id}")] [ResponseType(typeof(string))] public IHttpActionResult Get(int id) { var result = "Sample result for ID: " + id; return Ok(result); } } public class SampleControllerDescriptor : ApiExplorer { public ApiDescription GetApiDescription(HttpConfiguration configuration, HttpActionDescriptor actionDescriptor) { return ApiExplorer.GetApiDescription(configuration, actionDescriptor); } }In the above example, an API method with an HTTP GET request and a route parameter "id" is described using the ApiDescription class. The method returns a string response and is described using the ResponseType attribute. The package library used for this example is "System.Web.Http.Description".