Gros refactoring
This commit is contained in:
parent
6008aa68f6
commit
4a6bfc951f
368 changed files with 22503 additions and 3 deletions
74
backend/test_main.http
Normal file
74
backend/test_main.http
Normal file
|
@ -0,0 +1,74 @@
|
|||
# Test your FastAPI endpoints
|
||||
|
||||
# @name login
|
||||
POST http://127.0.0.1:8000/token/
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
username=francois&password=password
|
||||
|
||||
|
||||
###
|
||||
|
||||
POST http://127.0.0.1:8000/generer/
|
||||
Content-Type: application/json
|
||||
Accept: application/zip
|
||||
Authorization: Bearer {{authToken}}
|
||||
|
||||
{
|
||||
"format": "instagram-story",
|
||||
"style": "consultation-express",
|
||||
"linkcolor": "blue",
|
||||
"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\n\nCeci est un emoji :heart_eyes:\n\n::: {.center}\nCeci est centré\n:::",
|
||||
"fontsize": 14,
|
||||
"paperwidth": 1080,
|
||||
"paperheight": 1920,
|
||||
"margin": 90,
|
||||
"vmargin": 180,
|
||||
"fps": 15,
|
||||
"stilltime": 2
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST http://127.0.0.1:8000/generer/
|
||||
Content-Type: application/json
|
||||
Accept: application/zip
|
||||
Authorization: Bearer {{authToken}}
|
||||
|
||||
{
|
||||
"format": "instagram-fullscreen",
|
||||
"style": "consultation-express",
|
||||
"linkcolor": "blue",
|
||||
"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\n\nCeci est un emoji :heart_eyes:\n\n::: {.center}\nCeci est centré\n:::",
|
||||
"fontsize": 14,
|
||||
"paperwidth": 1080,
|
||||
"paperheight": 1350,
|
||||
"margin": 90,
|
||||
"vmargin": 180,
|
||||
"fps": 15,
|
||||
"stilltime": 2
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
POST http://127.0.0.1:8000/generer/
|
||||
Content-Type: application/json
|
||||
Accept: application/pdf
|
||||
Authorization: Bearer {{authToken}}
|
||||
|
||||
{
|
||||
"format": "instagram-carre",
|
||||
"style": "consultation-express",
|
||||
"linkcolor": "blue",
|
||||
"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\n\nCeci est un emoji :heart_eyes:\n\n::: {.center}\nCeci est centré\n:::",
|
||||
"fontsize": 14,
|
||||
"paperwidth": 1080,
|
||||
"paperheight": 1080,
|
||||
"margin": 90,
|
||||
"vmargin": 180,
|
||||
"fps": 15,
|
||||
"stilltime": 2
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue