UNPKG
apidoc-light
Version:
latest (0.54.0)
0.54.0
0.53.1
0.53.0
0.52.0
0.51.1
0.51.0
0.50.3
0.50.2
0.50.1
RESTful web API Documentation Generator
apidocjs.com
rigwild/apidoc-light
apidoc-light
/
lib
/
core
/
parsers
/
api_sample_request.js
19 lines
(15 loc)
•
239 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function
parse
(content)
{
const
url
=
content.trim();
if
(url.length ===
0
) {
return
null
; }
return
{ url: url, }; }
/** * Exports */
module
.
exports
= { parse: parse, path:
'local.sampleRequest'
, method:
'push'
, };