Questions tagged as 'rest'

1
answer

Post in two tables simultaneously in AJAX

The code below it is working, however my question is: Is there any way to do a post on two different addresses simultaneously using that same code without repeating it? For example, in the code below I insert data into a table, but there are...
asked by 03.02.2017 / 12:52
2
answers

How to return image from DataSnap Server and show in browser

I developed an application made with Web Service REST , where the data is consumed for each client request, everything works perfectly, I created Web Service REST from DataSnap REST Application , so a form is available to dete...
asked by 21.10.2016 / 15:56
1
answer

Modify URLs for REST requests

I have a service running in Delphi in DataSnap REST , to access any function of REST via link would be like this: servidor:porta/datasnap/rest/classmethods/funcao/parametros I needed to change the url from /datasnap/rest/clas...
asked by 07.10.2016 / 14:52
1
answer

Pull APIs Rest and display the data on the screen

I can make an ajax for the service and return the data, I can display the first Product object and its properties, but when there is another object inside ProductImage that has more than 5 objects inside, I can not view their data $.getJSON(...
asked by 31.05.2016 / 15:58
1
answer

What is the relationship between OAuth and Rest?

Good evening. I would like to use the API of a particular website (Market Paid to be specific) to build an application. Studying a little of their documentation I have seen that their API is Rest based and use OAuth, although I know that this...
asked by 18.03.2016 / 05:23
1
answer

URL pattern in RESTful service

I'm developing a service that will provide some functions for external access, using REST architecture. It is the beginning of a RestAPI for the company. But let's get into the problem. I need to update some punctual data for a particular produc...
asked by 19.04.2016 / 15:05
1
answer

jQuery calling an action

I'm developing a web site in ASP.NET MVC that uses jquery to control some plugins like spinner, toastr and others. My question is if I should call Action via jquery to validate the model and within Action make a call rest (which was built...
asked by 13.09.2015 / 00:56
1
answer

Get client's ip on request

I have a REST service in my application and I want to get the IP of the client that is calling, use Spring-mvc in this project, here is the source of the service /** * HttpServletRequest. */ @Autowired private HttpServletRequest request; @R...
asked by 17.03.2014 / 17:53
2
answers

Transaction control application rest in spring

I was studying a bit about the @Transactional annotation (Spring version), and I had a question. According to a publication made in DevMedia , the way more correct "to use is noting in our business method, because there can have several acti...
asked by 25.05.2018 / 19:09
1
answer

3 doubts of new user post with spring boot

I have the following doubts when saving a user to an api using spring boot. 1) Is the best way to check if email already exists? 2) In case I am sending the id of the user just saved, but it is not being sent as json, it is only sending th...
asked by 01.04.2018 / 04:16