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

Laravel Validation Request and API route POST parameter

I'm facing a little issue with Form Request Validation and how to handle it with one API route.The resource that I need to create depends on an other resource.(Here an EmailSettings belongs to a...

View Article


Making requests to Shopify apis in Shopify liquid file

How can I make request to shopify API from shopify liquid file?As the shop name and store's live website have different url's, it treats it as cross-originated request and require me to provide auth...

View Article


Is it possible to create an Android app as a rest controller? (Android...

I was wondering if this kind of app is possible to develop in Android with Android Studio.I would like to create an app that would receive requests from outside through a GET request, so this can be...

View Article

Cant select an entity by id in .net Odata Implementation

// GET api/Product/5 public Product GET([FromODataUri]int id) { Product product = db.Products.Find(id); if (product == null) { throw new...

View Article

oData v4 filtering by DateTime, string not converting to DateTime

My URI:$filter=IsActive eq true and IsAutomated eq true and WebSite ne null and WebSite ne '' and LastUpdated le 2018-12-30T23:59:59.99ZController:private readonly BrokerForgeContext...

View Article


Custom Method in WCF Odata Entity

I would like to add a custom method to one of Entity in my WCF OData project. Currently i have my service up and running.For all tickets : http://local.host/api/TicketService.svc/TicketFor one ticket :...

View Article

Rally REST API broken?

I have a code snippet that was working until the end of last week sometime.It is simple enough, for a given project name, give me the team members associated with it.The query itself works and gives me...

View Article

ExpressJS Postman POST request body is undefined

I am using the light version of Postman 11.0.12 on a Windows 10 server.My body values always returns undefined.If I use Query Params then key returns the correct value.I suspect could it be this...

View Article


RestAPI-Getting error while running the TestRunner file using Hooks

I tried to run the TestRunner.java file code with the help of Hook. Below are the details available. Please have a look and help me out to resolve the issue.StepDefinition.java File:package...

View Article


Image may be NSFW.
Clik here to view.

Strategies for Achieving Decoupling Between API Methods and User Interfaces

What are the proven strategies for achieving decoupling between API methods and user interfaces?I'm working on creating a REST API service for the application. And I noticed that my API methods are...

View Article

My spring app is running successfully but I cant open my API in browser?

When I enter localhost:8080/api and try to access different http request I failed.here is an example of my service class:package services;import models.Conducteur;import models.Trip;import...

View Article

How to send a POST response without terminating the execution flow [duplicate]

I have a Google appscript set up which serves as a webhook for the incoming POST requests. I want to make several operations on the data that I have recieved in the POST request before saving it to the...

View Article

Calling REST API from Visual Basic

I keep getting a 404 error.It works fine if I call the REST API from SoapUI.I’m using Visual Basic VS2015.I have a sample function which I’m calling from a simple forms project. This is just to get the...

View Article


POSTMAN for Multipart/form-data

How to use POSTMAN for Multipart/form-data which has customize header for testing my controller which takes 2 files as parameter (public ... controller( MultipartFile[] files))?POST .......

View Article

Spring RestTemplate: Cannot deserialize instance of `java.lang.Integer` error

Hello i am encountering an issue while using RestTemplate to make requests to another application in my microservices architecture. When I try to fetch data using RestTemplate, I receive the following...

View Article


I write a class for sending the custom response ,but i am not getting exact...

I am sending the inserted Id and the Payload which i am getting in request body as a reponse , i am getting the id but the request body is coming as each field which is mentioned in classExampleRequest...

View Article

Call and get response from web api in a winform c# application

I am making a simple WinForm Application in Windows and I want to get some data about foreign exchange rates. So I decided to call an API from Oanda. I tried several things around but nothing worked....

View Article


Seeing JDATA is missing or invalid errors below are two methods I tried using

Method 1:def get_positions(susertoken, actid): url = base_url +"PositionBook" data = {"uid": "TEST18","actid": actid } payload = {"jData": json.dumps(data),"jKey": susertoken } headers =...

View Article

How do I perform aggregate queries using SumoLogic APIs

I am trying to perform aggregate queries using SumoLogic APIs as mentioned here.Something like:_view = <some_view> | where sourceCategory matches \"something\" | sum(field) by sourceCategoryThis...

View Article

BigQuery connection in Salesforce Apex class

I need to fetch BigQuery table to show widget in Salesforce. I have configured connected app, I am able to get access token using connected app, but it is not working with Bigquery REST API. Getting...

View Article
Browsing all 3607 articles
Browse latest View live


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