Get the mapped code of a code file revision

post/codeFiles/{codeFileId}/revisions/{revisionId}/mappedCode
Internal-Use Only

Returns the code to be able to run the code file based on the provided data and mapping information in the request.

Request Samples

1

Response Samples

1{
2 "code": "/*{\"signatureExtension\":[]}*/\n\npackage CODE_FILE_SCORE /inline;\n\n\n/*end custom function code */\n\nmethod execute(double a, double b, in_out double c);\n c=a+b;\n end;\nendpackage;\n\n\nthread score_codefile_execution_thread ;\n\n dcl package CODE_FILE_SCORE codefiletest();\n dcl double \"c\";\n\n dcl double \"a\";\n dcl double \"b\";\n\n dcl double \"a\";\n dcl double \"b\";\n\n keep \"c\";\n method run();\n\n dcl int localRC;\n\n set \"Public\".\"DUAL\" (\n\n );\n\n \"a\" = 2;\n \"b\" = 3;\n\n codefiletest.execute(\n \"a\"\n , \"b\"\n , \"c\"\n );\n\n output;\n end;\nendthread;\n\n\ndata \"Public\".\"add_cf_Scenario_1_add_cf_2021-05-07_00-51-51_output\"\n(overwrite=yes);\n\n dcl thread score_codefile_execution_thread _t;\n method run();\n set from _t threads=4;\n output;\n end;\nenddata;\n",
3 "codeType": "text/vnd.sas.source.ds2",
4 "outputTableName": "add_cf_Scenario_1_add_cf_2021-05-07_00-51-51_output",
5 "outputLibraryName": "Public",
6 "version": 1
7}

Path Parameters

NameTypeRequiredDescription
codeFileId
string
true

The identifier for the code file.

Examples:
"981ac81f-ad95-46ae-a101-6846683364c5"
revisionId
string
true

The identifier for the code file revision.

Examples:
"cd942f3c-60a0-4b16-9184-4cb8921fb0eb"

Request Body

The information for scoreDefinitionId and hints.

Request containing hints to generate mapped code using the Scoring Definition by Score Object.

NameTypeRequiredDescription
scoreDefinitionId
string
true

The score definition ID that is used for generating mapped code.

hints
object
false

Hints for generating mapped code. The mapped code request is forwarded to the score object of the score definition. The score object should understand these hints.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.HeadersSchema