[ https://issues.apache.org/jira/browse/KNOX-841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15881725#comment-15881725 ]
Richard Ding commented on KNOX-841: ----------------------------------- Hi [~lmccay], I got some time to test REST API. Here are some commands I run on a Sole 6.3 instance using SOLRAPI service: {code} Create a collection: $ curl -k -u guest:guest-password "https://gateway.host:8443/gateway/default/solr/solr/admin/collect=CREATE&name=my_collection&numShards=1&replicationFactor=1" Upload a file into a collection: $ curl -k -u guest:guest-password -X POST "https://gateway.host:8443/gateway/default/solr/solr/my_collection/update?commitWithin=1000&boost=1.0&overwrite=true&wt=json" -H "Content-Type:text/xml" --data-binary @hd.xml Query a collection: $ curl -k -u guest:guest-password "https://gateway.host:8443/gateway/default/solr/solr/my_collection/select?indent=on&q=*:*&wt=json" Delete a collection: $ curl -k -u guest:guest-password "https://gateway.host:8443/gateway/default/solr/solr/admin/collections?action=DELETE&name=my_collection" {code} The commands run successfully. Below are rewrite messages in the gateway log: {code} Rewrote URL: https://gateway.host:8443/gateway/default/solr/solr/admin/collections?action=CREATE&name=my_collection&numShards=1&replicationFactor=1, direction: IN via explicit rule: SOLRAPI/solr/inbound/query to URL: http://solr.host:8983/solr/admin/collections?replicationFactor=1&name=my_collection&action=CREATE&numShards=1 Rewrote URL: https://gateway.host:8443/gateway/default/solr/solr/my_collection/update?commitWithin=1000&boost=1.0&overwrite=true&wt=json, direction: IN via explicit rule: SOLRAPI/solr/inbound/query to URL: http://solr.host:8983/solr/my_collection/update?commitWithin=1000&boost=1.0&overwrite=true&wt=json Rewrote URL: https://gateway.host:8443/gateway/default/solr/solr/my_collection/select?indent=on&q=*:*&wt=json, direction: IN via explicit rule: SOLRAPI/solr/inbound/query to URL: http://solr.host:8983/solr/my_collection/select?q=*:*&indent=on&wt=json Rewrote URL: https://gateway.host:8443/gateway/default/solr/solr/admin/collections?action=DELETE&name=my_collection, direction: IN via explicit rule: SOLRAPI/solr/inbound/query to URL: http://solr.host:8983/solr/admin/collections?name=my_collection&action=DELETE {code} > Proxy support for Solr UI > ------------------------- > > Key: KNOX-841 > URL: https://issues.apache.org/jira/browse/KNOX-841 > Project: Apache Knox > Issue Type: New Feature > Components: Server > Affects Versions: 0.10.0 > Reporter: Richard Ding > Assignee: Richard Ding > Fix For: 0.12.0 > > Attachments: KNOX_841_1.patch, KNOX-841_2.patch, KNOX_841.patch, > Screen Shot 2017-02-05 at 3.01.20 PM.png > > > Provide proxy UI support for the Solr UI. -- This message was sent by Atlassian JIRA (v6.3.15#6346)