Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Download packages based on Metadata



  • I want search and download for a known package(s) that has the name and custom metatdata of _skintype : “purplecarrot”?

    How would I do that?

    Product: ProGet
    Version: 4.7.12



  • This isn't part of the API, but it sounds like it would be a good addition. Performance might be an issue with lots of packages when searching custom properties due to indexing limitations, but it still could be a worthwhile API.

    Right now, you can request metadata for all of the packages and search for the property there. Not a great solution, but it may be enough for now. (see API docs here)



  • I forgot to add-- feel free to submit a feature request to our public YouTrack instance at https://inedo.myjetbrains.com if you would like.



  • Thanks Dean. Ultimately - when I saw that custom metadata could be added to universal packages - I wanted to use that to filter my downloads so that I could automate package downloading by something other than full version and build number. Say I know the name and major.minor.revision and mark a given build (posted with major.minor.revision.build) as something that's "ReadyForUse" - then I could look for the specific "ReadyForUse" packages of the given name and major.minor.version. Downloading was actually what I was hoping for with custom metadata.

    I'm still not fully understanding that searching for all packages is possible as per the API docs, but I think just not on the same page as you. Could you aim me a little more at the doc item you mean :-)? Thanks



  • You can do this...

    GET /upack/«feed-name»/search?query=«search-query»&count=«max-items» 
    

    This is the same API that the ProGet Web Application uses to show results to users, and returns a list of packages similar to the packages endpoint.


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation