Questions tagged as 'rest'

0
answers

Download files using rest api laravel in Postman

I am designing a small file export service in laravel using phpoffice and dompdf. My implementation generates the files, but when I try it in postman to see how the download mechanism works I get this: Instead of a download event occurr...
asked by 02.03.2018 / 20:47
1
answer

angular 1.6 - post request does not show DIV

I am presenting a problem at the front level when making a request to a REST webservice, with the POST method, by clicking on the button, it is executed successfully, I get the response from the api, the same answer must show me a DIV with the m...
asked by 02.03.2018 / 13:05
1
answer

angular 1.6 - post request does not show DIV

I am presenting a problem at the front level when making a request to a REST webservice, with the POST method, by clicking on the button, it is executed successfully, I get the response from the api, the same answer must show me a DIV with the m...
asked by 02.03.2018 / 13:05
0
answers

Error generating .xls with ResponseBuild (web service)

I have the following service that has the function of downloading a previously modified xls file (in the comments is the function of each line or block) @RequestMapping(value = "descarga", method = {RequestMethod.GET, RequestMethod.POST }, pro...
asked by 23.02.2018 / 17:27
0
answers

Api Rest Xamarin forms c #

I have my api rest created in lumen (PHP) and it is in my MySQL hosting, I have my users table with the fields ID, DNI, Name, Position, updated_at and created_at, when I insert by POSTMAN I get it right (obviously only I put DNI, Name and Positi...
asked by 14.02.2018 / 23:25
0
answers

{"error": "unsupported_grant_type"} Angular

How about, I have the following code in angular to try to access the API of BMSKaseya, in postman I run it perfectly with the same parameters and Headers, but in angular I get the error {"error": "unsupported_grant_type"} Can you help me? acce...
asked by 06.02.2018 / 20:53
1
answer

SQLSTATE [42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax

I am developing a API with slim framework 3 that connects to a base de datos local. The problem is the following when I try to update an element of my BD by passing it a id said procedure returns the following...
asked by 27.01.2018 / 19:09
0
answers

Symfony2 Rest api, method PUT, request to null with multipart / form-data

link From what I have seen in the post that I left there is a bug in PHP that makes the request null with this type of content type, does anyone have a solution to pass files to a service rest with the method put? .I have solved it using po...
asked by 17.01.2018 / 09:57
3
answers

JMSSerializer Bundle does not serialize relationships

Controller: public function newUserAction(Request $request) { $errores = array(); $usuario = new Usuario(); $foto = $request->files->get('foto'); $email = $request->request->get('email'); $username = $request-&...
asked by 12.01.2018 / 09:14
1
answer

Return any Json in an endpoint

I have an endpoint in gae, but I need to be able to return a String that contains a json, without creating a POJO, but I have not found a way to do it, this is one of my endpoinds: @ApiMethod(name = "get", httpMethod = "POST", path = "/get...
asked by 17.01.2018 / 21:37