erasmus-without-paper / ewp-specs-api-omobility-las

Learning Agreements
MIT License
1 stars 2 forks source link

Where is mobility_type defined? #42

Closed JoepDemey closed 1 year ago

JoepDemey commented 1 year ago

For the index api, an optional parameter mobility type is described:

mobility_type (optional) One of the following mobility types: blended, doctoral, semester. If given, then the server MUST return learning agreements only of the specified type.

But where is this mobility type defined? Is it a property of an Outgoing Mobility Learning Agreement? There is no sign of it in the get response.

kamil-olszewski-uw commented 1 year ago

These three types are defined in official LA template. The type of mobility is indicated by the contents of the ListOf_Components type in get response:

https://github.com/erasmus-without-paper/ewp-specs-api-omobility-las/blob/a32032c400bda3e1a7e9e550b93fcdba4ded1627/endpoints/get-response.xsd#L530

There is no separte property for mobility type, as it would be redundant to the lists of components and would require the client to validate property against component lists.

JoepDemey commented 1 year ago

Ok, thank you. The types defined on the ListOf_Components are: component-studied component-recognized virtual-component blended-mobility-component short-term-doctoral-component

So what is the mapping? blended => blended-mobility-component doctoral => short-term-doctoral-component semester => component-studied, component-recognized and virtual-component

Is that correct?

kamil-olszewski-uw commented 1 year ago

Yes, that's correct.