POST request body parameters description in AZURE API Managment - azure-api-management

I tried to import API by using Swagger, But unfortunately not getting the body parameters description of POST requests. I tried to add an operation manually, But in that request body description allows only text. But I want to display my API should describe the each and every parameter with an example like in the below URL
Azure sample API with parameters description in the request body description
How can I do this? Thanks

When adding the details of your request body you can enter raw HTML into the description box, e.g.:
It looks like that is how the site you linked manages to get custom tables in that section.

Related

Azure Key Vault API Not accepting raw JSON body params

I have to use raw json in my post query to Azure Key Vault. Which I've done like so:
{ "grant_type":"client_credentials" }
I get a 400 error complaining that the body does not have 'grant_type'
How can I get Azure Key Vault API to accept the raw json body?
The headers are in the attached image
headers
body in Postman:
body
using urlencoded in raw-JSON body
The endpoint is: https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token which returns a temporary access token.
Microsoft has confirmed with me that this endpoint cannot accept raw-JSON so I'll have to find some other way for my implementation.
Your post data needs to be URLEncoded. This can be done in Postman using a pre-request script. You can read the full walk-through on Jon Gallant's blog here: Azure REST APIs with Postman or watch the video here: https://learn.microsoft.com/en-us/rest/api/azure/
This endpoint cannot read raw JSON.
The only solution is to modify the request body to use urlencoded format.
In Postman this can be done by changing the content type to: application/x-www-form-urlencoded
and the body to Raw with the content inside the body as &{key}={value} for every key, value that the endpoint requires.
Without access to the API sending the request I'm unfortunately unable to solve this issue since I'm forced to use JSON objects as the request body.

How to build a post requisition to a n8n webhook

Initially I apologize for asking a seemingly extremely basic question. But I’m a beginner and I couldn’t find an answer to my question anywhere.
In my CRM (in this case Bitrix24), I need to insert in a textarea field an instruction (mandatory POST) to call a webhook and pass the information, for example name and phone as shown in this image.
Bitrix24 textarea field
I have successfully run my stream with postman as shown in the image below.
postman results
I believe I need to enter the webhook url and the parameters in the same textarea field in the image 1

Azure blob storage with Azure AD how to get data from it with an img tag

I have a private container in a storage account that i can access with the help of Azure AD bearer token.
I have to pass a bearer token to my blob storage in order to get the data.
I use these images in a text editor component called 'Quilljs' that parses text and images into raw html content.
The image url itself will be saved in an <img src="url">, but since i cannot put an authorization header in that url itself. I will get a 404 back.
My idea is to make an REST endpoint in my backend that can build that request with the authorization header for me and relay the data back. The problem is that i don't know if i can override the moment the tries to get his data from that url.
Can i perhaps make a rest call in an tag src url?
What are my options here?
I tried using SAS Tokens but since the token itself is different every time it renews, i cannot save that url into my database.
A 404 error occures when there is no resource for the request that you are making. You can have a detailed look HERE.
You can pass access_token parameter from url using:
https://base.url?access_token=f4f4994a875f461ca4d7708b9e027df4
Here is a similar SO Thread that you can refer to.
While I was hitting through postman I could able to retrieve the blob that I am requesting for. The same url I used in img tag which gave me the same result.
More References : javascript - How to add image in Quill JS? - Stack Overflow

Request Body for Form recognizer

I was looking at this documentation sent to me by the microsoft squad when I signed up for form recognizer and I was hoping someone could tell me what the request body would look like for this.
https://westus2.dev.cognitive.microsoft.com/docs/services/form-recognizer-api/operations/AnalyzeWithCustomModel
I have a trained model an i was able to set up the working call with Postman
I am able to get it working in Postman by setting the Body to use form-data and a PDF file. Add the form key and the value should point to the PDF file you are analyzing:
I also set the request headers to have Content-Type of text/plain and included my subscription key with the Ocp-Apim-Subscription-Key setting:
Hope this helps!

how to get data in Json form by postman for TFS API?

i am currently using TFS API who's link is
https://www.visualstudio.com/en-us/docs/integrate/api/wit/work-items#byids
currently in my project i want to accees the following workitem 61092
http://apactfs.cbre.com:8080/tfs/CBRE.APAC.Applications/MRI_SCRUM_GIT/_workitems?_a=edit&id=61092
and in Postman i am hitting the id by this Link By GET
http://apactfs.cbre.com:8080/tfs/cbre.apac.applications/MRI_SCRUM_GIT/_workitems?_a=edit&id=61092&api-version=1.0
Since you only want to get one work item, you should refer to this section of the document:
https://www.visualstudio.com/en-us/docs/integrate/api/wit/work-items#get-a-work-item
And in Postman you should use the following Link By GET
http://apactfs.cbre.com:8080/tfs/cbre.apac.applications/_apis/wit/workitems/61092?api-version=1.0