BC16 Onprem - Access REST API (secondary instance)

eYeeYe Member Posts: 168
I have configured a second service on the server using NavUserPassword authentication.

Created a self-signed cert, applied thumbprint.
Created web server instance.

Enabled API Services in config.

Web Client login works fine.
OData works fine http://server:7058/BCExt/ODataV4/Company(name)/svcName

API, gives a 404 error when querying http://server:7058/BCExt/api/v1.0

Is there a config I might be missing? Because I just don't know anymore.
Kind Regards,
Ewald Venter

Comments

  • ftorneroftornero Member Posts: 522
    Hello @eYe ,

    Are you checked that the API Services are enabled ?

    By default they are not.

    Regards
  • eYeeYe Member Posts: 168
    Hi, yes. It was the first thing I enabled. Also did this, though haven't had a look at what it actually does https://docs.microsoft.com/en-us/dynamics-nav/enabling-apis-for-dynamics-nav
    Kind Regards,
    Ewald Venter
  • eYeeYe Member Posts: 168
    I'm at a loss for words, I'm running same version locally in docker and at the client...

    Application Version: 16.0.12630.12758
    App Version: 16.1.12629.12805

    In my docker instance I access the endpoints with the /v1.0/ version tag, at the client, I have to use /beta/ version tag.

    Used BC-ContainerHelper to create an onprem container, wonder if it still uses sandbox environment?
    Kind Regards,
    Ewald Venter
Sign In or Register to comment.