Category "rest"

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

Discord: 403 Forbidden (error code: 50001)

I tried to get a list of users through the API, but in response I got: Missing Access 403 Forbidden (error code: 50001) Request: https://discord.com/api/v9/guil

Using zipOutPutStream, cannot change mediatype in exceptionhandler, when exception happens in Spring

In my post request endpoint, I want to generate ZIP File. Here is endpoint: public void downloadZipFile(@RequestBody final Parameters parameter, final HttpServl

Want to send extra data from BasePermission to Queryset in ModelVIewSet DRF

Here is My Seller Model which has User as OneToOneField #models.py . . class CompanyProfile(models.Model): user = models.OneToOneField(User, on_delete=mode

MongoDB aggregate and then flatten

FULL DISCLOSURE: I'm a MongoDB noob I'm dealing with a legacy DB structure. A part of my MongoDB looks like this currently: Events (_id, name (string), ...) Ord

How to Create a new folder in vcenter using rest api

Can anyone help me to provide right API to create a New folder in vcenter Thanks, Benji I can see only get API to list folders in vmware api document, unable to