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

Is it possible to expose/add your custom APIs to the existing Spark's driver...

Spark exposes certain API endpoints (usually mounted at /api/v1). Is their someway to expose custom end-points using the same spark server?( Using Spark 2.1.1 , Structured Streaming )

View Article


Image may be NSFW.
Clik here to view.

Unable to Fetch Firestore Data Using Nested Collections in Flutter

I'm having trouble fetching data from Firestore using nested collections in a Flutter application. The data is structured as follows:users/{userId}/tests/{testType}/test_set/{testSetId}Image of data in...

View Article


Why my rest api call is slow while reading and writing to a file [closed]

I am trying to upload an inputstream using below code@PutMapping(value="/fileupload", consumes={MediaType.APPLICATION_OCTET_STREAM_VALUE}pubic ResponseEntity<String> uploadFIle(InputStream...

View Article

Unable to create view from models, created from complex JSON classes

This is my string in index method. I am trying to convert my JSON string to object of MultipleClasses and want to display in my view. But unable to do that.if (response.IsSuccessStatusCode){ data =...

View Article

How can I fix this error with my API (404 not found)

I'm making an application that takes codes from mongoDB and lists them onto a web page, but currently I'm getting an error in the console:GET http://localhost:4200/api/code/codes/ 404 (Not Found)...

View Article


How to easily expose endpoints in a format like Spring Data REST?

I use SDR in our project and it generates hundreds of endpoints, but whenever I create a endpoint manually i struggle to make all those links to all the entities, is there an easy way to do this ?My...

View Article

restful sub-object best practices for GET method

I'm facing with a frequent restful api design issue, and i'm not sure about what to do. Actually i can't find any best practice/clue to know how to proceed...for GET routes, for example, I have...

View Article

Why do i get random characters as a response to my curl get call in php?

I am trying to get a list of deliveries using this GET call:https://datalink.hconnect.digital/api-products/basic#get-https-//api.hconnect.digital/ecs/v2/deliveriesHere is a picture if the link is...

View Article


"Http failure during parsing" in Angular

I am trying to connect my Frontend in Angular to an Api developed using .NetCore but I am getting the following errorHttp failure during parsing for http://localhost:5000/User/registerDespite the error...

View Article


How to add Authorization Header while accessing JSON in D3

I am working on D3 graphs to build some Interactive Dashboard. I can able to integrate graphs using static JSON. Now I want to get JSON from my running Server. My server needs some kind of basic...

View Article

Coinbase Advance Trading API returns "Error: account not available" when...

For the past while I have been trying to get this crypto trading bot to work. The problem is that while I can get/list accounts when I place an order I get a 400 error.The code:def place_order(symbol,...

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

Python Flask Reqparse failing to return help message on bad request

I am building a simple API and using reqparse to parse the args on a post request as follows:reservation_post_args = reqparse.RequestParser()reservation_post_args.add_argument('property_id', type=int,...

View Article


How do I create a REST API for a project for a hackathon using django which I...

I have to create a REST API for a project in django for a hackathon, I have never created one. I have worked on basic django projects but have not built an api.I tried following along a tutorial but...

View Article

When is it appropriate to respond with a HTTP 412 error?

It is unclear to me when you should and should not return a HTTP 412: Precondition Failed, error for a web service? I am thinking of using it when validating data. For example, if a client POST's XML...

View Article


How to make an Async/await fetch post? getting 500 internal server error

I have succesfuly made a fetch post to my php api with my thisWorks() function, but I am trying to use fetch with async/await post () function but I keep getting back a 500 internal server error...

View Article

Is Async Call Applicable when there is a single rest call?

I am implementing a simple project in Python where I make one Rest call to fetch some JSON response, manipulate that response, and display the result.Step 1: Make a Rest call, get a responseStep 2:...

View Article


'Error parsing HTTP request header' for rest request

I java Spring Boot Application with MongoDb and I want to add the ability to work with it through RESTWhen I try to make a rest request (via postman), I get a 404 error, although there is such an...

View Article

Fedex API Ship : Error 400 when downloading label PDF via URL

I use the Fedex API to generate shipping labels (https://developer.fedex.com/api/fr-fr/catalog/ship/v1/docs.html) but I can't download the label via the url provided.Here is the URL...

View Article

"Invalid Login Attempt" error while passing customer id from suitelet to RESTlet

I am trying to pass customer id from suitelet to restlet. but its giving error as Invalid Login Attempt Code 401Below is my suitelet script. Please Help!/**@NApiVersion 2.x@NScriptType...

View Article
Browsing all 3607 articles
Browse latest View live


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