Questions tagged as 'rest'

2
answers

How do I get a return of an ArrayString on a GET call with task.resume ()?

Good afternoon, everyone. I'm having trouble loading the contents of a PickerView into my app, because for this it needs to fetch the information on a GET call, the call works and I can set array to the content I need, but I can no...
asked by 29.10.2015 / 20:12
1
answer

Consume a RESTful service with angular js

I've done a project in eclipse with a service rest in java, if I run it directly in the browser my service it returns me my right data: http://localhost:8080/Agenda/rest/Agenda/getLista Now I want to consume and display in a table with ang...
asked by 27.09.2015 / 15:57
1
answer

Paging table with AngularJs

I was trying to put a pagination on my table, after a help I partially solved the problem, but it did not stay the way I expected. I can already get the currentPage with each click on the < pagination> the problem is on how t...
asked by 24.09.2015 / 19:55
1
answer

Is there any tool that makes it possible to create an API based on my database?

I have a database all modeled and with a mass of data, now I need to develop an application that makes available through this REST API this database. I have two development fronts, the frontend and the backend. Is there any way to make this data...
asked by 13.09.2015 / 03:18
2
answers

Consuming Json with AngularJS

I'm trying to access a EndPoint through AngularJS. This is my Service: angular.module('empresa-view') .factory('empresaService', ['$resource', function ($resource) { return $resource($SERVICES_CONTEXT + 'empresa/:params',...
asked by 11.09.2015 / 15:19
1
answer

JSON-RPC or RESTFULL?

Between developing an API using JSON-RPC or REST (RESTFULL), I would like to know in which cases there are advantages / disadvantages in using one or the other. OBS: It can be through knowledge / experience or reference sources.     
asked by 08.06.2015 / 16:36
1
answer

Problem with filters and routes in laravel

Hi. I'm creating an api in laravel. And I have a problem with the routes and filters for access. I have the levels of client, operator and administrator. I have routes that are common for client, operator and administrator, I have routes f...
asked by 15.01.2015 / 22:44
2
answers

Implementation AngularJS consuming data provided by Laravel using CORS

I'm trying to create a web service in Laravel 4, which will be consumed by a mobile application using AngularJS. When I make AJAX requests with AngularJS, it gives Cross Domain error because it is in another domain. How to solve?     
asked by 16.12.2013 / 12:07
1
answer

Generic Method for REST Query

I need to refactor this method to make it work better. This method works flawlessly when calling an external API Rest return list. However, it gives an exception when the external API return object Rest returns an element only. publ...
asked by 24.06.2017 / 22:03
1
answer

Form field filled in but given as $ pristine

I am making a request $ http, the return is a JSON, attribution to the model ($ scope.elaborator), however the field is still set to $ pristine. Data.post('getElaborador', $rootScope.codigo, 'Listagens').then( function(success){...
asked by 15.12.2016 / 14:38