Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-8800

Inline rest documentation of search queries is not correct

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5-rc-1
    • Fix Version/s: 4.5
    • Component/s: REST
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When going on the rest wiki resource you get the following documentation:

      <searchResults xmlns="http://www.xwiki.org"
       template="http://localhost:7080/xwiki/rest/wikis/xwiki/query?q={query}
       (&type={xwql,hql,lucene})(&number={number})(&start={start})
       (&orderfield={fieldname}(&order={asc|desc}))(&distinct=1)
       (&prettynames={false|true})(&wikis={wikis})(&classname={classname})">
      

      But the "orderField", "prettyNames" and "className" fields are case sensitive, so the documentation is incorrect.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                ludovic Ludovic Dubost
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: