80 lines
1.8 KiB
HTTP
80 lines
1.8 KiB
HTTP
# Test your FastAPI endpoints
|
|
|
|
GET http://127.0.0.1:8000/generer/
|
|
Content-Type: application/json
|
|
Accept: application/zip
|
|
|
|
{
|
|
"format": "instagram",
|
|
"style": "jevalideca",
|
|
"linkcolor": "blue",
|
|
"tocdepth": 2,
|
|
"pdfengine": "lualatex",
|
|
"content": "# Ceci est un titre\n## Ceci est un sous-titre\n\nCeci est un paragraphe\n\n## Ceci est un autre sous-titre\n\n> Ceci est du code",
|
|
"fontsize": 14,
|
|
"paperwidth": 1080,
|
|
"paperheight": 1920,
|
|
"margin": 180,
|
|
"extension": "jpg"
|
|
}
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:8000/generer/
|
|
Content-Type: application/json
|
|
Accept: application/pdf
|
|
|
|
{
|
|
"format": "linkedin",
|
|
"style": "jevalideca",
|
|
"linkcolor": "blue",
|
|
"tocdepth": 2,
|
|
"pdfengine": "lualatex",
|
|
"content": "# Ceci est un titre\n## Ceci est un sous-titre\n\nCeci est un paragraphe\n\n## Ceci est un autre sous-titre\n\n> Ceci est du code",
|
|
"fontsize": 14,
|
|
"paperwidth": 1080,
|
|
"paperheight": 1080,
|
|
"margin": 90,
|
|
"extension": "pdf"
|
|
}
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:8000/generer/
|
|
Content-Type: application/json
|
|
Accept: application/pdf
|
|
|
|
{
|
|
"format": "linkedin",
|
|
"style": "missioncyber",
|
|
"linkcolor": "blue",
|
|
"tocdepth": 2,
|
|
"pdfengine": "lualatex",
|
|
"content": "# Comment améliorer ma sécurité informatique\n\n20 défis gratuits de 2 minutes chacun !",
|
|
"fontsize": 20,
|
|
"paperwidth": 1080,
|
|
"paperheight": 1080,
|
|
"margin": 180,
|
|
"extension": "jpg",
|
|
"vmargin": 300
|
|
}
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:8000/generer/
|
|
Content-Type: application/json
|
|
Accept: application/pdf
|
|
|
|
{
|
|
"format": "slide169",
|
|
"style": "jevalideca",
|
|
"linkcolor": "blue",
|
|
"tocdepth": 2,
|
|
"pdfengine": "lualatex",
|
|
"content": "# Ceci est un titre\n## Ceci est un sous-titre\n\nCeci est un paragraphe\n\n## Ceci est un autre sous-titre\n\n> Ceci est du code",
|
|
"fontsize": 14,
|
|
"paperwidth": 1920,
|
|
"paperheight": 1080,
|
|
"margin": 90,
|
|
"extension": "jpg"
|
|
}
|