Project

General

Profile

CoL2EDITWSAPI » History » Version 19

Cherian Mathew, 06/28/2012 04:23 PM

1 1 Cherian Mathew
2
# Web Services API for accessing CoL Checklist from a CDM Data Source
3
4
This wiki page describes the Web Service API which implements the specifications as mentioned [here](http://dev.e-taxonomy.eu/trac/wiki/CoL2EDITWebServices.)
5
6
7
{{>toc}}
8
9
10
11
## General
12
13
This section deals with general issues regarding the API Development
14
15 17 Cherian Mathew
16
### Status
17 16 Cherian Mathew
18
06/04/2012 : First version of CoL-CDM services installed on [[EDIT|Production Server http://dev.e-taxonomy.eu/cdmserver/col/]]
19
20 1 Cherian Mathew
21 2 Cherian Mathew
## To Do
22 1 Cherian Mathew
23
24
### Pager
25
26 5 Cherian Mathew
The [pager](http://dev.e-taxonomy.eu/trac/wiki/CoL2EDITWebServices#Paging) implementation for all specified services are yet to be developed.
27 1 Cherian Mathew
28
29 5 Cherian Mathew
## Notes
30 1 Cherian Mathew
31 5 Cherian Mathew
32 6 Cherian Mathew
### JSON Default
33 5 Cherian Mathew
34 18 Cherian Mathew
Even though the specification mentions JSON as the default view, the usual REST service request url practice is to include 'application/json' in the request 'Accept' header or set json as response type in the request url itself (e.g. http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue.json?query=Abies%20alba%20Mill.)
35 5 Cherian Mathew
36
37
38 1 Cherian Mathew
## Name String Search
39 6 Cherian Mathew
40
41
### Examples
42
43 19 Cherian Mathew
* Exact Name Search                     : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue.json?query=Abies%20alba
44 6 Cherian Mathew
45 18 Cherian Mathew
* Wildcard Name Search (Match Anywhere) : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue.json?query=*esculenta*
46 6 Cherian Mathew
47 18 Cherian Mathew
* Wildcard Name Search (Match Beginning): http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue.json?query=Abies%20alba*
48 6 Cherian Mathew
49 12 Cherian Mathew
* Wildcard Name Search (Match End)      : 
50 6 Cherian Mathew
51 19 Cherian Mathew
* Multiple Name Search Queries          : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue.json?query=Acacia%20esculenta&query=Abies%20alba
52 7 Cherian Mathew
53 6 Cherian Mathew
54
### To Do
55
56
57
### Notes
58
59 13 Cherian Mathew
* Could be interesting to add a list of name lsids in the response.
60 6 Cherian Mathew
61
62
63
## Name Information
64 2 Cherian Mathew
65 4 Cherian Mathew
66 1 Cherian Mathew
### Examples
67
68 18 Cherian Mathew
* Single Query                          : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue/name.json?nameUuid=cd4bc51f-ddcd-4e9c-aa02-4301fd78debf
69 4 Cherian Mathew
70 18 Cherian Mathew
* Multiple Query                        : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue/name.json?nameUuid=0d5e07b6-2646-4210-80e0-fcd449e26b57&nameUuid=cd4bc51f-ddcd-4e9c-aa02-4301fd78debf
71 1 Cherian Mathew
72
73 8 Cherian Mathew
### To Do
74 1 Cherian Mathew
75
76 8 Cherian Mathew
### Notes
77
78 15 Cherian Mathew
* At the moment taxon lsids are not included in the response in the case where the name uuid corresponds to a synonym. Would it be interesting to return taxon lsids of the accepted taxa (could be more than one) of this synonym ?
79 8 Cherian Mathew
80
81 14 Cherian Mathew
82 8 Cherian Mathew
## Taxon Information
83
84
85
### Examples
86
87 18 Cherian Mathew
* Single Query (Accepted Name)          : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue/taxon.json?taxonUuid=0fd48e3d-c6dc-44f5-aa47-ae294b6716eb
88 1 Cherian Mathew
89 18 Cherian Mathew
* Single Query (Synonym)                : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue/taxon.json?taxonUuid=425e45f5-c7ef-4b19-8245-5b642e91d74b
90 9 Cherian Mathew
91 18 Cherian Mathew
* Multiple Query                        : http://dev.e-taxonomy.eu/cdmserver/col/name_catalogue/taxon.json?taxonUuid=425e45f5-c7ef-4b19-8245-5b642e91d74b&taxonUuid=1c218146-954b-4458-a41b-6d7518e96898
92 8 Cherian Mathew
93
94 5 Cherian Mathew
### To Do
95
96
97
### Notes
98 14 Cherian Mathew
99
* At the moment, the classification map is not included when the taxon uuid corresponds to a synonym. Would it be correct to return classification maps of the accepted taxa (could be more than one) of this synonym ?
100
101 15 Cherian Mathew
* At the moment, for synonyms, only the list of accepted taxa are included in related taxa field in the response. Would it be interesting to include even the synonyms of these accepted taxa ?