Questions tagged as 'rest'

1
answer

Getting information from a JSON and saving in SQL Server using JavaScript

I have this code, which returns the information I want and shows on the page. Now I would need to save this information in a SQL Server database, how would that be possible? It's been really hard for me since I've never worked with API, JS...
asked by 22.10.2018 / 23:40
1
answer

After triggering a pdf download service on jmeter, can the "badly formatted" response be a pdf? If yes, how?

I'm working on a stress test where I download a file, in a very simple GET service: / api / report / XXXXXXXX / user / 23452 / file / 9989 / download Everything happens OK, I wonder if the download response, which comes with characters of...
asked by 28.11.2018 / 21:35
1
answer

Type mismatch: can not convert from Unmarshaller to Pool.Unmarshaller

I'm getting this error message in eclipse in a Rest project client.java code package cliente; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net...
asked by 17.08.2018 / 23:23
1
answer

Apis Rest for e-commerce

I'm trying to set up an e-commerce with a friend and we're thinking of putting together an api rest to access the database and creating a website and an application to consume it. As this is an e-commerce, I would like to know if the Rest APIs s...
asked by 24.05.2018 / 23:59
1
answer

HTTP Status 405 - Method Not Allowed in method @DELETE

I created a webservice that accesses a MySQL database, but I can not delete records, I always get the following return: HTTP Status 405 - Method Not Allowed . The method received in the request-line is known by the origin server but not supp...
asked by 20.06.2018 / 12:40
1
answer

Error deserialize JSON - How to solve?

I'm using jpa and I have these two entities: @Entity @JsonIdentityInfo( generator = ObjectIdGenerators.PropertyGenerator.class, property = "id") public class Categoria implements Serializable { @Id @GeneratedValue(strategy = Gene...
asked by 28.04.2018 / 22:45
1
answer

Getting JSON user data by jquery

I have a json that I'm running through json-server and it's at: link Within it, it has a scope of "users", which I would like to take. I have the following script I put together, it follows: $.getJSON(urlParam, function (data) {...
asked by 11.05.2018 / 19:38
1
answer

How to consume webAPI REST ASP.NET MVC [closed]

Well, this is what I'm developing, a Service Rest and an application that will consume this web-service (VIA BROWSER EVEN). Inmyproject,Ihavethemodel(inthecaseofmyOracledatabase),mycontrolerProductsController.cssthathasgetmethodgetproductnam...
asked by 14.02.2018 / 19:35
1
answer

What best practice to send authorization via HTTP header [closed]

I'm developing an api rest, I need to pass some data on all requisitions that are basically the required authorization. The data is: Token, unit and an id. What would be the best way to pass this via header. I tried something like this: Author...
asked by 01.02.2018 / 14:13
1
answer

I can not register data using webservice Rest JAVA

When registering data in my database using webservice the following error occurs. Sending 'POST' request to URL : http://localhost:8080/FazendaWS/webresources/fazenda/Usuario/inserir Post parameters : {"login":"felipe10","senha":"1234","email"...
asked by 03.02.2018 / 20:41