Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3619 articles
Browse latest View live
↧

Understanding the http handlerfunc wrapper technique in Go

I saw an article written by Mat Ryer about how you can use a server type and http handlers of the type that are wrappers for func(http.ResponseWriter, *http.Request)I see this as a more elegant way to...

View Article


encountering Error: Content is not allowed in prolog with spring boot and...

I am writing a springboot application to convert SOAP to REST by using apache camel -private String transformSoapToRest(String soapRequest) throws ParserConfigurationException, IOException,...

View Article


Why are my Firebase RTDB Rules Always Returning Unauthorized

Rules{"rules": {"Accounts": {".read": "true","$user_id": { // Check if object has all required values after operation".validate": "newData.child('Username').isString() &&...

View Article

Tableau Server REST API - How to filter jobs by extractRefresh task ID?

Is there a way to filter jobs using the tableau REST API according to task ID?I have an extract refresh task I want to run on demand using /runNow but I want to perform a check to see if a job with...

View Article

How can I test a Java method that hits the actual REST API?

So I have a class that holds a bunch of methods(migrated from another project) that are suppose hit a REST API,but I don't know if they are working correctly.I want to create a driver class that i can...

View Article


Which response code for resources max. limit in REST API? [closed]

I am designing a REST API for registering enrollments to classes. In my of my endpoints, I can POST an enrollment:POST to http://my-api/class/learn-rest/enrollmentThis creates a new enrollment....

View Article

Base URL for Spring Boot and handle / as well

I would like to set the context path for the Spring Boot application, and the following property can achieve that.server.contextPath=/apiHowever, I would like to redirect / to /api . Currently, I am...

View Article

"undefined: utils.GetTrimmedParam" Error when running the 'Hello World' code...

I ran the 'Hello World' code mentioned in the official GoFiber document document but got the following error:$ go run main.go#...

View Article


How to configure JSON deserialization options in .NET minimal API project

I have a .NET minimal API project, as described here. One of the endpoints accepts JSON in the request body, and this is deserialized automatically. The code looks something like...

View Article


Chrome can't play videos larger than 25 MBs [closed]

I have an client written in angular which makes a call to a REST API written in JAVA to retrieve a file. If the file is a video, I have the option to play the video inside the client using a video HTML...

View Article

"Invalid state parameter passed in callback URL" error implementing Google...

I am developing a REST API with PHP 8.2, Symfony 6.4 and API Platform. I am finishing implementing OAuth with Google using the bundle KnpUOAuth2ClientBundle but I am getting the error that the title...

View Article

How to sync Netsuite sales order items to Salesforce order products?

I have created user event script to sync Netsuite Sales order to Salesforce order. I have sync all body level data but having trouble in syncing Netsuite items to the salesforce. Please Help!Here is...

View Article

How to post multiple objects in oracle apex rest api?

I am trying to post data like below{"ORG_ID": "81","TRX_DATE": "30-JAN-2024","TRX_NUMBER": "240006078","ORDER_NUMBER": "4241020007471","QUANTITY_ORDERED": "12","QUANTITY_INVOICED":...

View Article


How to generate endpoints having StreamingResponseBody as return type using...

I want to write a POST endpoint definition that returns as response ***StreamingResponseBody ***using Open API - Swagger. Since the data that should be downloaded is very huge, I found that instead of...

View Article

Superset Add user with REST API

I am getting Error in reponse to /api/v1/security/users/i am trying to insert new user with rest api in apache supersetwhat i did:i sent post request to /api/v1/security/loginwith json body - i got...

View Article


What base_name parameter do I need in my route to make this Django API work?

I am building a Django application that exposes a REST API by which users can query my application's models. I'm following the instructions here.My Route looks like this in myApp's url.py:from...

View Article

SSRS Powershell Rest API "The given key was not present in the dictionary"

I am trying to create a subscription to a report via SSRS Rest API 2.0, but I am getting the error "The given key was not present in the dictionary".I am on SSRS Version 15.0.8863.19101 locally and...

View Article


Deciding between HttpClient and WebClient [closed]

Our web application is running in .NET Framework 4.0. The UI calls the controller methods through Ajax calls.We need to consume the REST service from our vendor. I am evaluating the best way to call...

View Article

Delete all items from a sharepoint list with the REST Api

Is there a method to delete all items from a sharepoint list using the REST API ? Preferably not using a Loop over all items and deleting individual item ?I have got to the point where I can delete...

View Article

Golang sending binary file over TCP via HTTP/REST

I'm writing a manager for cloud support of legacy IOT devices in Go, the devices establish a tcp connection with the manager, then that connection gets held open for bi-directional communication. The...

View Article
Browsing all 3619 articles
Browse latest View live