Giter Site home page Giter Site logo

Comments (3)

schabungbam avatar schabungbam commented on May 29, 2024

Hi John,

For the API header, you can make it work in one of 3 ways:

(1) Define the header in the swagger for every operation. This will mean the end user provide the info in every API call.
(2) Use the "Set header" policy in your connector, and use a hard-code a static value there. Works well if you plan to deploy the connector for a limited environment and you dont want to bother the end user to provide this value.
(3) Add a connection paremter, and then use the "Set header" policy to stamp the header picking the value from the connection parameter. See the Azure Key Vault example for how to use a connection parameter.

You can also do (1) and (2) by making the header parameter. That way, if the key is not provided a default will be used. One of the customers I spoke to yesterday used that approach.

It will be great if you can submit your custom connector as a sample.

from powerplatformconnectors.

garrytrinder avatar garrytrinder commented on May 29, 2024

@johnnliu sounds similar to how the Harvest API works, I used option 1 suggested by @schabungbam in my connector as the Harvest API requires the Harvest Account Id with every request.

image

https://github.com/garrytrinder/harvest-api-powerplatform-custom-connector/blob/master/Harvest-API.swagger.json

from powerplatformconnectors.

mamurshe avatar mamurshe commented on May 29, 2024

Closing this since @garrytrinder @schabungbam posted some suggestion. Please reopen if the issue isn't resolved.

from powerplatformconnectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.