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!

    How to set docker repository description via API?

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 15 Views 1 Watching
    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.
    • P Offline
      power_pille
      last edited by

      Hi,

      we successfully uploaded docker images from our automated builds to the proget server. Unfortunately there is no repository description set. See picture of the detail page here: 4344c3ae-e463-4b1f-928d-25e92e612a92-image.png

      I'd like to automatically upload our readme text (from a markdown file) after pushing the packages to proget. I didn't find an appropriate api endpoint in the documentation.

      Can you tell me if this can be achieved, and if so how.

      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        Hi @philipp-grathwohl_1687,

        Currently, the only way to set the description would be to do it using the UI or the Native API. In order to set it using the Native API, you would need to do the following:

        First, Get the Docker Repository ID by making an HTTP GET request to <Base URL>/api/json/DockerImages_GetRepositoryByName?key=<API Key>&Feed_Id=<Feed_ID>&Repository_Name=<Repository Name>
        This will return a list of images (should only be 1 in the list) and you will need to get the DockerRepository_Id from each item.

        Then, you will need to HTTP POST a JSON object to <Base URL>/api/json/DockerImages_CreateOrUpdateRepository.
        The JSON object you would post would be:

        {
        	"API_Key" : "<API Key>",
        	"Feed_Id": "<Feed Id>",
        	"DockerRepository_Id": "<ID from previous request>",
        	"Repository_Name": "<Repository Name>",
        	"RepositoryIcon_Url": "<Icon_URL>",
        	"ShortDescription_Text": "<Short Description>",
        	"FullDescription_Text": "<Full description (Readme.md)>"
        }
        

        Please note that you will need to populate all of the values. For example, if you do not populate the RepositoryIcon_Url, the value will be cleared.

        Thanks,
        Rich

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote 1
        • P Offline
          power_pille
          last edited by

          Hi @rhessinger,

          thank you for your quick answer. Works fine for me!

          Thanks and best regards,
          Philipp

          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