Changes between Version 1 and Version 2 of Ticket #2395


Ignore:
Timestamp:
Dec 3, 2020, 2:12:54 PM (4 years ago)
Author:
Bang Pham Huu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2395

    • Property Summary Petascope - rasql servlet returns result of SELECT RAS_COLLECTIONNAMES as a string new line separatedPetascope - rasql servlet returns metadata queries in JSON format with containerFormat=json
  • Ticket #2395 – Description

    v1 v2  
    1  In petascope community, this query to rasql servlert
     1In petascope, metadata queries to rasql servlert, e.g:
    22 {{{
    33 SELECT cols FROM RAS_COLLECTIONNAMES AS cols
    44 }}}
    55
    6  will return as multiparts, e.g:
    7 
    8 
    9  {{{
    10  Content-type: text/plain
    11 
    12  test_wcs_overlapping_null_value_explicitly_specify_general_recipe
    13  --End
    14  Content-type: text/plain
    15 
    16  test_CCI_V2_monthly_chlor_a
    17  --End
    18  Content-type: text/plain
    19 
    20  test_pre_hook_merge_3_bands
    21  --End
    22  Content-type: text/plain
    23 
    24  test_wcs_scientfic_null_value_with_trailing_zero
    25  --End
    26  Content-type: text/plain
    27 
    28  test_sequence_rule
    29  --End
    30 
    31  }}}
    32 
    33 It should return a string comma separated, e.g:
    34 
    35  {{{
    36  AvgTemperature
    37  ColorScaledAverage
    38  ChloroColorScaled,...
    39  }}}
     6returns `multipart` if `containerFormat=multipart/related` or omitted.
     7If `containerFormat=json` or `containerFormat=application/json` parameter is added, then the result is an JSON array returned.