INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: What does the version parameter in MCWS do?  (Read 1001 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
What does the version parameter in MCWS do?
« on: January 01, 2018, 07:20:08 am »

Some MCWS endpoints (e.g. Browse/Children, Library/Values) accept a parameter named version which is described as

Code: [Select]
Version: The version of the data used for results (2 is the newest version). (default: 1)

I have tried 1 and 2 on a few calls and I can see that using Version=2 means the output from Browse/Children gains an attribute Type="2" , i.e.

Version = 1
Code: [Select]
<Response Status="OK">
<Item Name="(Multiple Artists)">1044</Item>

Version = 2
Code: [Select]
<Response Status="OK">
<Item Name="(Multiple Artists)" Type="2">1044</Item>

What does this mean? The output doesn't seem to vary in any other way.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72446
  • Where did I put my teeth?
Re: What does the version parameter in MCWS do?
« Reply #1 on: January 01, 2018, 08:22:28 am »

It may mean the database version.  MC21 and earlier used one version.  MC22 and later used another.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10944
Re: What does the version parameter in MCWS do?
« Reply #2 on: January 01, 2018, 11:05:00 am »

If the latest version is not the default, it's usually an experiment to expose some incompatible data or something like that. I'm not quite sure about the exact call in question however.
Logged
~ nevcairiel
~ Author of LAV Filters

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: What does the version parameter in MCWS do?
« Reply #3 on: January 01, 2018, 03:34:39 pm »

OK thanks, I guess I can just ignore it then (and use the default).
Logged
Pages: [1]   Go Up