Get a collection of code files

get/codeFiles
Internal-Use Only

Returns a collection of code files based on the specified pagination, filtering, and sorting options. The items in the collection, depend on the Accept-Item header.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/decisions/codeFiles",
7 "uri": "/decisions/codeFiles",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.summary application/vnd.sas.decision.code.file"
10 },
11 {
12 "method": "GET",
13 "rel": "self",
14 "href": "/decisions/codeFiles?sortBy=name&start=1&limit=1",
15 "uri": "/decisions/codeFiles?sortBy=name&start=1&limit=1",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.summary"
18 },
19 {
20 "method": "GET",
21 "rel": "first",
22 "href": "/decisions/codeFiles?sortBy=name&start=0&limit=1",
23 "uri": "/decisions/codeFiles?sortBy=name&start=0&limit=1",
24 "type": "application/vnd.sas.collection",
25 "itemType": "application/vnd.sas.summary"
26 },
27 {
28 "method": "GET",
29 "rel": "prev",
30 "href": "/decisions/codeFiles?sortBy=name&start=0&limit=1",
31 "uri": "/decisions/codeFiles?sortBy=name&start=0&limit=1",
32 "type": "application/vnd.sas.collection",
33 "itemType": "application/vnd.sas.summary"
34 },
35 {
36 "method": "GET",
37 "rel": "next",
38 "href": "/decisions/codeFiles?sortBy=name&start=2&limit=1",
39 "uri": "/decisions/codeFiles?sortBy=name&start=2&limit=1",
40 "type": "application/vnd.sas.collection",
41 "itemType": "application/vnd.sas.summary"
42 },
43 {
44 "method": "POST",
45 "rel": "create",
46 "href": "/decisions/codeFiles",
47 "uri": "/decisions/codeFiles",
48 "type": "application/vnd.sas.decision.code.file",
49 "responseType": "application/vnd.sas.decision.code.file"
50 }
51 ],
52 "name": "codeFiles",
53 "accept": "application/vnd.sas.summary",
54 "start": 1,
55 "count": 4,
56 "items": [
57 {
58 "creationTimeStamp": "2021-05-06T20:21:04.420Z",
59 "modifiedTimeStamp": "2021-05-06T20:21:04.882Z",
60 "createdBy": "sasdemo",
61 "modifiedBy": "sasdemo",
62 "id": "cd404a82-af5b-4835-9672-9730470a6be8",
63 "type": "decisionDS2CodeFile",
64 "name": "add_cf",
65 "links": [
66 {
67 "method": "GET",
68 "rel": "up",
69 "href": "/decisions/codeFiles",
70 "uri": "/decisions/codeFiles",
71 "type": "application/vnd.sas.collection",
72 "itemType": "application/vnd.sas.summary"
73 },
74 {
75 "method": "GET",
76 "rel": "self",
77 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
78 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
79 "type": "application/vnd.sas.decision.code.file"
80 },
81 {
82 "method": "PUT",
83 "rel": "update",
84 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
85 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
86 "type": "application/vnd.sas.decision.code.file"
87 },
88 {
89 "method": "GET",
90 "rel": "alternate",
91 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
92 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
93 "type": "application/vnd.sas.summary"
94 },
95 {
96 "method": "GET",
97 "rel": "content",
98 "href": "/files/files/2110f410-bb15-41d4-a0a5-e707fececfe9/content",
99 "uri": "/files/files/2110f410-bb15-41d4-a0a5-e707fececfe9/content"
100 },
101 {
102 "method": "GET",
103 "rel": "decisionStepCode",
104 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
105 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
106 "type": "application/vnd.sas.decision.step.code"
107 },
108 {
109 "method": "DELETE",
110 "rel": "delete",
111 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8",
112 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8"
113 },
114 {
115 "method": "GET",
116 "rel": "revisions",
117 "href": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
118 "uri": "/decisions/codeFiles/cd404a82-af5b-4835-9672-9730470a6be8/revisions",
119 "type": "application/vnd.sas.collection"
120 }
121 ],
122 "version": 2
123 }
124 ],
125 "limit": 1,
126 "version": 2
127}

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

The criteria for filtering the code files. See Filtering in REST APIs.

Examples:
"gt(modifiedTimeStamp, '2021-05-03T15:38:45.654Z')"
limit
integer<int32>
false

The maximum number of code files to return.

Default:
20
Examples:
500
sortBy
string<sort-criteria>
false

The criteria for sorting the code files. See Sorting in REST APIs.

Examples:
"modifiedTimeStamp:descending"
start
integer<int64>
false

The index of the first code file to return.

Default:
0
Examples:
100

Header Parameters

NameTypeRequiredDescription
Accept-Item
string<media-type>
false

Used for selecting the desired item representation.

Allowed values:
application/vnd.sas.decision.code.file+jsonapplication/vnd.sas.summary+jsonapplication/vnd.sas.dcm.summary+json
Default:
application/vnd.sas.summary+json
Examples:
"application/vnd.sas.decision.code.file+json"

Responses

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