Category "rest"

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

Where to place the resource root id in the url?

I have resources linked like this: A->B->C->D I want to design a REST API to retrieve the D elements inside of A Which is the best design approach? api

API URL Query to filter the response

So I'm trying to filter the response of my API GET query and can't seem to find a way to access deep enough in Json. My response is like: { "orders": [

How to return custom JSON response in DRF?

I have created API for News model: models.py class News(models.Model): title = models.CharField(max_length=255) created_at = models.DateTimeField(auto_n

Rollback solution for a REST service

We provide various update and insert REST services as a central point for processing data on the mainframe. The REST Resources are hosted on one server and are