PayPal Rest API - Execute Payment with updated transaction info
I'm using C# and PayPal Rest API to Get an approved payment and execute it. But, I need to update the transactions associated with approved payment. The PayPal documentation reads:Use this call to...
View ArticlePaypal REST .net API extract VALIDATION_ERROR
Is there anyway to extract any validation errors after attempting to create a payment with a credit card? In the log I see errors like this but it would be nice to be able to report back to the user...
View ArticleShould a REST API return exception in response body?
What is the best practice in .NET with Web API? Especially Web REST API. Should a REST API return exception in response body when an exception happens?For sure I will return a 500 or similar HTTP...
View ArticleContent type 'multipart/form-data;boundary=----WebKitFormBoundary...' not...
Spring 5.0.7: MVC, Data, Security. I configure multipartResolver.I send next Ajax request:$.ajax({ type: 'POST', cache: false, processData: false, contentType: false, url: '/api/v1/category/add', data:...
View ArticleUsing PHP and REST API for Azure Blob Storage to list, download and delete files
As Microsoft has deprecated use of PHP SDK, I'm struggling to use the recommended path by MS to use REST API. Examples on documentation are not clear. Can anyone help me in writing PHP script to create...
View ArticleEliminating the "nextPageToken" from the response in Power BI
I am fetching the data from an API of sumo-logic which gives me limited results in response max=100 and provides "nextPageToken" to fetch other results.In postman we can directly access it by placing...
View ArticleExclude user's password from query with Prisma 2
Recently I started working on a new project to learn some new technologies (Prisma 2, REST api with Express, etc.). Tho, I faced a problem.My app has a user authentication system and the user model has...
View ArticleUsing PHP and REST API for Azure Blob Storage to download files [closed]
We were using PHP SDK to download, list and upload files to Azure Blob storage. As Microsoft has deprecated the PHP SDK, client requested to move to recommended...
View ArticleAdding spring security to working spring-boot app
There are two controllers web@Controllerpublic class WebController { @CrossOrigin(origins = "http://localhost:8080") @GetMapping("/api") public String showForm() { return"bars"; }}and...
View ArticleHow to upload test case by reading data from excel into azure devops using java
I was not able to fetch the corresponding dependency for azure devops so with the help of chatgpt I pretty much tried with below code.import java.io.IOException;import java.util.*;import...
View ArticleSpring: Type definition error when posting a new object using a REST service
I have an object which gets two parameters through a json POST request to create a new entry in the database and I get this error:"Type definition error: [simple type, class...
View ArticleDelphi and REST with two methods with and without authenticate
I need REST service whit two methods: first need autorization and second open for all (with no authenticate procedure).If I put TDSHttpService and bind with TDSAuthenticationManager, then all methods...
View ArticleHow to avoid business logic breaking when parallel POST requests occur in...
I am trying to make a REST application where I have entities of Users and Orders.Clarifying information:The order entity has status that can be: new, processing, completed.When users add an order, its...
View Articleproblem getting stripe to collect payments in django
i'm working on a django rest project and it utilizes the stripe payment gateway. i've been getting the same error ever since. i try to initialize a payment for the user and the server responds with a...
View ArticleJersey Exception mappers not working when jackson deserialization fails
I am using Jersey 2.10 with Jackson serialization/deserialization feature in my REST API. My idea is to make my REST API to always return a standard JSON error response. For that I have ExceptionMapper...
View ArticleTypeError at /api/register-application/
I was trying to deploy my system, as everything was working easily on localhost:8000 but when i deploy same code on the server then with the domainname api i cannot post any data with same function...
View ArticleConnectwise REST API Service Ticket NOTES (internal & public)
How to differentiate the notes as public or private for a sevice ticket in connectwise ? Can anyone please clarify this as Im new to connectwise and i dont have access to connectwise system . Our...
View ArticleJackson parsing issue
In my spring applicaiton, I have Rest api, when I call it using postmanand sending this json{"incomeValue":"Test\\t"}It givesCaused by: com.fasterxml.jackson.core.JsonParseException: Illegal unquoted...
View ArticlePostMapping request body shows Null
Issue with @RequestBody mapping to null in Spring Boot APIWhile building an e-commerce application, I encountered a problem with my cart API. The API seems to be working perfectly; however, the...
View ArticleShould service layer accept a DTO or a custom request object from the...
As the title suggests what is the best practice when designing service layers?. I do understand service layer should always return a DTO so that domain (entity) objects are preserved within the service...
View Article