Skip to content

Conversation

@andvra
Copy link
Contributor

@andvra andvra commented Sep 11, 2020


Please check the following conditions for your PR.

  • apiDefinition.swagger.json is validated using paconn validate command.
  • apiProperties.json has a valid brand color. Invalid brand colors are #007ee5 and #ffffff.

@andvra andvra requested a review from a team as a code owner September 11, 2020 09:28
},
{
"name": "peltarionbody",
"in": "header",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andvra The summary and description says it is body parameter, but definition says "in":"header". If it is body parameter that expects json object, it should have "type":"object".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our platform expects body tags with a number of different structures, so it won't match a specific schema, which is required if we send this as a body. Therefore, we stringify the body and send it as a header parameter.

"title": "Query token",
"parameters": {
"x-ms-apimTemplateParameter.name": "code",
"x-ms-apimTemplateParameter.value": "FHWJvOJnrrBz8v7DOWoABLS1K2e9Im6q7YalAthQMGkqTa57jDYm/w==",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andvra It seems to be some shared key to access your service.

  1. Please note that this key is publicly visible to anyone.
  2. You may place into connection parameters (as url and token) and share the key with your customers explicitly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noting. The code isn't needed, so removed it from the code now.

@sriyen-msft sriyen-msft merged commit e0284cf into microsoft:dev Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants