Questions tagged as 'rest'

2
answers

Request blocked by CORS Policy

I'm doing an API with Slim Framework and when I test the answer with Postman everything works fine, however when I put it on the server and tried to make an ajax call to test I got the error below.    Failed to load link : Redirect from ' li...
asked by 15.09.2017 / 15:45
0
answers

What is the best strategy for updating data only when necessary?

In an application with React Native , using Redux and Redux-Persist , what is the best way to identify that content needs to be updated? In my case, I have an application that makes some requests on start up. When I enabled...
asked by 16.09.2017 / 17:27
1
answer

When executing POST passing object via URI of a WebAPI, the object arrives as null in the method

I have a few days of headaches with this problem I have an MVC5 fronted application and it sends an object to another WebAPI application in a Save () method. See the code of my Frontend application that sends the object to the WebAPI public...
asked by 16.09.2017 / 19:52
0
answers

Route is not being located on my site, but works on localhost

I have a service, with GET and PUT verbs. In localhost is ok, but when I host on my site I get this error, only when I call PUT :    IIS 7.5 Detailed Error - 404.6 - Not Found According to the provider's faces, this may be the route...
asked by 18.09.2017 / 13:59
1
answer

Output from my service does not match my password

In the output of my service, for the DataItems field, I have this: <DadosItens> Qtde 3 Custo 46,66Unitario 68,58 Margem 0Ult.Cond 30/01/2017 C. Diario 46,66 Total 205,73 </DadosItens> It turns out that I do not have any Label Qt...
asked by 13.09.2017 / 12:39
0
answers

AngularJs query data Sending object to the filter

I have a WS written in Spring that takes an object as a filter and returns a list of data. in my Java Service: @ResponseBody @RequestMapping(value="/{filtro}",method=RequestMethod.GET) public Datatable listar(@RequestBody PessoaFiltro filtr...
asked by 11.08.2017 / 20:10
1
answer

Return value in Json with angle 2 [closed]

I'm working on a project where I need to return a database value that is fetched via REST in json format. The front-end of the project is angular 2. I have a table of workers and need that when the user clicks the edit button, it already brin...
asked by 25.07.2017 / 20:29
0
answers

Creating Collections from Azure Cosmos DB

Well I was creating a Poc with Generic Interface for manipulation of my data, but I had difficulties doing with WebApi MVC, I did with good old MVC. But for all JSON issues, I think I lose a lot if I do not work with REST. Could you help me?...
asked by 18.07.2017 / 15:44
1
answer

View posts and featured image using REST API Wordpress

I want to display the last two posts of Wordpress using API Rest, after a lot of research and test I can do this gambiarra there, but after I put this foreach inside the other it was kind of slow, it would be nice if I could show the images of e...
asked by 19.07.2017 / 03:31
1
answer

How to pass value from service to var?

I have a REST service to fetch visitor values. However, I can not manipulate the values coming from the service outside the promise . export default{ data(){ return{ visitor: {} } } } created(){ this.VisitorService.show(...
asked by 26.06.2017 / 21:15