Get a collection of functions in a category

get/functionCategories/{categoryId}/functions
Internal-Use Only

Returns a collection of the functions in a specific category based on the specified pagination, filtering, and sorting options.

Request Samples

1

Response Samples

1{
2 "name": "items",
3 "accept": "application/vnd.sas.business.rule.function",
4 "version": 2,
5 "items": [
6 {
7 "id": "26674236-bc80-41de-954d-d37b1a19d98d",
8 "categoryId": "85329ae9-52df-444f-8e18-bffb1a523da7",
9 "creationTimeStamp": "2020-08-04T17:46:19.097Z",
10 "modifiedTimeStamp": "2020-08-04T17:47:28.848Z",
11 "createdBy": "brmdev",
12 "modifiedBy": "brmdev",
13 "version": 2,
14 "name": "customadd2",
15 "code": "method customAdd2(double a, double b) returns double; return a + 2*b; end;",
16 "returnType": "double",
17 "signature": [
18 {
19 "type": "double",
20 "name": "a",
21 "inOut": false,
22 "nameQuoted": false
23 },
24 {
25 "type": "double",
26 "name": "b",
27 "inOut": false,
28 "nameQuoted": false
29 }
30 ],
31 "links": [
32 {
33 "method": "GET",
34 "rel": "self",
35 "href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
36 "uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
37 "type": "application/vnd.sas.business.rule.function"
38 },
39 {
40 "method": "PUT",
41 "rel": "update",
42 "href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
43 "uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
44 "type": "application/vnd.sas.business.rule.function"
45 },
46 {
47 "method": "DELETE",
48 "rel": "delete",
49 "href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d",
50 "uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98d"
51 },
52 {
53 "method": "GET",
54 "rel": "up",
55 "href": "/businessRules/functions",
56 "uri": "/businessRules/functions",
57 "type": "application/vnd.sas.collection",
58 "itemType": "application/vnd.sas.business.rule.function"
59 },
60 {
61 "method": "GET",
62 "rel": "category",
63 "href": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
64 "uri": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
65 "type": "application/vnd.sas.business.rule.function.category"
66 }
67 ],
68 "hidden": false,
69 "nameQuoted": false
70 },
71 {
72 "id": "26674236-bc80-41de-954d-d37b1a19d98e",
73 "categoryId": "85329ae9-52df-444f-8e18-bffb1a523da7",
74 "creationTimeStamp": "2020-08-04T17:46:19.097Z",
75 "modifiedTimeStamp": "2020-08-04T17:47:28.848Z",
76 "createdBy": "brmdev",
77 "modifiedBy": "brmdev",
78 "version": 2,
79 "name": "customadd3",
80 "code": "method customAdd3(double a, double b) returns double; return a + 3*b; end;",
81 "returnType": "double",
82 "signature": [
83 {
84 "type": "double",
85 "name": "a",
86 "inOut": false,
87 "nameQuoted": false
88 },
89 {
90 "type": "double",
91 "name": "b",
92 "inOut": false,
93 "nameQuoted": false
94 }
95 ],
96 "links": [
97 {
98 "method": "GET",
99 "rel": "self",
100 "href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98e",
101 "uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98e",
102 "type": "application/vnd.sas.business.rule.function"
103 },
104 {
105 "method": "PUT",
106 "rel": "update",
107 "href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98e",
108 "uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98e",
109 "type": "application/vnd.sas.business.rule.function"
110 },
111 {
112 "method": "DELETE",
113 "rel": "delete",
114 "href": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98e",
115 "uri": "/businessRules/functions/26674236-bc80-41de-954d-d37b1a19d98e"
116 },
117 {
118 "method": "GET",
119 "rel": "up",
120 "href": "/businessRules/functions",
121 "uri": "/businessRules/functions",
122 "type": "application/vnd.sas.collection",
123 "itemType": "application/vnd.sas.business.rule.function"
124 },
125 {
126 "method": "GET",
127 "rel": "category",
128 "href": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
129 "uri": "/businessRules/functionCategories/85329ae9-52df-444f-8e18-bffb1a523da7",
130 "type": "application/vnd.sas.business.rule.function.category"
131 }
132 ],
133 "hidden": false,
134 "nameQuoted": true
135 }
136 ]
137}

Path Parameters

NameTypeRequiredDescription
categoryId
string
true

The ID of the category for which to retrieve the functions.

Query Parameters

NameTypeRequiredDescription
filter
string<filter-criteria>
false

The criteria for filtering the functions. See Filtering in REST APIs.

limit
integer<int32>
false

The maximum number of functions to return.

Default:
20
sortBy
string<sort-criteria>
false

The criteria for sorting the functions. See Sorting in REST APIs.

start
integer<int64>
false

The index of the first function to return.

Default:
0

Responses

StatusMeaningDescription
200OKA collection of functions.HeadersSchema
400Bad RequestThe request was invalid.Schema
404Not FoundNo resource exists at the requested path.Schema