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

URLSession across different REST endpoints for the same server

I have an app that makes a whole bunch of different REST calls to the same server from a bunch of different view controllers. What’s best practice with regard to URLSession: Share the same URLSession...

View Article


Image may be NSFW.
Clik here to view.

Azure Data Factory Uploading file using REST Multipart/form-data

I am calling a REST endpoint which takes a file as multipart form-data as the body. Here is the postman CURLcurl --location --request POST 'https://assets-api-uat.test.services/api/upload' \--header...

View Article


Image may be NSFW.
Clik here to view.

How to call PostgreSQL stored procedures from a WSO2 REST dataservice

I have a REST data service in WSO2 like this:<data name="RESTDataService" serviceNamespace="http://ws.wso2.org/dataservice/samples/json_sample" transports="http...

View Article

REST API Status Change

I am designing a REST API.I have a single resource that I want to be able to change the status of for different conditions e.g. the URI is:Applications/{application_id}/The possible status changes are...

View Article

How to fix this ParameterizedType error that works fine in debug mode but not...

I have a login flow in my app that uses Firebase Auth for authentication. I'm using both Google OAuth and Email based auth. The problem I'm facing is that login works just fine in debug build but not...

View Article


Image may be NSFW.
Clik here to view.

Improve my API Calls to SharePoint inside my PowerAutomate by using Batch...

I have this Child Power Automate flow that is been called 3,000 times each day from different automated and scheduled flow all over our solution.The flow manually does those main actions: -Accepts a...

View Article

How to enhance a Spring Boot REST API to deal with tens of thousands or more...

So I have been preparing and giving out interviews. I got asked this question in 2 of the interviews and I couldn't come up with a satisfying answer or maybe not what they wanted to hear.The question...

View Article

PHP cURL unable to set private key file: 'C:\...\cacert.pem' type PEM

I'm trying to run the PHP cURL request example of an API from a Windows/IIS web serverHere is the code:<?php$curl = curl_init();curl_setopt($curl, CURLOPT_SSLCERT,...

View Article


Artifactory REST API: how to add/append docker image artifacts to Build Info?

I have a bamboo server that builds docker images and pushes them to artifactory via reverse proxy. Since the push from the reverse proxy (NGINX) does not provide build information, I need to create it...

View Article


How to create a custom REST API endpoint for publishing posts with specific...

I'm a new with php and I am working on a WordPress project where I need to create a custom REST API endpoint that allows publishing posts with specific permalinks. Here's what I'm trying to...

View Article

Best practices for expressing metrics such as rates in JSON through an API...

I am working on an API (in Go) that queries and exposes sales data that will eventually be consumed by a charting/visualization library (not sure which one yet but will likely be React/JS based).One of...

View Article

Unable to return json in symfony 2

This is my controllerpublic function index2Action($name) { $em = $this->getDoctrine()->getEntityManager(); $test = $em->getRepository('RestWebServiceBundle:Test')->findall(); return new...

View Article

The RESTful API I am working with through Golang Gin sends a “{}” value

import ("net/http""github.com/gin-gonic/gin")type ogrenci struct { ogrenciNo string `json:"ogrenciNo"` ogrenciAdi string `json:"ogrenciAdi"` ogrenciRolu string `json:"ogrenciRolu"`}type ogretmen struct...

View Article


Deleting a database row using an entity with an embedded ID

I am working on an app that is utilizing JPA, Rest, Hibernate, Spring Boot, and running Java for the back end.I am calling to this method from another method, to blow away the record if someone deletes...

View Article

Real-time writing of text file to remote microservice [closed]

I am seeking an efficient way to augment the code below in order to POST to a REST microservice located remotely across the internet at mydomain.com/api/my-endpoint the contents currently written to a...

View Article


How to fix error in Postman's get new access token?

Configurations:Auth type: Oauth 2.0Client Id: providedClient Secret: providedgrant_type: client_credentialsI am trying to retrieve an access token in Postman by clicking "Get New Access Token" button,...

View Article

PHP cURL OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054

I'm trying to run the PHP cURL request example of an API from a Windows/IIS web serverHere is the code:<?php$curl = curl_init();curl_setopt($curl, CURLOPT_SSLCERT,...

View Article


Can some one simplify jwt authentication and authorisation in Django Ninja?

I have recently started using Django ninja for REST API.I found it extremely easy but for the authentication flow. I just can't understand what exactly I can do for the following.Create a registration...

View Article

Gin Gonic - Literal colon inside the URL

I'm creating some REST API with Gin Gonic in go.I have to expose this endpoint with this URL: /api/v1/action::request::exportI'm using gin gonic to create the routes and I got this error "only one...

View Article

REST API in Java - How to support PATCH with Hibernate Validator

When writing a REST-API in Java, the PATCH method requests that a "set of changes" described in the request entity be applied to the resource identified by the Request-URI. (see:...

View Article
Browsing all 3619 articles
Browse latest View live


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