Project

General

Profile

CdmRestServices2 » History » Version 38

Andreas Kohlbecker, 07/22/2009 11:09 AM

1 1 Andreas Kohlbecker
{{>toc}}
2
3
4
5 36 Andreas Kohlbecker
_Implementation notes are found in [[CdmRestServicesImplementationNotes]]._
6 1 Andreas Kohlbecker
7
8 36 Andreas Kohlbecker
9
----
10
11
12
13 2 Andreas Kohlbecker
# CDM REST Services 2.0
14 1 Andreas Kohlbecker
15
16 4 Andreas Kohlbecker
The CDM REST Services are a web based interface to resources stored in a [[CommunityServer|CDM Community Server]]. The RESTful architecture allows accessing the various resources like Taxa, Names, References, Media, etc by stable URIs. Due to security constraints and to assure the integration of data, currently only read operations (= HTTP GET) are permitted, write operations will be available in the near future.
17 1 Andreas Kohlbecker
18 3 Andreas Kohlbecker
19 16 Andreas Kohlbecker
In contrast to the former [[CdmRestServices1|CDM REST Services 1.0]] the new architecture directly exposes domain model entities. Whereas the version 1.0 still was build using the  [DTO/Assembler pattern](http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html)  the new implementation provides direct serializations of the objects as they are stored in the CDM where ever possible. For the external representations, like LSIDs and TDWG data exchange schema like TCS however using DTOs is unavoidable. Now for the **API Service** there is no longer a difference between the data model used to store and manage CDM objects and another one used to transfer them to web based clients. Thereby it has become much easier to use the web service. The same account also for the **Portal Service** except that this service adds some fields like localized representations and to the pure CDM entities.
20 3 Andreas Kohlbecker
21 1 Andreas Kohlbecker
22
23 16 Andreas Kohlbecker
## Service Sections
24 1 Andreas Kohlbecker
25 16 Andreas Kohlbecker
26
The CDM REST Services architecture is functionally separated into tree different parts:
27
28
29 18 Andreas Kohlbecker
* The **API Service** a clean RESTful bit, which will expose data in a modular, normalized way. It is a more-or-less one-to-one concordance between URIs and service api methods.
30 16 Andreas Kohlbecker
31 18 Andreas Kohlbecker
* The **Portal Service** which is specially taliored for the needs of dataportals which will primarily display "Species Page". Thus this service will be provide denormalized pages which contain a specific assemblys of information. 
32 1 Andreas Kohlbecker
33 18 Andreas Kohlbecker
* The **Portal Taxonomy Service** delivering the taxonomic classification tree.
34 16 Andreas Kohlbecker
35 19 Andreas Kohlbecker
* The **External Service** services supporting non CDM applications and services like for example a map generation service, LSID Services.
36 18 Andreas Kohlbecker
37 16 Andreas Kohlbecker
 
38 17 Andreas Kohlbecker
Detailed descriptions of the services are available [[CdmRestServices2#ServiceDescriptions|below]].
39 16 Andreas Kohlbecker
40
41
42 1 Andreas Kohlbecker
## Object Boundaries
43 14 Andreas Kohlbecker
44 1 Andreas Kohlbecker
45 16 Andreas Kohlbecker
Nearly all CDM entities are related to each other more or less dicrectly or indirectly and thus forming a huge object graph. A web services however should only deliver a specific object perhaps with some attached associated objects, so it id crucial to draw the line quite sensible between the objects in question and the full object graph. The CDM Service solves this by selectively initializing CDM entities.
46 1 Andreas Kohlbecker
47
48 27 Andreas Kohlbecker
The primary idea is that the **API Service** delivers the requested object with all its *toOne relations. Associated objects of the requested object which are at the many side of the *toMany relations are available through URIs which map the fieldname of the *toMany relation. Transient fields are not serialized. 
49 14 Andreas Kohlbecker
50 18 Andreas Kohlbecker
51 1 Andreas Kohlbecker
In contrast the *Portal Service*, often adds *toMany relations and transient fields to the requested objects. It even may deliver sub object graphs with a depth to about ten levels for specific branches.
52 19 Andreas Kohlbecker
53
54 26 Andreas Kohlbecker
The extend of objects, i.e the initialization depth of CDM entities is documented in the [[CdmRestServices2#ServiceDescriptions|ServiceDescriptions]] below. The extend is explained using a _property path syntax_ which indicates the properties and transient getters of a specific CDM entity bean which are being initialized by the service. 
55 16 Andreas Kohlbecker
56 1 Andreas Kohlbecker
57 20 Andreas Kohlbecker
* Simple (name) - The specified name identifies an individual property of a particular CDM entity bean. The name of the actual getter method is determined using standard JavaBeans instrospection, so that a property named "xyz" will have a getter method named getXyz() or (for boolean properties only) isXyz(), and a setter method named setXyz().
58 1 Andreas Kohlbecker
59 20 Andreas Kohlbecker
* Nested (name1.name2.name3) The first name element is used to select a property getter, as for simple references above. The object returned for this property is then consulted, using the same approach, for a property getter for a property named name2, and so on. The property value that is ultimately retrieved or modified is the one identified by the last name element.
60 1 Andreas Kohlbecker
61 20 Andreas Kohlbecker
* Indexed (name[index]) - The underlying property value is assumed to be an array, or this JavaBean is assumed to have indexed property getter and setter methods. The appropriate (zero-relative) entry in the array is selected. List objects are now also supported for read/write. You simply need to define a getter that returns the List
62
63 22 Andreas Kohlbecker
* *toOne-Wildcard ($) This wildcard is used to select all property getters which reference to one associated bean. A wildcard subsequently terminates a 'property path'.
64 20 Andreas Kohlbecker
65 22 Andreas Kohlbecker
* *toAny-Wildcard (*) This wildcard is used to select all property getters which reference to one associated bean and to to many associated bean. A wildcard subsequently terminates a 'property path'.
66 1 Andreas Kohlbecker
67 23 Andreas Kohlbecker
* Combined (name1.name2[index].$) - Combining mapped, nested, and indexed and wildcard references is also supported.
68
69 1 Andreas Kohlbecker
	
70 26 Andreas Kohlbecker
~This syntax description partially is lend from  [Apache Commons BeanUtils](http://commons.apache.org/beanutils/commons-beanutils-1.7.0/docs/api/org/apache/commons/beanutils/PropertyUtilsBean.html) ~
71
72
73 27 Andreas Kohlbecker
In fact the actual extend of serialized CDM entities may exceed the extend indicated by the property path syntax. This especially happens when a transient getter is to be initialized. Due to potential internal logic in the transient getter it is unpredictable which properties actually are being initialized when only looking at the property path. A common candidate for this is the `getTaggedName()` property of source:"trunk/cdmlib/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonNameBase.java".
74 26 Andreas Kohlbecker
75 1 Andreas Kohlbecker
76
77 24 Andreas Kohlbecker
*Developer Hints*:
78 20 Andreas Kohlbecker
79 22 Andreas Kohlbecker
80 24 Andreas Kohlbecker
The initialization od CDM entities is performed by implementations of the  source:"trunk/cdmlib/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/BeanInitializer.java" Interface.
81 20 Andreas Kohlbecker
82
83
84
85 6 Andreas Kohlbecker
## Content Negotiation
86
87
88
There are two ways to demand a special content type:
89
90
91
1. by file extension (*.json or *.xml)
92
93 9 Andreas Kohlbecker
1. by  [Accept HTTP request header](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) #sec14.1 - Accepted mime types are: `application/json@, @text/xml`    
94 6 Andreas Kohlbecker
95
1. Default: XML
96
97
98 12 Andreas Kohlbecker
The [[CdmRestServices2|CDM REST Services 2.0]] primarily trys using the file extension, then the Accept HTTP request header is taken into account. If whether the file extension or not the  Accept HTTP request header specify valid content types the default XML will be used. 
99 6 Andreas Kohlbecker
100
101 1 Andreas Kohlbecker
 **Developer Hints** 
102 7 Andreas Kohlbecker
103
104
Classes involved in Content Negotiation:
105
106 6 Andreas Kohlbecker
107 11 Andreas Kohlbecker
* source:"trunk/cdmlib/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/interceptor/ContentNegociationHandlerInterceptor.java"
108 8 Andreas Kohlbecker
109 9 Andreas Kohlbecker
Configuration in: 
110 8 Andreas Kohlbecker
111 6 Andreas Kohlbecker
* source:"trunk/cdmlib/cdmlib-remote/src/main/webapp/WEB-INF/cdmrest-servlet.xml#L24"
112
113
114 1 Andreas Kohlbecker
115
## Localization
116
117 12 Andreas Kohlbecker
118 20 Andreas Kohlbecker
I order to provide the client with localized resources some services respect the  [Accept-Language HTTP header](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html) #sec14.4.
119 12 Andreas Kohlbecker
120
For example the Portal service returns localized representations according to the Language tags supplied in the  Accept-Language HTTP header. For each single CDM entity having language dependent representation (see:  source:"trunk/cdmlib/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/model/common/Representation.java" or source:"trunk/cdmlib/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/model/common/MultilanguageText.java")
121
122 11 Andreas Kohlbecker
the service tries finding the best matching representation. If no representation in any preferred language is found the service falls back to return the representation in source:"trunk/cdmlib/cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/Language.java#L126" and if necessary further falls back to return the first representation found if any exists.
123 1 Andreas Kohlbecker
124
125 12 Andreas Kohlbecker
Please see below for detailed information on how and whether localization is handled by the different service sections.
126
127
128 11 Andreas Kohlbecker
129 9 Andreas Kohlbecker
 **Developer Hints** 
130
131
132 6 Andreas Kohlbecker
133
Classes involved in Content Negotiation:
134
135
136
* source:"trunk/cdmlib/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/interceptor/LocaleContextHandlerInterceptor.java"
137 5 Andreas Kohlbecker
138 3 Andreas Kohlbecker
Configuration in: 
139 1 Andreas Kohlbecker
140
* -- not necessary --
141
142
143 10 Andreas Kohlbecker
144 1 Andreas Kohlbecker
145 14 Andreas Kohlbecker
## Character Encoding
146 1 Andreas Kohlbecker
147 14 Andreas Kohlbecker
148 10 Andreas Kohlbecker
All data is returned in UTF-8 character encoding.
149 14 Andreas Kohlbecker
150 10 Andreas Kohlbecker
151 16 Andreas Kohlbecker
152 1 Andreas Kohlbecker
## Service Descriptions
153
154
155 36 Andreas Kohlbecker
The syntax of the mapped service URIs contains the the {datasource-name} path element. The available {datasource-name}s are defined in a configuration file which is loaded by the UpdatableRoutingDataSource. By default the "datasources.xml" in @ {USER_HOME}./cdmLibrary @ is being used (for details please refer to [[WebserviceDeployment]]). If the UpdatableRoutingDataSource is not being used in the actual application context, any arbitrary {datasource-name} may be used.
156 28 Andreas Kohlbecker
157
158 25 Andreas Kohlbecker
159 1 Andreas Kohlbecker
160
### API Service
161
162
163 36 Andreas Kohlbecker
The are a clean RESTful webservice, which will expose data in a modular, normalized way. 
164 1 Andreas Kohlbecker
165 36 Andreas Kohlbecker
It is a more-or-less one-to-one concordance between URIs and service api methods. 
166 1 Andreas Kohlbecker
167 36 Andreas Kohlbecker
Due to its generic architecture the URIs are also generic and follow a common pattern which is repeated in each controller. 
168 1 Andreas Kohlbecker
169 36 Andreas Kohlbecker
In the following the generic URIs are documented first followed by type specific implementations.
170 1 Andreas Kohlbecker
171
172
173 38 Andreas Kohlbecker
In the URIs the pathelement {base-type} is used sometimens.
174 1 Andreas Kohlbecker
175
176 38 Andreas Kohlbecker
_Valid Values for {base-type} are_:
177
178
179 36 Andreas Kohlbecker
* *agent*: Service URIs returning AgentBase or sub type entities.
180 1 Andreas Kohlbecker
181 36 Andreas Kohlbecker
* *description*: Service URIs returning DescriptionBase or sub type entities. 
182 1 Andreas Kohlbecker
183 36 Andreas Kohlbecker
* *feature*: Service URIs returning DescriptionBase or sub type entities
184 1 Andreas Kohlbecker
185 36 Andreas Kohlbecker
* *media*: Service URIs returning Media or sub type entities
186 1 Andreas Kohlbecker
187 36 Andreas Kohlbecker
* *name*: Service URIs returning TaxonNameBase or sub type entities
188 1 Andreas Kohlbecker
189 36 Andreas Kohlbecker
* *occurrence*: Service URIs returning SpecimenOrObservationBase or sub type entities
190
191
* *reference*: Service URIs returning ReferenceBase or sub type entities
192
193
* *taxon*: Service URIs returning TaxonBase or sub type entities
194
195
* *term*: Service URIs returning DefinedTermBase or sub type entities
196
197
198
Most services are using the **default initialisation strategy** which is:
199
200
~~~
201
"$"
202
~~~
203
204
205
#### /{datasource-name}/{base-type}/
206
207
208
Depending on the URI parameters used, this service returns either a Pager on or a List of the {base-type} entities identified by the {uuid}. 
209
210
The returned {base-type} instances are initialized by the following strategy: DEFAULT_INIT_STRATEGY 
211 1 Andreas Kohlbecker
212 37 Andreas Kohlbecker
213 38 Andreas Kohlbecker
_URI Parameters to return a Pager_:
214 36 Andreas Kohlbecker
215 38 Andreas Kohlbecker
216 37 Andreas Kohlbecker
* _pageNumber_ the number of the page to be returned, the first page has the pageNumber = 1 - _optional parameter_ 
217
218 36 Andreas Kohlbecker
* _pageSize_ the maximum number of entities returned per page (can be null to return all entities in a single page) - _optional parameter_ 
219 37 Andreas Kohlbecker
220 1 Andreas Kohlbecker
* _type_  Further restricts the type of entities to be returned. If null the {base-type} is being used. - _optional parameter_ 
221 36 Andreas Kohlbecker
222
223 38 Andreas Kohlbecker
_URI Parameters to return a List_:
224 36 Andreas Kohlbecker
225
226 37 Andreas Kohlbecker
* _start_ The offset index from the start of the list. The first entity has the index = 0 - _required parameter_ _The start parameter is used to distinguish between the List and Pager variants!_
227 36 Andreas Kohlbecker
228 37 Andreas Kohlbecker
* _limit_ The maximum number of entities returned. - _optional parameter_ 
229 36 Andreas Kohlbecker
230 37 Andreas Kohlbecker
* _type_ Further restricts the type of entities to return. If null the base type <T> is being used. - _optional parameter_ 
231 36 Andreas Kohlbecker
232
233
234
#### /{datasource-name}/{base-type}/name/{uuid}
235
236
237
Get the {base-type} entity identified by the {uuid}. 
238
239
240
_Returns:_
241
242
243
The returned {base-type} entity is initialized by the default initialisation strategy. 
244
245
246
247
####  /{datasource-name}/{base-type}/name/{uuid}/annotation
248
249
250
Get the a Pager on the Annotations for the {base-type} entity identified by the {uuid}. 
251
252
253
_Returns:_
254
255
256
Pager on the Annotations for the {base-type} entity identified by the {uuid}. 
257
258
The returned {base-type} entity are initialized by the default initialisation strategy.
259 1 Andreas Kohlbecker
260
261
262 25 Andreas Kohlbecker
### Portal Service
263 28 Andreas Kohlbecker
264
265
266 35 Andreas Kohlbecker
#### /{datasource-name}/portal/name/{name-uuid}
267 28 Andreas Kohlbecker
268 35 Andreas Kohlbecker
269
The TaxonNameBase instance identified by the {name-uuid}. 
270
271
The returned TaxonNameBase is initialized by the following strategy 
272
273
274
~~~
275
~~~
276
277
278
#### /{datasource-name}/portal/name/{name-uuid}/descriptions
279
280
281
Get the list of TaxonNameDescriptions of the Name associated with the TaxonNameBase instance identified by the {name-uuid}.
282
283
284
_Returns:_
285
286
287
a List of TaxonNameDescription entities which are initialized using the following initialization strategy:
288
289
290
~~~
291
"uuid",
292
"feature",
293
"elements.$",
294
"elements.multilanguageText",
295
"elements.media.representations.parts"
296
~~~
297
298
299
#### /{datasource-name}/portal/name/{name-uuid}/typeDesignations
300
301
302
Get the list of TypeDesignationBases of the TaxonNameBase instance identified by the {name-uuid}. 
303
304
305
_Returns:_
306
307
308
a List of TypeDesignationBase entities which are initialized using the following initialization strategy:
309
310
311
~~~
312
"citation.authorTeam",
313
"typeName.$",
314
"typeName.taggedName",
315
"typeStatus.representations",
316
"typeSpecimen.media.representations.parts"
317
~~~
318
319
320
321
#### /{datasource-name}/portal/taxon/{taxon-uuid}
322
323
324
Get the TaxonBase instance identified by the {taxon-uuid}. 
325
326
The returned Taxon is initialized by the following strategy TAXON_INIT_STRATEGY 
327
328
 
329
~~~
330
"*",
331
"relationsToThisName.fromTaxon.name.taggedName",
332
"name.$",
333
"name.taggedName",
334
"name.rank.representations",
335
"name.status.type.representations",
336
"descriptions.elements.$",
337
"descriptions.elements.area",
338
"descriptions.elements.area.$",
339
"descriptions.elements.multilanguageText",
340
"descriptions.elements.media.representations.parts",
341
~~~
342
343
344 28 Andreas Kohlbecker
#### /{datasource-name}/portal/taxon/find
345
346
347
Find Taxa, Synonyms, Common Names by name, either globally or in a specific geographic area. 
348
349
350 29 Andreas Kohlbecker
_URI Parameters:_
351 1 Andreas Kohlbecker
352 29 Andreas Kohlbecker
353 33 Andreas Kohlbecker
* **query** the string to query for. Since the wildcard character '*' internally always is appended to the query string, a search always compares the query string with the beginning of a name. - _required parameter_
354 28 Andreas Kohlbecker
355 33 Andreas Kohlbecker
* **treeUuid** the UUID of a TaxonomicTree to which the search is to be restricted. - _optional parameter_
356 28 Andreas Kohlbecker
357 33 Andreas Kohlbecker
* **areas** restrict the search to a set of geographic NamedAreas. The parameter currently takes a list of TDWG area labels.  - _optional parameter_
358 28 Andreas Kohlbecker
359 33 Andreas Kohlbecker
* **page** the number of the page to be returned, the first page has the pageNumber = 1 - _optional parameter_
360 28 Andreas Kohlbecker
361 33 Andreas Kohlbecker
* **pageSize** the maximum number of entities returned per page (can be null to return all entities in a single page) - _optional parameter_
362 28 Andreas Kohlbecker
363 33 Andreas Kohlbecker
* **doTaxa** weather to search for instances of Taxon - _optional parameter_
364 28 Andreas Kohlbecker
365 33 Andreas Kohlbecker
* **doSynonyms** weather to search for instances of Synonym - _optional parameter_
366 28 Andreas Kohlbecker
367 33 Andreas Kohlbecker
* **doTaxaByCommonNames** for instances of Taxon by a common name used - _optional parameter_
368 28 Andreas Kohlbecker
369
 
370
_Returns:_
371
372
373
a pager on a list of IdentifiableEntitys initialized by the following strategy:
374
375
376
~~~
377
"*",
378
"relationsToThisName.fromTaxon.name.taggedName",
379
"name.$",
380
"name.taggedName",
381
"name.rank.representations",
382
"name.status.type.representations"
383
~~~
384 25 Andreas Kohlbecker
385
386 31 Andreas Kohlbecker
#### /{datasource-name}/portal/taxon/{taxon-uuid}/synonymy
387
388
389
Get the synonymy for a taxon identified by the {taxon-uuid}. The synonymy consists of two parts: The group of homotypic synonyms of the taxon and the heterotypic synonymy groups of the taxon. The synonymy is ordered historically by the type designations and by the publication date of the nomenclatural reference 
390
391
392
_Returns:_
393
394
395
a Map with to entries which are mapped by the following keys: "homotypicSynonymsByHomotypicGroup", "heterotypicSynonymyGroups", containing lists of Synonyms which are initialized using the following initialization strategy:
396
397
398
~~~
399 32 Andreas Kohlbecker
"synonymRelations.$",
400
"synonymRelations.synonym.$",
401
"synonymRelations.synonym.name.taggedName",
402
"synonymRelations.synonym.name.nomenclaturalReference.inBook.authorTeam",
403
"synonymRelations.synonym.name.nomenclaturalReference.inJournal",
404
"synonymRelations.synonym.name.nomenclaturalReference.inProceedings",
405
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.$",
406
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.name.taggedName",
407
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.taxonBases.$",
408
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.taxonBases.name.taggedName",
409
410
"name.homotypicalGroup.$",
411
"name.homotypicalGroup.typifiedNames.$",
412
"name.homotypicalGroup.typifiedNames.name.taggedName",
413
414
"name.homotypicalGroup.typifiedNames.taxonBases.$",
415
"name.homotypicalGroup.typifiedNames.taxonBases.name.taggedName"
416
~~~
417
418
419
#### /{datasource-name}/portal/taxon/{taxon-uuid}/accepted
420
421
422
Get the list of accepted Taxon entities for a given TaxonBase instance identified by the {taxon-uuid}. 
423
424
425
_URI Parameters:_
426
427
428
* **page** the number of the page to be returned, the first page has the pageNumber = 1
429
430
* **pageSize** the maximum number of entities returned per page (can be null to return all entities in a single page)
431
432
433
 _Returns:_
434
435
436
a Pager on a list of Taxon entities which are initialized using the following initialization strategy:
437
438
439
~~~
440
"synonymRelations.$",
441
"synonymRelations.synonym.$",
442
"synonymRelations.synonym.name.taggedName",
443
"synonymRelations.synonym.name.nomenclaturalReference.inBook.authorTeam",
444
"synonymRelations.synonym.name.nomenclaturalReference.inJournal",
445
"synonymRelations.synonym.name.nomenclaturalReference.inProceedings",
446
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.$",
447
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.name.taggedName",
448
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.taxonBases.$",
449
"synonymRelations.synonym.name.homotypicalGroup.typifiedNames.taxonBases.name.taggedName",
450
451
"name.homotypicalGroup.$",
452
"name.homotypicalGroup.typifiedNames.$",
453
"name.homotypicalGroup.typifiedNames.name.taggedName",
454
455
"name.homotypicalGroup.typifiedNames.taxonBases.$",
456
"name.homotypicalGroup.typifiedNames.taxonBases.name.taggedName"
457
~~~
458
459
460
####  /{datasource-name}/portal/taxon/{taxon-uuid}/taxonRelationships
461
462
463
Get the list of TaxonRelationships for the given TaxonBase instance identified by the {taxon-uuid}. 
464
465
466
_Returns:_
467
468
469
a List of TaxonRelationship entities which are initialized using the following initialization strategy:
470
471
472
~~~
473
"$",
474
"type.inverseRepresentations",
475
"fromTaxon.sec.authorTeam",
476
"fromTaxon.name.taggedName"
477
~~~
478
479
480
#### /{datasource-name}/portal/taxon/{taxon-uuid}/nameRelationships
481
482
483
Get the list of NameRelationships of the Name associated with the TaxonBase instance identified by the {taxon-uuid}. 
484
485
486
_Returns:_
487
488
489
a List of NameRelationship entities which are initialized using the following initialization strategy:
490
491
492
~~~
493
"$",
494
"type.inverseRepresentations",
495
"fromName.taggedName"
496
~~~
497
498
499
#### /{datasource-name}/portal/taxon/{taxon-uuid}/nameTypeDesignations
500
501
502
Get the list of TypeDesignationBases of the TaxonBase instance identified by the {taxon-uuid}. 
503
504
505
_Returns:_
506
507
508
a List of TypeDesignationBase entities which are initialized using the following initialization strategy:
509
510
:
511
512
513
~~~
514
"typeSpecimen.$",
515
"typeStatus.representations",
516
"citation.authorTeam",
517
"typeName.taggedName"
518
~~~
519
520 1 Andreas Kohlbecker
521 32 Andreas Kohlbecker
#### /{datasource-name}/portal/taxon/{taxon-uuid}/descriptions
522
523
524
Get the list of TaxonDescriptions of the Taxon instance identified by the {taxon-uuid}. 
525
526
527 1 Andreas Kohlbecker
_Returns:_
528 32 Andreas Kohlbecker
529
530
a List of TaxonDescription entities which are initialized using the following initialization strategy:
531
532
533
~~~
534
"$",
535
"elements.$",
536
"elements.citation.authorTeam",
537
"elements.multilanguageText",
538
"elements.media.representations.parts"
539
~~~
540
541
542 35 Andreas Kohlbecker
#### /{datasource-name}/portal/name/{taxon-uuid}/media/{mime type list}/{size}[,[widthOrDuration}][,{height}]/ 
543 32 Andreas Kohlbecker
544
545
Get the list of TaxonDescriptions of the Taxon instance identified by the {taxon-uuid}. 
546
547
548
_Usage:_
549
550 35 Andreas Kohlbecker
 /{datasource-name}/portal/name/{taxon-uuid}/media/{mime type list}/{size}[,[widthOrDuration}][,{height}]/ 
551 32 Andreas Kohlbecker
552
 
553
_Whereas_ 
554
555
* *{mime type list}*: a comma separated list of mime types, in the order of preference. The forward slashes contained in the mime types must be replaced by a colon. Regular expressions can be used. Each media associated with this given taxon is being searched whereas the first matching mime type matching a representation always rules. 
556
557
* *{size}*,*{widthOrDuration}*,*{height}*: (not jet implemented) valid values are an integer or the asterisk '*' as a wildcard 
558
559
560
_Returns:_
561
562
563
a List of Media entities which are initialized using the following initialization strategy:
564
565
566
~~~
567
"$",
568
"elements.$",
569
"elements.citation.authorTeam",
570
"elements.multilanguageText",
571
"elements.media.representations.parts"
572 31 Andreas Kohlbecker
~~~
573
574 25 Andreas Kohlbecker
575
### Portal Taxonomy Service
576
577
578
579
### External Service