Difference between revisions of "App/API/Figure"
From mx Help Wiki
(Created page with 'stub') |
|||
Line 1: | Line 1: | ||
− | + | [[App/API | Back to API home]] | |
+ | |||
+ | == Description == | ||
+ | |||
+ | <nowiki>http:</nowiki>//''base_url''/api/'''figure'''/fig_<integer>.svg | ||
+ | |||
+ | Returns the svg document identified by the [App/figure | Figure] id in mx. | ||
+ | |||
+ | |||
+ | == Response (xml/svg) == | ||
+ | |||
+ | An svg document referencing an image an possible overlay. | ||
+ | |||
+ | == Example == | ||
+ | |||
+ | Request: | ||
+ | |||
+ | '''http://api.hymao.org/api/figure/fig_8448.svg''' | ||
+ | |||
+ | Response: | ||
+ | |||
+ | <pre style="padding:1em;"> | ||
+ | <?xml version="1.0" encoding="UTF-8"?> | ||
+ | <svg display="inline" xmlns:xlink="http://www.w3.org/1999/xlink" width="640" height="403" xmlns="http://www.w3.org/2000/svg" id="fig_svg_8448"> | ||
+ | <a xlink:href="" target="_blank"> | ||
+ | <image xlink:href="http://morphbank.net/?id=516672&imgType=jpg" id="someid" y="0" height="403" x="0" width="640"/> | ||
+ | <g id="markers_for_fig_8448" transform="scale(0.239073589839372)"> | ||
+ | <g fill="%2314eddd" display="inline" opacity="0.4" stroke-width="1" id="marker_39" stroke="%2314eddd"> | ||
+ | <g><path d='M254.167,988.889c1.758-3.82,3.461-3.434,5.436-3.355 c-6.773-6.391,17.703,15.555,17.583,12.959c5.83,3.363,16.559,20.396,18.772,23.559c2.219,3.174,7.582,7.24,11.089,9.006 c7.053,3.555,31.296,20.383,37.373,23.672c6.22,3.365,14.415,6.594,21.552,10.535c13.43,7.416,27.881,15.172,40.625,23.047 c0.581,1.846,8.379,12.26,10.069,17.244c0.928,2.74,4.91,12.414,5.675,15.16c2.425,1.662,17.622,54.605,14.467,64.008 c-1.796,5.35-4.918,25.791-6.198,28.508c-1.633,3.463-12.118,23.494-24.225,21.389c-5.843-5.852-26.636-27.289-30.694-34.779 c-5.257-9.701-8.618-19.881-14.6-28.662c-4.074-5.979-27.278-40.045-28.572-53.699c-20.579-24.287-33.483-49.266-49.979-73.604 c-3.497-1.002-19.558-26.84-20.079-28.557C255.618,992.787,258.518,1006.029,254.167,988.889z'/></g></g> | ||
+ | </g> | ||
+ | </a> | ||
+ | </svg> | ||
+ | </pre> |
Revision as of 14:51, 15 September 2011
Description
http://base_url/api/figure/fig_<integer>.svg
Returns the svg document identified by the [App/figure | Figure] id in mx.
Response (xml/svg)
An svg document referencing an image an possible overlay.
Example
Request:
http://api.hymao.org/api/figure/fig_8448.svg
Response:
<?xml version="1.0" encoding="UTF-8"?> <svg display="inline" xmlns:xlink="http://www.w3.org/1999/xlink" width="640" height="403" xmlns="http://www.w3.org/2000/svg" id="fig_svg_8448"> <a xlink:href="" target="_blank"> <image xlink:href="http://morphbank.net/?id=516672&imgType=jpg" id="someid" y="0" height="403" x="0" width="640"/> <g id="markers_for_fig_8448" transform="scale(0.239073589839372)"> <g fill="%2314eddd" display="inline" opacity="0.4" stroke-width="1" id="marker_39" stroke="%2314eddd"> <g><path d='M254.167,988.889c1.758-3.82,3.461-3.434,5.436-3.355 c-6.773-6.391,17.703,15.555,17.583,12.959c5.83,3.363,16.559,20.396,18.772,23.559c2.219,3.174,7.582,7.24,11.089,9.006 c7.053,3.555,31.296,20.383,37.373,23.672c6.22,3.365,14.415,6.594,21.552,10.535c13.43,7.416,27.881,15.172,40.625,23.047 c0.581,1.846,8.379,12.26,10.069,17.244c0.928,2.74,4.91,12.414,5.675,15.16c2.425,1.662,17.622,54.605,14.467,64.008 c-1.796,5.35-4.918,25.791-6.198,28.508c-1.633,3.463-12.118,23.494-24.225,21.389c-5.843-5.852-26.636-27.289-30.694-34.779 c-5.257-9.701-8.618-19.881-14.6-28.662c-4.074-5.979-27.278-40.045-28.572-53.699c-20.579-24.287-33.483-49.266-49.979-73.604 c-3.497-1.002-19.558-26.84-20.079-28.557C255.618,992.787,258.518,1006.029,254.167,988.889z'/></g></g> </g> </a> </svg>