Get module source

get/modules/{moduleId}/source
Internal-Use Only

Returns the source code of the specified module.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "up",
6 "href": "/microanalyticScore/modules/samplemodule",
7 "uri": "/microanalyticScore/modules/samplemodule",
8 "type": "application/vnd.sas.microanalytic.module"
9 },
10 {
11 "method": "GET",
12 "rel": "self",
13 "href": "/microanalyticScore/modules/samplemodule/source",
14 "uri": "/microanalyticScore/modules/samplemodule/source",
15 "type": "application/vnd.sas.microanalytic.module.source"
16 },
17 {
18 "method": "PUT",
19 "rel": "update",
20 "href": "/microanalyticScore/modules/samplemodule/source",
21 "uri": "/microanalyticScore/modules/samplemodule/source",
22 "type": "application/vnd.sas.microanalytic.module.source",
23 "responseType": "application/vnd.sas.microanalytic.module.source"
24 }
25 ],
26 "version": 2,
27 "createdBy": "sasdemo",
28 "creationTimeStamp": "2022-03-15T21:19:04.286Z",
29 "modifiedBy": "sasdemo",
30 "modifiedTimeStamp": "2022-03-15T21:19:04.286Z",
31 "moduleId": "samplemodule",
32 "source": "ds2_options sas; package sampleModule / overwrite=yes; method copy_charN_array(char(12) in_array[4], in_out char(12) out_array[4]); out_array := in_array; end; method copy_varchar_array(varchar(512) in_array[3], in_out varchar out_array[3]); out_array := in_array; end; method copy_int_array(int in_array[5], in_out int out_array[5]); out_array := in_array; end; method copy_float_array(double in_array[2], in_out double out_array[2]); out_array := in_array; end; method copy_bigint_array(bigint in_array[1], in_out bigint out_array[1]); out_array := in_array; end; method copy_arrays(char(12) in_charN_array[4], varchar(512) in_varchar_array[1], int in_int_array[5], double in_double_array[2], bigint in_bigint_array[1], in_out char(12) out_charN_array[4], in_out varchar(512) out_varchar_array[1], in_out int out_int_array[5], in_out double out_double_array[2], in_out bigint out_bigint_array[1]); copy_charN_array(in_charN_array, out_charN_array); copy_int_array(in_int_array, out_int_array); copy_float_array(in_double_array, out_double_array); copy_bigint_array(in_bigint_array, out_bigint_array); end; endpackage;"
33}

Path Parameters

NameTypeRequiredDescription
moduleId
string
true

The identifier of the module that contains the source code.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
404Not FoundThe requested module could not be found.Schema