Get the decision step code for a code file

get/codeFiles/{codeFileId}/decisionStepCode
Internal-Use Only

Returns the decision step code for the specified code file.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2021-05-06T20:21:04.420Z",
3 "modifiedTimeStamp": "2021-05-06T20:21:04.882Z",
4 "createdBy": "sasdemo",
5 "modifiedBy": "sasdemo",
6 "id": "cd404a82-af5b-4835-9672-9730470a6be8",
7 "type": "decisionDS2CodeFile",
8 "name": "add_cf",
9 "code": "/*{\"signatureExtension\":[]}*/\npackage \"${PACKAGE_NAME}\" /inline;\n method execute(double a, double b, in_out double c);\n c=a+b;\n end;\nendpackage;\n",
10 "signature": [
11 {
12 "name": "a",
13 "dataType": "decimal",
14 "direction": "input"
15 },
16 {
17 "name": "b",
18 "dataType": "decimal",
19 "direction": "input"
20 },
21 {
22 "name": "c",
23 "dataType": "decimal",
24 "direction": "output"
25 }
26 ],
27 "links": [
28 {
29 "method": "GET",
30 "rel": "up",
31 "href": "/decisions/codeFiles",
32 "uri": "/decisions/codeFiles",
33 "type": "application/vnd.sas.collection",
34 "itemType": "application/vnd.sas.summary"
35 },
36 {
37 "method": "GET",
38 "rel": "self",
39 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
40 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
41 "type": "application/vnd.sas.decision.code.file"
42 },
43 {
44 "method": "PUT",
45 "rel": "update",
46 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
47 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
48 "type": "application/vnd.sas.decision.code.file"
49 },
50 {
51 "method": "GET",
52 "rel": "alternate",
53 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
54 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
55 "type": "application/vnd.sas.summary"
56 },
57 {
58 "method": "GET",
59 "rel": "content",
60 "href": "/files/files/2110f410-bb15-41d4-a0a5-e707fececfe9/content",
61 "uri": "/files/files/2110f410-bb15-41d4-a0a5-e707fececfe9/content"
62 },
63 {
64 "method": "GET",
65 "rel": "decisionStepCode",
66 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
67 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
68 "type": "application/vnd.sas.decision.step.code"
69 },
70 {
71 "method": "DELETE",
72 "rel": "delete",
73 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
74 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8"
75 },
76 {
77 "method": "GET",
78 "rel": "revisions",
79 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
80 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
81 "type": "application/vnd.sas.collection"
82 }
83 ],
84 "version": 1
85}

Path Parameters

NameTypeRequiredDescription
codeFileId
string
true

The identifier for the code file.

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

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
404Not FoundNo code file exists at the requested path.HeadersSchema