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

Why is Python httpx.get or requests.get much slower than cURL for this API?

For a home automation project I am trying to pull train delay data. An API wrapper exists, with cURL examples. These work fine, but both Python's requests.get and httpx.get are slow to pull data (up to...

View Article


Custom @ControllerAdvice in Spring for exception handling

I am trying to map exceptions from my rest controllers to responses which have a body, and to do it in a central place. I have tried this: @Order(Ordered.HIGHEST_PRECEDENCE)@ControllerAdvicepublic...

View Article


Customize Global Exception Handler in java Spring Boot

My GlobalExceptionHandler@ControllerAdvice("uz.pdp.warehouse")public class GlobalExceptionHandler { @ExceptionHandler({RuntimeException.class}) public ResponseEntity<DataDto<AppError>>...

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

RESTful resources: Plural vs. singular when a resource is always singular in...

If I decide to go with plural for all of my route names but some of the resources only exist as one thing, do you keep it as singular (more intuitive) or respect that decision of using plurals and stay...

View Article


Should I use Singular or Plural name convention for REST resources?

Some RESTful services use different resource URIs for update/get/delete and Create. Such asCreate - using /resources with POST method (observe plural) at some places using /resource (singular)Update -...

View Article

Need to read the excel attached in BMC Remedy incident via REST API

I need to read the excel attached within an incident in BMC Remedy. I am already connecting to Remedy via REST and can read the attachment but the thing is that it gets converted to String so only text...

View Article

Hyphen, underscore, or camelCase as word delimiter in URIs?

I'm designing an HTTP-based API for an intranet app. I realize it's a pretty small concern in the grand scheme of things, but: should I use hyphens, underscores, or camelCase to delimit words in the...

View Article


Goose Postgresql Can't Create Or Replace Stored Procedure When Commit Up...

First, I tried to use $$ symbols to wrap query, but it didn't work-- +goose UpCREATE OR REPLACE PROCEDURE update_user_email( _user_id VARCHAR, _email VARCHAR, _emailverify_id UUID)LANGUAGE plpgsqlAS $$...

View Article


How to resolve CORS issue in the production for small projects?

I'm creating a productivity tool for myself as a beginner project using zenquotes API. Which is a productivity tool which needs to display a quote on the top of the screen everyday.The Issue :1) While...

View Article

How to validate response in Postman?

I am trying to validate response body including errors in postman. How can I validate the response and text below?{"responseHeader": {"publisherId": "12345","responseId":...

View Article

Rest - What is difference between ":" and "{}" in API url?

I have seen two styles (/api/users/:uid and /api/users/{uid}) when designing API:Do they have different meanings? Or just styles?

View Article

Why is JPA query so slow?

I am implementing queries in my web application with JPA repositories. The two main tables I am querying from are FmReportTb and SpecimenTb. Here are the two entity classes (only important attributes...

View Article


Page not found Django restframework

I'm trying to write an API in Django to get the user comments from the URL.My API is :class ListSpecificUserCommentsApiView(APIView): authentication_classes = [authentication.TokenAuthentication]...

View Article

Keep workers open and call them from rest API [closed]

I have a few questions regarding the best way to setup the architecture and best tools I can utilise within Python to reach my goal.Essentially, it will be a REST API endpoint (created with FASTAPI...

View Article


eBay errorId 25002 API_INVENTORY "A user error has occurred. Add at least 1...

My code will create an generate authorization code, then exchange for access token, createOrReplaceInventoryItem, getOffer, deleteOffer, createOffer in Sandbox and Production.But when I try to...

View Article

RESTful patch and delete sub resources best practice [closed]

I have following object structure in my backend:Offer with some fields and list of ProductOffers.In reality in the UI, user can open his Offer, click EDIT button and modify, add new, delete existing...

View Article


WebAPI Return Unauthorized or Internal Server Error

I'm using a third-party API and cannot get the initial authorization to work to get the session key. I've used this code with several other APIs in the past and am stumped why it's not working here....

View Article

SPRING NEO4J :: No converter found capable of converting from type...

Below is my code as per my project ::> I have below configurations ::@Configurationclass Neo4jConfig { @Bean fun neo4jConversions(): Neo4jConversions? { val additionalConverters:...

View Article

SharePoint authentication using a certificate and http POST method

Recent changes (circa. 2024-09-09) implemented by Microsoft are preventing my script from authenticating with SharePoint Online (SPO) using a username and password. I believe I now have to do the...

View Article
Browsing all 3607 articles
Browse latest View live


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