Get the decision step code for a code file revision

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

Returns the decision step code for the specified code file revision.

Request Samples

1

Response Samples

1{
2 "creationTimeStamp": "2021-05-06T20:21:04.490Z",
3 "modifiedTimeStamp": "2021-05-06T20:21:04.490Z",
4 "createdBy": "sasdemo",
5 "modifiedBy": "sasdemo",
6 "id": "f02aa26d-af06-4198-9705-2306bad711a1",
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/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
32 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
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/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
40 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
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/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
47 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
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/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
54 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
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/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
67 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
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/revisions/f02aa26d-af06-4198-9705-2306bad711a1",
74 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions/f02aa26d-af06-4198-9705-2306bad711a1"
75 }
76 ],
77 "version": 1
78}

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"

Responses

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