Parse
Raw URL content from the
Object containing the sample request URL, or null if invalid
tag content to extract sample request URL
Extracts and validates the URL for sample request functionality. The URL can be a relative or absolute path that will be used to enable interactive testing of the API endpoint.
// @apiSampleRequest https://api.example.com/v1/users
parse('https://api.example.com/v1/users')
// Returns: { url: 'https://api.example.com/v1/users' }
Exports