byte[] as an input for a rest web service

having problems with the following. i can't seems to pass in the byte[] created from a file into a web service. when i execute my client code, the server log throwing nullpointer for the pdfFile byte[]. please assists here. Server side: @RequestMap...
more »

2017-10-04 07:10 (1) Answers

how to get resource's availability using web api?

CRM 2016 exposes odata/web api, and has functions and actions out of the box. With the organization service, we can issue a request like this: // Create the van required resource object. RequiredResource vanReq = new RequiredResource { Resourc...
more »

2017-10-03 21:10 (0) Answers

Rendering an image from the Unsplash API in Rails

I have extensively researched this matter both on Stack Overflow and Google but found nothing conclusive. Since I'm completely new to the concept of API usage within Rails I have to ask for some advice. I have followed the procedure from the github ...
more »

2017-10-03 19:10 (1) Answers

Receving access token from api with oauth in c#

I want to use Newsletter2Go API. I've downloaded a c# example, added the compiled library and tried to getting started with receiving a access token. I'm new to programming with a REST-API but as far as I've understand I need to connect with my api-k...
more »

2017-10-03 18:10 (1) Answers

What are additions in Swagger 2 over Swagger?

I am implementing swagger for REST layer documentation. Now swaggerfox has come up with swagger2. I am not able to distinguish new changes in swagger 2 than swagger. I have very plain simple documentation requirement. Is there any reference for that...
more »

2017-10-03 14:10 (2) Answers

Why is REST considered less coupled

In the explanation of the differences between web services or (Web) APIs there seems to be agreement that REST results in a less coupled architecture. For example: https://tools.ietf.org/html/draft-li-sdnrg-design-restapi-02 mentions that REST is...
more »

2017-10-03 09:10 (1) Answers

Sending multiple objects in HTTP Request (Spring)

I'm currently "migrating" from SOAP to REST services. (legacy code) There are several methods that send objects in the request, the objects vary in type and number, I'd like to do something like this. public long getRelationship(@RequestBody Relati...
more »

2017-10-02 22:10 (1) Answers

Pass parameter from sheet in Powerquery headers

I am querying a REST API in Get & Transform (FKA PowerQuery) in Excel 2016, and I want to parse the API key from a sheet in Excel with parameters. If I hardcode the API key in the query as part of the headers, all works fine, but if I import it ...
more »

2017-10-02 22:10 (1) Answers

Spring Rest Controller

I can't make spring serialize the response when results is array/list . So when I call clients from RestController it does return [{},{},{}], instead of real objects, all other methods works just fine. package com.test.Domain.Client; import javax.p...
more »

2017-10-02 20:10 (2) Answers