Category "rest"

Convert JSON to different format using the javascript

I have the JSON please see below and I need help to convert changing the format mentioned below. I want to move the data to different columns (format mentioned

Amazon Connect API didn't response correctly in Postman

I am trying to test Amazon Connect Rest API in Postman. The API name is GetMetricData. In Postman, I have provided all the required information that is mentione

Amazon SQS:: Got an error while trying to create queue: NoCredentialProviders: no valid providers in chain. Deprecated

I am trying to create Amazon SQS from my local machine and facing errors like Got an error while trying to create queue: NoCredentialProviders: no valid provide

Refit 6 not working when android project built with unity

I'm using Refit 6 in unity for rest calls but when project is built for Android getting below error. Message: MissingMethodException: Constructor on type 'Refit

Nested REST API resource not found

This feels like what should be a very common question but I cannot find anything related to it. I am working on a 'REST' API with nested / sub-resources GET /us

Rest API: HTTP Status code for Informational Message

If end user not send query parameter then i want to return a message like: return Response.status(500).entity("If you wish to download whole offerings data send

Body Expectation with XPATH not working on mockserver

I am using MockServer since a short time and trying to create an expectation on the Request-Body. My Body is an XML and I am using XPath to match the Request, b

How can I validate WOPI is working on OOS on-prem using PowerShell or REST?

I'm trying to trouble shoot our on-prem OOS and read about the WopiTest framework for Office 365 at MS Docs - WOPI Validation application Does Office Online Ser

How to get the Google doc drawings through Document api or appscript

Hi I have a Google Document that has a Drawing inserted in it, Now I want to get the link of the drawing or get the blob out of the drawing and show As I use th

confusion between post and get method [closed]

I'm creating an API which accepts customerid, account number and date as json objects and returns a file whose location is mentioned in the da

how do I use ilorest to Configuring AMD Preferred IO Bus Number

there are enough instructions out there to do that manually, but I need it to be done using a script. https://support.hpe.com/hpesc/public/docDisplay?docId=sd00

How can I take a generated token from a Test Suite and add it as an Authorization header?

I'm having an issue with a readyAPI project i'm migrating. I'm not a backend-lover so it's quite diff from my perspective, hope you guys have another pov and ca

Error: "datetime' is not json serializable" in Ansible playbook

I am getting below error while passing below date format to Ansible Tower REST API in extra_vars with Ansible uri module in body section. date_slot: '2022-04-04

nSwag Client: Is there a better/easier approach to affect PropertyNameCaseInsensitive?

We are attempting to integrate System.Text.Json into our REST API and rest clients, previously using Newtonsoft. We are using nswag CSharpClientGenerator.Genera

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

Use USDA Food API to search and get the nutrient facts by food name

I'm using an API to access the USDA food database. I crawled some food names from the menus of some restaurants. I want to connect these foods' names to Food Da

Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: users is not mapped [Select username from users]

what is causing the error -> Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: users is not mapped [Select username from users]. I am trying to

How to make a PUT request with a full URL/link as a path parameter using Flask?

I need to add a link to a photo in my database using REST API. I have tried to add it as a string, but there is some error. My PUT call: http://127.0.0.1:3000/a

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

Azure cosmos documentdb SQL API, distinct query through Rest API gives 400 error

When I post query through REST API to Azure cosmos documentdb which contains Distinct keyword gives following error Example of Request : curl --location --req