Project

General

Profile

CoL2EDITWSAPI » History » Version 16

Cherian Mathew, 06/07/2012 05:17 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 16 Cherian Mathew
=== Status ==
16
17
06/04/2012 : First version of CoL-CDM services installed on [[EDIT|Production Server http://dev.e-taxonomy.eu/cdmserver/col/]]
18
19 1 Cherian Mathew
20 2 Cherian Mathew
## To Do
21 1 Cherian Mathew
22
23
### Pager
24
25 5 Cherian Mathew
The [pager](http://dev.e-taxonomy.eu/trac/wiki/CoL2EDITWebServices#Paging) implementation for all specified services are yet to be developed.
26 1 Cherian Mathew
27
28 5 Cherian Mathew
## Notes
29 1 Cherian Mathew
30 5 Cherian Mathew
31 6 Cherian Mathew
### JSON Default
32 5 Cherian Mathew
33 11 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://160.45.63.201:8080/col/name_catalogue.json?query=Abies%20alba%20Mill.)
34 5 Cherian Mathew
35
36
37 1 Cherian Mathew
## Name String Search
38 6 Cherian Mathew
39
40
### Examples
41
42
* Exact Name Search                     : http://160.45.63.201:8080/col/name_catalogue.json?query=Abies%20alba%20Mill.
43
44 12 Cherian Mathew
* Wildcard Name Search (Match Anywhere) : http://160.45.63.201:8080/col/name_catalogue.json?query=*esculenta*
45 6 Cherian Mathew
46 12 Cherian Mathew
* Wildcard Name Search (Match Beginning): http://160.45.63.201:8080/col/name_catalogue.json?query=Abies%20alba*
47 6 Cherian Mathew
48 12 Cherian Mathew
* Wildcard Name Search (Match End)      : 
49 6 Cherian Mathew
50 7 Cherian Mathew
* Multiple Name Search Queries          : http://160.45.63.201:8080/col/name_catalogue.json?query=Acacia%20esculenta%20DC.&query=Abies%20alba%20Mill.
51
52 6 Cherian Mathew
53
### To Do
54
55
56
### Notes
57
58 13 Cherian Mathew
* Could be interesting to add a list of name lsids in the response.
59 6 Cherian Mathew
60
61
62
## Name Information
63 2 Cherian Mathew
64 4 Cherian Mathew
65 1 Cherian Mathew
### Examples
66
67 8 Cherian Mathew
* Single Query                          : http://160.45.63.201:8080/col/name_catalogue/name.json?nameUuid=cd4bc51f-ddcd-4e9c-aa02-4301fd78debf
68 4 Cherian Mathew
69 8 Cherian Mathew
* Multiple Query                        : http://160.45.63.201:8080/col/name_catalogue/name.json?nameUuid=0d5e07b6-2646-4210-80e0-fcd449e26b57&nameUuid=cd4bc51f-ddcd-4e9c-aa02-4301fd78debf
70 1 Cherian Mathew
71
72 8 Cherian Mathew
### To Do
73 1 Cherian Mathew
74
75 8 Cherian Mathew
### Notes
76
77 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 ?
78 8 Cherian Mathew
79
80 14 Cherian Mathew
81 8 Cherian Mathew
## Taxon Information
82
83
84
### Examples
85
86 9 Cherian Mathew
* Single Query (Accepted Name)          : http://160.45.63.201:8080/col/name_catalogue/taxon.json?taxonUuid=0fd48e3d-c6dc-44f5-aa47-ae294b6716eb
87 1 Cherian Mathew
88 9 Cherian Mathew
* Single Query (Synonym)                : http://160.45.63.201:8080/col/name_catalogue/taxon.json?taxonUuid=425e45f5-c7ef-4b19-8245-5b642e91d74b
89
90
* Multiple Query                        : http://160.45.63.201:8080/col/name_catalogue/taxon.json?taxonUuid=425e45f5-c7ef-4b19-8245-5b642e91d74b&taxonUuid=1c218146-954b-4458-a41b-6d7518e96898
91 8 Cherian Mathew
92
93 5 Cherian Mathew
### To Do
94
95
96
### Notes
97 14 Cherian Mathew
98
* 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 ?
99
100 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 ?