Licence
Vytvoření licence
Request
curl --location 'https://dragonfly.stg.webout.io/api/v1/signatures' \
--header 'Content-Type: application/json' \
--data '{
"project_slug": "webout-test",
"license_uuid": "b7f6052a-b7f0-451e-8274-e1ac10136730"
}'
Response
{
"uuid": "364af499-4ab4-4126-85a9-d596e9aae9d4",
"variables": null,
"arguments": null,
"thumbnail_url": null,
"updated_at": null,
"created_at": "2024-05-10T14:30:53.755495"
}
Payload:
- Name
project_slug- Type
- string
- Description
Slug projektu
- Name
license_uuid- Type
- string
- Description
UUID licence
- Name
arguments?- Type
- object
- Description
Argumenty pro uložení k podpisu
- Name
variables?- Type
- object
- Description
Proměnné pro uložení k podpisu
- Name
thumbnail_url?- Type
- string
- Description
Cesta k náhledovému obrázku
Response:
- Name
signature- Type
- string
- Description
UUID podpisu
- Name
arguments?- Type
- object
- Description
Argumenty pro uložení k podpisu
- Name
variables?- Type
- object
- Description
Proměnné pro uložení k podpisu
- Name
thumbnail_url?- Type
- string
- Description
Cesta k náhledovému obrázku
- Name
created_at- Type
- string
- Description
Čas a datum vytvoření licence
Hromadné vytvoření licencí
Vytvoří více licencí najednou a připraví frontu pro generování náhledových obrázků.
K použití endpointu je zapotřebí posílat s requstem autorizační hlavičku. Prozatím je limit 50 000 licencí / request
Request
curl --location 'https://dragonfly.stg.webout.io/api/v1/signatures/prepare' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiT3JpZ2luIHRva2VuIiwic3ViIjoid2Vib3V0LXRlc3QiLCJleHAiOjE3NDY4ODc5MDgsImlhdCI6MTcxNTM1MTkwOH0.KDmUssCxIfYDq2fUedG0DT6ra-qzrSsdzyoT-z9rxtI' \
--data '{
"project_slug": "webout-test",
"license_uuid": "b7f6052a-b7f0-451e-8274-e1ac10136730",
"signatures": [
{
"id": 1,
"variables": { "name": "Petr" }
},
{
"id": 2,
"arguments": { "show_background": true }
},
{
"id": 3,
"variables": { "name": "Karel" },
"arguments": { "gender": "male" }
}
]
}'
Response
{
"3": "7a0fd18e-26cf-457a-9a1c-f571027338b5",
"1": "3567757e-e88f-401b-86f8-11509ceac5a9",
"2": "1c55b7e9-8d37-42f2-8054-f512d70235ce"
}
Payload:
- Name
project_slug- Type
- string
- Description
Slug projektu
- Name
license_uuid- Type
- string
- Description
License UUID
- Name
signatures- Type
- object
- Description
Pole licencí k vytvoření
- Name
signatures[index].id- Type
- object
- Description
ID ke kterému se vytvoří UUID licence ID se nikde neukládá, musí být unikátní
- Name
signatures[index].arguments?- Type
- object
- Description
Argumenty pro uložení k podpisu
- Name
signatures[index].variables?- Type
- object
- Description
Proměnné pro uložení k podpisu
Response:
- Name
signature- Type
- string
- Description
ID: UUID podpisu
Aktualizace licence
Request
curl --location --request PATCH 'https://dragonfly.stg.webout.io/api/v1/signatures/7a0fd18e-26cf-457a-9a1c-f571027338b5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiT3JpZ2luIHRva2VuIiwic3ViIjoid2Vib3V0LXRlc3QiLCJleHAiOjE3NDY4ODc5MDgsImlhdCI6MTcxNTM1MTkwOH0.KDmUssCxIfYDq2fUedG0DT6ra-qzrSsdzyoT-z9rxtI' \
--data '{
"arguments": {
"name": "Franta"
}
}'
Response
{
"uuid": "7a0fd18e-26cf-457a-9a1c-f571027338b5",
"variables": {
"name": "Karel"
},
"arguments": {
"name": "Franta"
},
"thumbnail_url": "/7a0fd18e-26cf-457a-9a1c-f571027338b5.png",
"created_at": "2024-05-10T14:38:55.412480"
}
Payload:
- Name
arguments?- Type
- object
- Description
Argumenty pro uložení k podpisu
- Name
variables?- Type
- object
- Description
Proměnné pro uložení k podpisu
- Name
thumbnail_url?- Type
- string
- Description
Cesta k náhledovému obrázku
Response:
- Name
signature- Type
- string
- Description
UUID podpisu
- Name
arguments?- Type
- object
- Description
Argumenty pro uložení k podpisu
- Name
variables?- Type
- object
- Description
Proměnné pro uložení k podpisu
- Name
thumbnail_url?- Type
- string
- Description
Cesta k náhledovému obrázku
- Name
created_at- Type
- string
- Description
Čas a datum vytvoření licence
Získání licence
Request
curl --location 'https://dragonfly.stg.webout.io/api/v1/signatures/7a0fd18e-26cf-457a-9a1c-f571027338b5' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiT3JpZ2luIHRva2VuIiwic3ViIjoid2Vib3V0LXRlc3QiLCJleHAiOjE3NDY4ODc5MDgsImlhdCI6MTcxNTM1MTkwOH0.KDmUssCxIfYDq2fUedG0DT6ra-qzrSsdzyoT-z9rxtI' \
--data ''
Response
{
"uuid": "7a0fd18e-26cf-457a-9a1c-f571027338b5",
"variables": {
"name": "Karel"
},
"arguments": {
"name": "Franta"
},
"thumbnail_url": "/7a0fd18e-26cf-457a-9a1c-f571027338b5.png",
"updated_at": null,
"created_at": "2024-05-10T14:38:55.412480"
}
Query:
- Name
signature_uuid- Type
- string
- Description
UUID podpisu
Response:
- Name
signature- Type
- string
- Description
UUID podpisu
- Name
arguments?- Type
- object
- Description
Argumenty pro uložení k podpisu
- Name
variables?- Type
- object
- Description
Proměnné pro uložení k podpisu
- Name
thumbnail_url?- Type
- string
- Description
Cesta k náhledovému obrázku
- Name
created_at- Type
- string
- Description
Čas a datum vytvoření licence