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!

    Need help with Native API

    Scheduled Pinned Locked Moved Support
    5 Posts 3 Posters 21 Views 2 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.
    • K Offline
      k_2363
      last edited by atripp

      Hi,

      We're currently testing the ProGet API endpoints. We are forced to use the 'Native API' due to the development of the new API.
      Unfortunately we're unable to use some Native API endpoints due to some errors.

      We've tested multiple options but it seems that we cannot get it to work ourselves.

      URI: https://server/api/json/Users_CreateGroup
      METHOD: POST
      Type: Other
      Body: 
      {
          "Group_Name": "Test"
      }
      

      Result:
      515 16 2 Users_CreateGroup 20 Cannot insert the value NULL into column 'Group_Name', table 'ProGet.dbo.Groups'; column does not allow nulls. INSERT fails.

      However if we switch the type to: application/json we get the following message.

      Result:
      Invalid value for "Group_Name": Object must implement IConvertible.

      The same happens for the Create User endpoint.

      Anyone has a solution for this issue?

      Another question: Is there any ETA on the API development?

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @k_2363
        last edited by

        Hi @k_2363 ,

        What version of ProGet are you using?

        Another question: Is there any ETA on the API development?

        An API for the built-in User/Groups are not really a priority and there's basically no demand for it. Everyone just uses LDAP instead.

        Can you help us understand how/why you're using this API?

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 0
        • K Offline
          k_2363
          last edited by

          Hi @atripp,

          We're running the latest version.

          We're running a ProGet instance that does not live inside a Active Directory domain.
          The accounts we're using are local ProGet accounts. We would like to create API users + keys with the API.

          Also we would like to get the possibility to Pull packages into a feed. These feeds are populated by Azure DevOps artifacts, however we can list and delete packages from within the API but not pull them into the feed(download them).

          1 Reply Last reply Reply Quote 0
          • Dan_WoolfD Offline
            Dan_Woolf inedo-engineer
            last edited by

            Hi @k_2363,

            We found an issue in our Native API related to our .NET 6 upgrade that was preventing certain values from converting properly. That has been resolved and will be released on Friday in ProGet 2023.18.

            Thanks,
            Dan

            1 Reply Last reply Reply Quote 0
            • K Offline
              k_2363
              last edited by

              Hi @Dan_Woolf ,

              Thank you for your message.
              We've updated to the most recent version from 2023.16 to 2023.18 and I can confirm that this is now working!

              Thanks!

              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