Quantcast
Browsing all 3619 articles
Browse latest View live

kubernetes liveness prob with database / external connectivity

We have rest api based app deployed in kubernetes cluster, planning to implemnent the liveness-prob check (http based /healthz GET endpoint).Our is app dependent on database, is it good practice to...

View Article


TryAPL API APL script loads endlessly without returning any error message...

I am following the instructions in the APL Wiki (https://aplwiki.com/wiki/TryAPL#API). The examples are in what looks like a C-family language or maybe Java. I am using Python.The script below doesn't...

View Article


Image may be NSFW.
Clik here to view.

405 method not allowed Spring Boot API and Angular

in one of my Spring API projects I sometimes encounter a "405 method not allowed" error if I use the PUT call. The error is quite random, sometimes the call works without problems, sometimes it fails...

View Article

How to decide timeout for the REST API [closed]

I have a rest api in which I want to setup a timeout error. This error will come on the basis of timestamp. The current timestamp will be generated on client & sent to server. On server, current...

View Article

VAT Checker Apps Script

I'm trying to make VAT checker in Google Apps script, to use in a Google Sheet. My code looks like this:function VATChecker(input1, input2) {var country = input1var VATid = input2// Builds the VIES...

View Article


ASP.NET Core 6.0 Web API : cannot context switch to another account to start...

I have an ASP.NET Core 6.0 Web API that runs on IIS 7. The application pool is running under an account local to the machine but not the local system, call it 'local-system-web-account'. I am trying to...

View Article

"404 Not Found" when viewing swagger api-docs when using swagger-springmvc...

I am trying to configure swagger in my spring project, but hitting Hitting "http://localhost:8080/api-docs" says "404 Not Found".Maven Dependency<dependency>...

View Article

Upload pdf file to GCS with REST API - Coldfusion

I'm trying to upload a pdf file to GCS REST API with Coldfusion. My code is as follows. I get the same error every time. When I try a png file instead of a pdf, it works fine.<cffunction...

View Article


What's the difference between REST & RESTful

What's the difference between a REST system and a system that is RESTful?From a few things I've read most so called REST services are actually RESTful services. So what is the difference between the two?

View Article


Is it possible to update an existing Zimbra ZCS contact using the REST API?

Is it possible to update/modify an existing Zimbra contact (or appointment etc) using the REST API?I can successfully add a contact but not update a contact - even though the URL I use to add a contact...

View Article

Image may be NSFW.
Clik here to view.

Why is django-ninja PUT endpoint not using value from request body but...

GoalI'm trying to use a Django Ninja API endpoint (with Django Ninja's ModelSchema) to update the time zone preference (tz_preference*) field on my Django app's user model.*Note: The tz_preference...

View Article

Does Google expose "Find my Device" APIs?

Google has its "Find my Device" service allowing you to find your phone, make it ring (even when silenced), remotely wipe it, etc. by entering here: https://myaccount.google.com/find-your-phoneWhat I...

View Article

Java and Mockito Testing: ValidatableResponse and ValidatableResponseOptions

I'm relatively new to Java testing and have a problem. I'm about to test a Rest client.I tested successfully all methods - put, get, delete. After I extended my delete method for a specific purpose I...

View Article


Patch Request in Java Spring Boot nulls ManyToOne

I have this entity:@Entitypublic class Rating { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private Boolean isNa = false; private String comment = ""; @Min(0) @Max(5) private...

View Article

Ignoring request for not matching predefined routes

I have some Sanic Python app code where following routes are defined:def create_inspector(app): inspector = Sanic(configure_logging=False) inspector.config['KEEP_ALIVE'] = False inspector.app = app...

View Article


Which datatype to use at JPA entity to store and retrieve date using java 8

I am using java 8 version in my application, I have confused to use java date classes like java.util.Date and java.time.LocalDate at entity and dto level.Before java 8, we used to use either...

View Article

How to support multipart/form-data and application/json by a same method...

I have a POST method that needs to support both multipart/form-data and application/json.i.e. consumes = { MediaType.MULTIPART_FORM_DATA_VALUE, MediaType.APPLICATION_JSON_VALUE }When I'm supporting...

View Article


Restful FedEx Trade Document Upload API - Can't upload signature or...

I am working on the integration of FedEx Restful APIs. I have to call uploading images API so that I can use customized letterhead and signature in Ship API when requesting FedEx commercial invoice...

View Article

CORS with spring-boot and angularjs not working

I am trying to call REST endpoints on one application (spring-boot application) from another (angularjs). The applications are running on the following hosts and ports.REST application, using spring...

View Article

Java with Habarta typescript generator nullable/undefined handling

I have common java app with https://github.com/vojtechhabarta/typescript-generator for generating typescript api from java DTOs model.Mostly it works okay, but i got to a situation, when I need to...

View Article
Browsing all 3619 articles
Browse latest View live


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