简体   繁体   中英

Archiva REST-API

I'm trying to get the latest version of an artifact. going to http://archiva:8080/restServices shows me the Available RESTful services: clicking on http://archiva:8080/restServices/archivaServices?_wadl leads to an empty(all white) page fore me. Opening the Development tools in my browser I get this output in the javascript-console

Failed to load resource: the server responded with a status of 404 (Not Found)

and

GET http://archiva:8080/restServices/archivaServices?_wadl 404 (Not Found)

I also read here that there should be a application.wadl but for me there isn't!

I use the latest(2.2.1) Standalone version from here

the request for a certain artifact looks like that

http://archiva:8080/restServices/archivaServices/searchService/artifact?g=eu.test&a=test&v=LATEST

Maybe you miss the contextPath in the url. For example, if you want to access the ping service. The url could be: http://localhost:8080/archiva/restServices/archivaServices/pingService/ping . Please notice that maybe you will get 403 due to by default archiva does not allow csrf access. The configruation detail is: http://archiva.apache.org/docs/2.2.3/adminguide/customising-security.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM