BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
AllanBowe
Barite | Level 11

The documentation describes `typeDefName` as follows:

 

> The type definition name of the file. If the file is associated with folder and the client does not provide the value of this parameter, the file-service tries to find the best possible value using type-registry service. If it fails to find a default value, it defaults to "file".

 

In order to enable the client to provide the correct value for this parameter, would it be possible to get the list of potential values?

 

Is the "type-registry" service documented / available to end users?

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
1 ACCEPTED SOLUTION

Accepted Solutions
sinasj
SAS Employee

The file service does the following query to the types-registry service, to get matching typeDefName

/types/types?filter=and(startsWith(name,file_),contains(mediaTypes,"xyz"))

 Let me know if this answers the question.

View solution in original post

3 REPLIES 3
joeFurbee
Community Manager

Hi @AllanBowe,

Happy New Year! I've posed the question to a developer. He's in the AP region, so I probably won't hear anything until tomorrow. I'll post the response here, once I get something back.

Thanks,

Joe


Join us for SAS Community Trivia
SAS Bowl XLIII, The New SAS Developer Portal
Wednesday, August 14, 2024, at 10 a.m. ET | #SASBowl

sinasj
SAS Employee

The file service does the following query to the types-registry service, to get matching typeDefName

/types/types?filter=and(startsWith(name,file_),contains(mediaTypes,"xyz"))

 Let me know if this answers the question.

AllanBowe
Barite | Level 11

Thanks both!

 

Yes it answers the question.  I've taken a dump of the types/types endpoint in case anyone else needs the same info: https://gist.github.com/allanbowe/32a47a78e386b3517dd22f292108f2f9

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1474 views
  • 2 likes
  • 3 in conversation