Questions tagged as 'rest'

1
answer

JAX-RS Overwrite method with same path

Currently I have a generic rest service, which receives all the calls and processes them according to the type of operation. Some of the calls would be: / user / 1 / v3 / people / user / 1 / v3 / machinery Then depending on whether t...
asked by 27.11.2018 / 11:02
1
answer

Error consuming webservice

I have a webservice rest, now in c # I have a function that receives a json in string format and I send it to the webservice, but the webservice tells me that the json is wrong. Can you tell me if it's wrong? ///xs var exPrecioStock...
asked by 09.05.2017 / 23:44
1
answer

jax-rs What is the difference between using pathParam and queryParam in a web service?

If I have this code for a rest service in java JAX-RS @Path("/message") public class ExampleRestService { @GET @Path("/test/") public Response printeMessage(@PathParam("param") String mvar ){ String resp = "Mensaje restf...
asked by 26.09.2018 / 06:00
1
answer

Publish REST API in heroku

I need to post a API REST in heroku . I have uploaded the project structure to the hosting with the required git commands. In addition, I created a database in heroku through phpmyadmin . The file .env of the p...
asked by 29.05.2018 / 13:18
1
answer

How can I apply security to my Restful service in c # [closed]

I would like to know how I can apply security to my restful service that returns important customer data. I have no idea what to do and I am new to this.     
asked by 18.05.2018 / 22:30
1
answer

Return Json to the client

I explain my code a bit: I have a form that worked under PHP and to learn what is happening to GO, it turns out that I want to verify if a person is already registered, with which I ask for your ID and launch the action "ExistencePersona". I...
asked by 09.02.2018 / 15:22
1
answer

Get data from an array of json objects

Hi, I'm trying to get the data from an array of json objects and save them in a different javascript array For examples I get this JSON through an api rest [ { "temperatura": 2.3, "fecha": "2018-02-05T06:13:01.000Z"...
asked by 07.02.2018 / 02:09
1
answer

Get a listing given an identifier in agularjs with api rest

Good evening I am developing an application with angularjs using rest services and perform a method to obtain a list of visits from a specific person for which I pass the ID number And I should return the list but it does not do so where is the...
asked by 10.08.2017 / 04:57
4
answers

Loadin angular rest

Suppose I have the following controller: test.controller App.controller('TestController', ['$scope', '$http', '$resource' , 'InitService', function($scope, $http, $resource, InitService) { $scope.createProduct = function(product) { Ini...
asked by 20.12.2016 / 16:43
1
answer

pass a JsonArray to an ArryList

I have the following code: import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; import java.util.Iterator; import org.json.JSONArray; import org.json.JSONObject; public class...
asked by 06.10.2018 / 00:40