mirror of https://github.com/apache/archiva.git
fix typo use https as http service looks to failed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1174579 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce6b348cc8
commit
26f551c76b
|
@ -30,41 +30,41 @@ Using REST Services
|
|||
|
||||
Starting version 1.4, you can use some REST Services to manage your Apache Archiva instance and Search artifacts.
|
||||
All samples here will use Apache CXF REST client API. By the way you can use some others REST client frameworks.
|
||||
NOTE: a wadl is available in your Archiva instance : http(s)://ip:port/..//restServices/application.wadl
|
||||
NOTE: a wadl is available in your Archiva instance : http(s)://ip:port/../restServices/application.wadl
|
||||
|
||||
* Search Service
|
||||
|
||||
Authentication headers for connect to your Archiva instance :
|
||||
|
||||
%{snippet|id=authz-header|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
|
||||
%{snippet|id=authz-header|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
|
||||
|
||||
|
||||
Get a Search Service Client :
|
||||
|
||||
%{snippet|id=cxf-searchservice-creation|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
|
||||
%{snippet|id=cxf-searchservice-creation|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/AbstractArchivaRestTest.java}
|
||||
|
||||
Quick Search
|
||||
|
||||
%{snippet|id=quick-search|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
%{snippet|id=quick-search|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
|
||||
Search Artifacts Version : to search all availables version with a groupId and artifactId and packaging (if empty jar is used)
|
||||
|
||||
%{snippet|id=searchservice-artifact-versions|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
%{snippet|id=searchservice-artifact-versions|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
|
||||
Search Service with a classifier :
|
||||
|
||||
%{snippet|id=searchservice-with-classifier|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
%{snippet|id=searchservice-with-classifier|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
|
||||
Search Service with a classifier :
|
||||
|
||||
%{snippet|id=searchservice-with-classifier|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
%{snippet|id=searchservice-with-classifier|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/SearchServiceTest.java}
|
||||
|
||||
Copy Artifact from a repository to an other one :
|
||||
|
||||
For some reasons you want to use a test repository before moving your artifacts to a repository used by final users.
|
||||
To achieve this, you can use a service which can copy an artifact from a repository to an other one
|
||||
|
||||
%{snippet|id=copy-artifact-with-classifier|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/CopyArtifactTest.java}
|
||||
%{snippet|id=copy-artifact|url=https://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/CopyArtifactTest.java}
|
||||
|
||||
|
||||
To know all the possible options, you can refer to the javadoc of SearchRequest class.
|
||||
|
|
Loading…
Reference in New Issue