Questions tagged as 'rest'

2
answers

Simultaneous calls in RESTful service

Hello, I am having doubts on how to make fun calls (about 100) simultaneous on a REST service. The code example I have is the following: using (var http = new HttpClient { BaseAddress = new Uri("some url") }) { using (var httpContent =...
asked by 13.09.2017 / 05:52
1
answer

POST Spring Data REST does not work with relationships

I'm having a project using Spring Boot and Spring Data Rest to serve a Rest API. When I'm serving an entity without relationships, it works without problems. The problem is when I use an entity with relationships. I can not add new entitie...
asked by 28.05.2016 / 16:18
2
answers

AngularJS + Sharepoint + Rest API

Personally I am currently trying to develop a script inside sharepoint using the Script Editor but it is falling into the error of my code, as if the connection was not correct, however, in the Dev Http google the rest request works. Here is the...
asked by 14.02.2014 / 17:54
2
answers

Web Api 2 - Routings are not working

I created a web service REST using Web Api 2, and in development everything is functional. I'm using a small variation of the default route: config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{numProtocolo...
asked by 26.02.2014 / 20:45
1
answer

Authentications via OAuth for REST APIs

In almost all social networking APIs it is necessary to authenticate your app with OAuth, in order to use the features of it. How is this process? In my case, I'm trying to get a list of the followers of a particular blog via the Tumblr AP...
asked by 22.04.2014 / 20:17
2
answers

Cut bi-directional relationship looping

I'm having a Spring project, using JPA and Liquibase, I have a two-way relationship between two entities, I wonder if anyone has a solution to the infinite referral problem between the two? For example, I have a Question that has many answers, a...
asked by 10.06.2016 / 13:45
2
answers

How to send a POST request to a REST API in PHP?

I consider it quite simple to execute a GET request, I usually use: //$serverurl contem a url da api para a função desejada try { $cursos = file_get_contents($serverurl); } catch (Exception $e) { } After getting...
asked by 17.12.2013 / 15:22
3
answers

What is the correct way to pass the paging data in the REST response?

In more robust applications where a table can have millions of records, it is important to implement paging in a REST API. I have seen in some projects two ways to return paging information (page number, page size, sort order, etc.) In the bo...
asked by 12.04.2017 / 19:31
2
answers

Many relationships for many in RESTful service

I'm starting to work with RESTful services and I'm having doubts about many-to-many relationships. For example, suppose I have two Cliente and Fornecedor entities and that Cliente has a list of providers, the providers from...
asked by 24.07.2014 / 22:08
2
answers

Handling Exception Services REST Spring

In a REST service application with Spring, where should exception handling / posting occur? No Controller or Service? Example 1 - Handling the Controller (In case I'm just returning a badrequest as an example) @GetMapping public ResponseEnt...
asked by 21.03.2017 / 16:54