Questions tagged as 'rest'

1
answer

Receive Json WebService

I have to get an answer from an external web service that contains a json, this answer has to reach my web service, let's say https://ejemplo/json and since I'm new using web service I do not know how to do this, my idea is that I come th...
asked by 28.10.2017 / 20:44
1
answer

Is there a way to implement an ORM repository with a Rest service as datasource?

I wanted to make several applications / modules that communicate through webservices Rest, I like to use the dao pattern and I was looking for if jpa or hibernate or spring data (in general an ORM), they allowed to do this kind of thing, that is...
asked by 01.07.2017 / 02:09
2
answers

Send console values by REST API

I have a project in Spring Boot that connects to Postgresql and sends the values by console , what I'm looking for is to be able to send it through JSON in a REST query, but I do not know which part to change the project. That's what I'm lookin...
asked by 09.08.2017 / 23:23
1
answer

Insert a document in HCP with python

Hello I hope you are well, I have problems uploading a document to HCP (Hitachi) this is the code that I'm occupying import http.client projectName = "Prueba" hcpConn = ".prueba.local.mex" headers = {'Authorization': 'HCP ZONud4M=:85e704...
asked by 09.06.2017 / 18:40
1
answer

error: int can not be deferenced

I have the following piece of code preteneciente to a REST service created automatically by Netbeans 8.2 after having created the entities using the Database. @POST @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Transact...
asked by 16.05.2017 / 15:06
2
answers

Redirect to URL in java REST? or not redirect?

I understand that Rest is an architecture between a server and a client, httpRequest and httpResponse, it is the topic that we are seeing in a course that I am doing. The problem is that I'm doing in Rest a code that inserts data through paramet...
asked by 06.03.2017 / 19:26
1
answer

Problem with service consumption [closed]

I want to consume this Api rest link but it does not bring me the key to be able to bring the information well. This is the JSON to try { "email": "[email protected]", "password": "candidato2017" } Here is the documentation about t...
asked by 25.02.2017 / 07:31
1
answer

WebService REST with Genexus

I made a REST WebService in Genexus Ev2, but I have problems to consume it through an angular application. When trying to consume it, I'm getting error 403, but if I try it with Postman or Advanced REST Client, I get the answer without problem....
asked by 13.04.2016 / 22:53
0
answers

Problems when deserializing Json in Xamarin

Hello, I have a problem when it comes to consuming data from an api rest. I have the following class: public partial class Assignee { [JsonProperty("self")] public Uri Self { get; set; } [JsonProperty("name")] public string Na...
asked by 20.12.2018 / 16:32
0
answers

Authentication with javax.ws.rs.client.Client

I'm trying to get a get to a service, which requires token authentication. It must be added to the header. The code that performs this action is the following: try { MultivaluedMap<String, Object> head = new MultivaluedHashMa...
asked by 13.12.2018 / 17:42