Questions tagged as 'rest'

1
answer

Get the first element of an array with AngularJS

I'm starting in angularjs and I've already created my first API with djangorestframework . I have this factory and a controller to consume the data: (function(){ "use strict"; angular.module('core.controllers', []) .controller('...
asked by 22.04.2016 / 04:13
1
answer

How do I create service contracts in webapi

I'm doing an API in .Net Core 2.0 and I need to know how to create a service contract based on the SOA Contract Centralization link    In WCF, the WSDL is created and the classes are marked with [ServiceContract] and   [DataContract] Is...
asked by 16.05.2018 / 07:29
3
answers

Rest angular Access-Control-Allow-Origin

I get this error:    Request from another blocked source: the same origin policy   prevents reading the remote resource in link   (reason: missing the CORS header 'Access-Control-Allow-Origin'). My server is an application Java i...
asked by 19.12.2016 / 13:04
2
answers

Get json of a rest api and show it in angular

I have this rest api that returns names of a database. The issue is that I have tried several ways to show it in angular and I have not managed to do it. Url of the answer .json http://samp.newclan.com.uy:3000/api/names AngularJS...
asked by 03.01.2017 / 18:53
2
answers

Consume RESTful Web service in ASP .NET

I have a situation, I must consume a RESTful Web service with OAuth2 authentication and my application is developed on ASP.NET. What can I use to consume this service? How should I create the client using libraries like OWIN or others?     
asked by 04.02.2016 / 18:02
1
answer

JAX-RS and JSR 311

Well my question is this: what is the difference between JAX-RS and JSR 311 ? Since I understand that JAX-RS is an implementation (that is, an API) of JSR 311 and JSR 311 is the specification. But I have found A...
asked by 24.08.2016 / 18:46
1
answer

Date in HTTP header Date incorrect?

After an HTTP request to a REST api I receive the following header HTTP/1.1 200 OK Server: RestDriver POST/1.0 Date: mer, 10 gen 2018 13:20:34 GMT The time of my system, being "01:00 GMT", indicated to me 13:20:34 Is the Date header inv...
asked by 10.01.2018 / 13:29
1
answer

consume a web service with Rest API with xml input parameters

I have to consume a service REST with C# , but the truth is that I'm a bit lost on this issue. on the one hand, the service to be consumed, requires several XML parameters that have the following format <?xml version="1.0" e...
asked by 22.07.2017 / 03:06
1
answer

Method not allowed when accessing a REST API

Good I have a problem that has me desperate, to see if someone can lend me a hand, the situation is as follows. I have a REST API in Symfony 3, which I use with an Angular front, the application as a whole works perfectly in an Apache server...
asked by 16.05.2017 / 20:00
3
answers

How to generate a POST response, with Django REST Framework Bulk?

I would like to know what is the way for the Response of a POST with rest_framework_bulk, to be modifiable since by default it always returns the same object or array of object that is sent to it by the service. model: class employee():...
asked by 20.03.2017 / 21:49