class Api::Tasks::CreateTask
- Api::Tasks::CreateTask
- ApiAction
- Lucky::Action
- Reference
- Object
Overview
JSON API: Creates transcompilation task and returns id to fetch the result later.
This class harbours api functionality regarding the creation of transcompiler tasks.
Example for calling the api:
curl example.com/api/createtask -X POST -H "Content-Type: application/json" -d '{
"auth_token": "your-token",
"transcompile_task": {
"inp_lang": "inp-lang",
"outp_lang": "outp-lang",
"input_code": "your-encoded-code"
}
}'
On success returns:
{"id":"task-id"}
Defined in:
actions/api/tasks/create_task.crConstant Summary
-
AFTER_PIPES =
[] of Symbol
-
JSON API: Creates transcompilation task and returns id to fetch the result later.
This class harbours api functionality regarding the creation of transcompiler tasks.
Example for calling the api:
curl example.com/api/createtask -X POST -H "Content-Type: application/json" -d '{ "auth_token": "your-token", "transcompile_task": { "inp_lang": "inp-lang", "outp_lang": "outp-lang", "input_code": "your-encoded-code" } }'
On success returns:
{"id":"task-id"}
-
BEFORE_PIPES =
[verify_accepted_format, require_auth_token] of Symbol
-
JSON API: Creates transcompilation task and returns id to fetch the result later.
This class harbours api functionality regarding the creation of transcompiler tasks.
Example for calling the api:
curl example.com/api/createtask -X POST -H "Content-Type: application/json" -d '{ "auth_token": "your-token", "transcompile_task": { "inp_lang": "inp-lang", "outp_lang": "outp-lang", "input_code": "your-encoded-code" } }'
On success returns:
{"id":"task-id"}
-
EXPOSURES =
[] of Symbol
-
JSON API: Creates transcompilation task and returns id to fetch the result later.
This class harbours api functionality regarding the creation of transcompiler tasks.
Example for calling the api:
curl example.com/api/createtask -X POST -H "Content-Type: application/json" -d '{ "auth_token": "your-token", "transcompile_task": { "inp_lang": "inp-lang", "outp_lang": "outp-lang", "input_code": "your-encoded-code" } }'
On success returns:
{"id":"task-id"}
-
PARAM_DECLARATIONS =
[] of Crystal::Macros::TypeDeclaration
-
JSON API: Creates transcompilation task and returns id to fetch the result later.
This class harbours api functionality regarding the creation of transcompiler tasks.
Example for calling the api:
curl example.com/api/createtask -X POST -H "Content-Type: application/json" -d '{ "auth_token": "your-token", "transcompile_task": { "inp_lang": "inp-lang", "outp_lang": "outp-lang", "input_code": "your-encoded-code" } }'
On success returns:
{"id":"task-id"}
-
ROUTE_SETTINGS =
{prefix: ""}
-
JSON API: Creates transcompilation task and returns id to fetch the result later.
This class harbours api functionality regarding the creation of transcompiler tasks.
Example for calling the api:
curl example.com/api/createtask -X POST -H "Content-Type: application/json" -d '{ "auth_token": "your-token", "transcompile_task": { "inp_lang": "inp-lang", "outp_lang": "outp-lang", "input_code": "your-encoded-code" } }'
On success returns:
{"id":"task-id"}
-
SKIPPED_PIPES =
[] of Symbol
-
JSON API: Creates transcompilation task and returns id to fetch the result later.
This class harbours api functionality regarding the creation of transcompiler tasks.
Example for calling the api:
curl example.com/api/createtask -X POST -H "Content-Type: application/json" -d '{ "auth_token": "your-token", "transcompile_task": { "inp_lang": "inp-lang", "outp_lang": "outp-lang", "input_code": "your-encoded-code" } }'
On success returns:
{"id":"task-id"}
Class Method Summary
- .path(*args, **named_args) : String
- .path_without_query_params
- .route(anchor : String | Nil = nil) : Lucky::RouteHelper
- .url(*args, **named_args) : String
- .url_without_query_params
- .with(anchor : String | Nil = nil) : Lucky::RouteHelper