Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    metadataproget
    5 Posts 1 Posters 16 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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)

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • ? This user is from outside of this forum
              Guest
              last edited by

              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.

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • 1 / 1
              • First post
                Last post
              Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation