Endpoint:
https://brettterpstra.com/md-lipsum/api/2/
Get all elements by using `/all` in the path. See below for specifying specific elements.
Specify number of paragraphs by including /XX
in the path, e.g. /api/2/all/10
.
Specify paragraph length by including verylong
, long
, medium
, or short
in the path, e.g. /api/2/long
.
Example:
curl 'https://brettterpstra.com/md-lipsum/api/2/all/10/short'
You can specify what elements to include in the output by using additional path elements. The available elements are:
(integer)
- The number of paragraphs to generate.
short, medium, long, verylong
- The average length of a paragraph.
decorate
- Add bold, italic and marked text.
link
- Add links.
ul
- Add unordered lists.
ol
- Add numbered lists.
dl
- Add description lists.
bq
- Add blockquotes.
code
- Add code samples.
headers
- Add headers.
allcaps
- Use ALL CAPS.
prude
- Prude version.
short
, medium
, long
, and verylong
can be shortened to s
, m
, l
, and vl
.
Example:
curl 'https://brettterpstra.com/md-lipsum/api/2/s/10/dl/bq'