Quantcast
Browsing all 3637 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Is it possible for a REST API to be called only by the frontend app's domain?

I have a website that has an Angular frontend (https://dev.myApp.com/) and a .NET 8 REST API (https://dev.dataAPI.com/api/),Both of these are hosted on different on prem servers.If i click on a button...

View Article


Conditonally return different REST API response object for same endpoint

The following scenario does not follow RESTful standards and would be keen to know how best to structure my API to achieve the same goal.For a given GET request against a resource, e.g. GET...

View Article


TLS version used in graph API

We are connecting azure ad using rest connection(Graph API) and we needs to know What TLS version used in graph API.As TLS 1.0 & TLS 1.1 will disable soon.we have checked in Microsoft but not able...

View Article

Perl Rest::Client timeout? or something else?

I'm using the perl Rest::Client module and have an occasional issue that I cant figure out.We create the 'client' and connect to the remote server and pull down some data using the "GET" feature.my...

View Article

What is HTTP status code for a disabled REST API feature?

We have REST API endpoints that all users are free to use and other endpoints that users can use if they have explicitly enabled and paid for some specific feature.What should be the correct status...

View Article


How set the body of request with QNetworkRequest

I currently post to a ReST server in Qt6 like this:QNetworkRequest request;request.setUrl(QUrl("someurl"));QUrlQuery postData;postData.addQueryItem("somekey","somevalue");nm = new...

View Article

Is there any way to set defaults in supertest?

I'm using the supertest module to test my Rest API. my API sends JSON all the time. so I'm doing .expect('Content-Type', /json/) for all and each test! I'm repeating again and again! this is some of my...

View Article

Best Practices for Optimizing Orders Products Data Retrieval in Microservices...

In my eCommerce microservices app, I want to create a page to display the order summary. The order contains a group of products, each with its own ID. Should the front end make multiple requests to...

View Article


Agora IO cloud recording resourceId is null getting 400 response

I am implementing Agora cloud recording via RESTful API. I have already contacted with Agora support and with my appid and they confirmed that recording service is enable. But when I am trying in...

View Article


Hik vision http listening [closed]

I'm trying to integrate hik vision http listening for an access control module to receive events whenever users interact with the fingerprint or camera. However for the body I'm getting an empty...

View Article

How to deserialize JSON to TJsonObject in Delphi 12?

I am trying to deserialize a JSON response into Delphi objects using TJson.JsonToObject. The structure of the response and the classes I'm using are shown below, along with the data structure I'm...

View Article

KeyError: 'response_data' in FastAPI application

I am building a FastAPI application that receives a message and an image, in order to return an edited image based on the message provided with the image. The problem is the app is returning the...

View Article

Laravel 10.48.22 update function not updating data on database

I just learn to create rest api using laravelI have table user, user model and auth controllerThe register and login api running wellWhen I want to update user data (ex: name), the response return...

View Article


Image may be NSFW.
Clik here to view.

IntelliJ IDEA Debugger doesn't terminate the process when Stopped

I am trying to debug the REST API I have built using maven, however, whenever I stop the debugger, it shows a message:Disconnected from the target VM, address: '127.0.0.1:50047', transport: 'socket'And...

View Article

Using POST in Rest API just like get to add 2 numbers

I am new to REST and web services. I am trying to add two numbers with the below code.import javax.ws.rs.GET;import javax.ws.rs.POST;import javax.ws.rs.Path;import javax.ws.rs.PathParam;import...

View Article


SharePoint 2013 - Get Custom Field Value via REST API

I have SPList which contains Custom Type Column (inherited from Lookup). When I try to retrieve its items via REST API I'm getting an...

View Article

MLflow RestAPI does not accept query parameters

as I am getting into MLFlow I try to get some minimal server running and query the RestAPI.For this I run:mlflow server --host 0.0.0.0 --port 5000Then I run the healthcheck curl...

View Article


UUID issue with passport Laravel

I want to use UUID in Laravel passport instead of the default id in my laravel project.I changed all the user_id and client_id columns to uuid in the migrations and i add Passport::ignoreMigrations()...

View Article

Problem deploying node rest api in render

I am trying to deploy my rest api created in node with typescript in render. However, at the time of deployment I get the following log:==> Exited with status 127==> Common ways to troubleshoot...

View Article

Undefined instance method "respond_to" in Rails 5 API Controller

In rails 5 created with --api I have an error NoMethodError (undefined method `respond_to' for #<Api::MyController:0x005645c81f0798>Did you mean? respond_to?):However, in the documentation for...

View Article
Browsing all 3637 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>