Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs Issue] JSON structure when adding custom properties via the REST API #9062

Open
KamalikaSene opened this issue Feb 27, 2025 · 0 comments
Labels

Comments

@KamalikaSene
Copy link
Contributor

Description

The following JSON structure gives an error regarding the keys when attempting to create the PizzaShack API via Postman.
"additionalProperties : {"environment": "preprod", "secured": "true"}

The correct JSON structure which successfully creates the PizzaShack API with the custom properties is as follows:

  "additionalProperties": [
    {
      "name": "environment",
      "value": "prepod",
      "display": true
    },
    {
      "name": "secured",
      "value": "true",
      "display": true
    }
  ]

Steps to Reproduce

  1. Run the pack.
  2. Follow the documentation to add a custom property via the REST API.
  3. Add the "additionalProperties : {"environment": "preprod", "secured": "true"} parameter in the PizzaShack API payload on Postman.
  4. Attempt to create the API on Postman.

Version

APIM Post Beta Pack (Testing Hackathon)

Environment Details (with versions)

No response

@KamalikaSene KamalikaSene changed the title [Doc Issue] JSON structure when adding custom properties via the REST API [Docs Issue] JSON structure when adding custom properties via the REST API Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant