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

HTTP method names: upper or lower case?

This may be a self-answering question, but I'm hoping one of you could point me to any resource where it is declared, or can be inferred, whether to use upper or lower case letters when declaring an...

View Article


Mongodb Javascript: BSON element "cursor" is missing on collection.findOne()

I have a function in Typescript that checks if the user's email already exist, and returns it as a boolean value. The catch is that whenever the request gets sent via a REST Client ( Postman/ Thunder...

View Article


Invalid JSON data in request body: Syntax error POST Call Rest API YII2

When I try to post using Postman,I get this error {"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400,"type":"yii\\web\\BadRequestHttpException"}My...

View Article

Log REST-requests to file with unique request-id

Lets say I have a simple REST-API written in .net 6 which logs to a log-file on the lokal disk. During the processing of the request, multiple log-entries are generated. For example, let's say we have...

View Article

Using the "in" operator in a request to an API

One of the BestBuy API endpoints is:https://api.bestbuy.com/v1/productsTheir guide here (see the very last line) says that to avoid the rate limit, one can get data for multiple skus (products) in a...

View Article


Spring Boot REST API application level authorization

Currently building a Spring boot based REST API application (sample centralised school management system). There are various DB entities which are given CRUD access via the APIs, like Account, School,...

View Article

OSGI : CXF exception with Karaf JAX-RS: No resource methods have been found...

I am getting an exception while creating a simple CXF web service with OSGI and Karaf.Would really appreciate any comments/suggestions for fix.Here is the description of my project and steps I...

View Article

Which is better for Dynamic querying String Builder or string buffer? [closed]

I am dynamically building SQL queries in Java using JDBC and need to determine the best approach for handling these queries efficiently.Currently, I am debating between using StringBuilder or...

View Article


Fetch Telegram API in Google Cloud VM Instance is Failed

So, i want to send Telegram API Bot in Google Cloud VM Instance using Ubuntu latest version or the highest version. I'm using NodeJS program and fetch to run the API.But i got this error:TypeError:...

View Article


How to pass url as rest service?

I am trying to build a rest service in spring boot to update my database.. @RequestMapping(value = "/setrepacking/{transaction_number}/{image_url}", method = RequestMethod.GET) public String...

View Article

No connection could be made because the target machine actively refused it...

I'm using the WCF4.0 template -REST. I'm trying to make a method that uploads a file using a stream.The problem always occur atStream serverStream = request.GetRequestStream();Class for...

View Article

Kibana logs in a spring boot API

I'm refactoring an api that logs absolutely everything to kibana and some code repeats in the logic of all my endpoints. There is something I can do that works as a exception or something like that to...

View Article

Use Data Factory to get data from Dataverse REST Web API with service...

I'm trying to pull some data from Dataverse using the Web API with service principal authentication. Everything works fine when I'm doing it in Python script, but encountered some problems when using...

View Article


What is the real difference between an API and an microservice?

I am learning about microservices and I don't understand what the real difference between creating a REST API and creating microservices?I’m working in Go, but my question applies over all languages.

View Article

Migrating from monolithic file.upload to sequential/asynchronous...

I scratched my head for hours trying to figure out the way to migrate after receiving the email from Slack's team of the future deprecation of file.upload. The message is the same as...

View Article


When i started my application, spring does not see my been of type...

Description:Parameter 0 of constructor in tacos.web.DesignTacoController required a bean of type 'tacos.data.IngredientRepository' that could not be found.Below controller;package tacos.web;import...

View Article

RestClientException: Could not extract response. no suitable...

Using the curl command:curl -u 591bf65f50057469f10b5fd9:0cf17f9b03d056ds0e11e48497e506a2 https://backend.tdk.com/api/devicetypes/59147fd79e93s12e61499ffe/messagesI am getting a JSON...

View Article


increase python REST requests efficiancy

before, I used SQL joins to get data, and 10.000 lines would take fraction of a second.select name, profession.expertise, resonsible.name, building.lockerfrom techniciansjoin profession on...

View Article

How do I submit requests to REST api in batches in SpringBoot?

I have a list of bulk request objects likeList<BulkRequests> bulkRequest;I want submit them one by one to an external REST APII have already built a FiegnClient for that.Is there any optimised...

View Article

Sharepoint REST api GetFolderByServerRelativeUrl returning syetem folder

I am using GetFolderByServerRelativeUrl REST api to get Folders and Files from Office365 document library. I am usng below...

View Article
Browsing all 3607 articles
Browse latest View live


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