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



  • 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?


  • inedo-engineer

    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



  • 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).


  • inedo-engineer

    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



  • 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!


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation