Get a collection of the score definitions
get/definitions
Returns a list of the score definitions based on the specified pagination, filtering, and sorting options. The items in the list depend on the Accept-Item
header.
1{2 "accept": "application/vnd.sas.score.definition",3 "items": [4 {5 "createdBy": "sasdemo",6 "creationTimeStamp": "2021-09-18T03:20:14.136294Z",7 "id": "2e585929-9334-4db9-9f52-2dbc01fc6d0f",8 "inputData": {9 "type": "CASTable",10 "serverName": "cas-shared-default",11 "libraryName": "Public",12 "tableName": "HMEQ_EN"13 },14 "links": [15 {16 "method": "GET",17 "rel": "up",18 "href": "/scoreDefinitions/definitions",19 "uri": "/scoreDefinitions/definitions",20 "type": "application/vnd.sas.collection"21 },22 {23 "method": "GET",24 "rel": "self",25 "href": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f",26 "uri": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f",27 "type": "application/vnd.sas.score.definition"28 },29 {30 "method": "GET",31 "rel": "alternate",32 "href": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f",33 "uri": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f",34 "type": "application/vnd.sas.summary"35 },36 {37 "method": "DELETE",38 "rel": "delete",39 "href": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f",40 "uri": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f"41 },42 {43 "method": "PUT",44 "rel": "update",45 "href": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f",46 "uri": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f",47 "type": "application/vnd.sas.score.definition",48 "responseType": "application/vnd.sas.score.definition"49 },50 {51 "method": "POST",52 "rel": "mappedCode",53 "href": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f/mappedCode",54 "uri": "/scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f/mappedCode",55 "type": "application/vnd.sas.score.code.generation.request",56 "responseType": "application/vnd.sas.score.mapped.code"57 }58 ],59 "mappings": [60 {61 "variableName": "fired",62 "mappingType": "datasource",63 "mappingValue": "JOB"64 },65 {66 "variableName": "itemCount",67 "mappingType": "datasource",68 "mappingValue": "LOAN"69 },70 {71 "variableName": "findAllRetCode",72 "mappingType": "datasource",73 "mappingValue": "MORTDUE"74 }75 ],76 "modifiedBy": "sasdemo",77 "modifiedTimeStamp": "2021-09-18T03:20:14.136294Z",78 "name": "Code_file_9130_Test_1",79 "objectDescriptor": {80 "name": "Code_file_9130",81 "type": "codeFile",82 "uri": "http://scoreDefinitions/definitions/2e585929-9334-4db9-9f52-2dbc01fc6d0f"83 },84 "properties": {85 "outputLibraryName": "Public",86 "outputServerName": "cas-shared-default",87 "tableBaseName": "Code_file_9130_Test_1_Code_file_9130",88 "test": "true",89 "version": "1.0"90 },91 "version": 292 }93 ],94 "limit": 1,95 "links": [96 {97 "method": "GET",98 "rel": "collection",99 "href": "/scoreDefinitions/definitions",100 "uri": "/scoreDefinitions/definitions",101 "type": "application/vnd.sas.collection",102 "itemType": "application/vnd.sas.summary application/vnd.sas.score.definition"103 },104 {105 "method": "GET",106 "rel": "self",107 "href": "/scoreDefinitions/definitions?start=0&limit=1",108 "uri": "/scoreDefinitions/definitions?start=0&limit=1",109 "type": "application/vnd.sas.collection",110 "itemType": "application/vnd.sas.score.definition"111 },112 {113 "method": "GET",114 "rel": "next",115 "href": "/scoreDefinitions/definitions?start=1&limit=1",116 "uri": "/scoreDefinitions/definitions?start=1&limit=1",117 "type": "application/vnd.sas.collection",118 "itemType": "application/vnd.sas.score.definition"119 }120 ],121 "name": "scoreDefinitions",122 "start": 0,123 "version": 2124}
Name | Type | Required | Description |
---|---|---|---|
filter | string<filter-criteria> | false | The criteria used for filtering the score definitions. See Filtering in REST APIs. |
limit | integer<int32> | false | Returns the maximum number of score definitions. Default: 20 |
sortBy | string<sort-criteria> | false | The criteria used for sorting the score definitions. See Sorting in REST APIs. |
start | integer<int64> | false | Returns the index of the first score definition. Default: 0 |
Name | Type | Required | Description |
---|---|---|---|
Accept-Item | string<media-type> | false | Used for selecting the desired item representation. Allowed values: application/vnd.sas.score.definition+jsonapplication/vnd.sas.score.definition.summary+jsonapplication/vnd.sas.summary+json Default: application/vnd.sas.summary+json |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema |