Questions tagged as 'rest'

0
answers

Does not recognize $ _FILES codeigniter

I'm trying to send an image using postman and working with codeigniter REST API test code: public function profile_post(){ $file = $_FILES['userfile']['name']; $this->response(array('message' => $file)...
asked by 05.06.2018 / 04:30
0
answers

fill list within retrofit Onresponse

The project I'm doing is practically an application on android that I consume a ApiRestFull practically everything works fine I bring the elements set them and the response.body if the elements respond. Error: When declaring a...
asked by 08.06.2018 / 02:59
0
answers

Error in Codeigniter REST

I have the following error { "": "Unknown method" } my controller Orders : <?php defined('BASEPATH') OR exit('No direct script access allowed'); require APPPATH . 'libraries/REST_Controller.php'; class Orders extends REST_...
asked by 31.05.2018 / 19:29
1
answer

Consume Api rest with Visual Basic.net

beforehand thanks for any help, I would like to consume an api rest that has authentication OAuth2.0 ie by token. I would like to begin is to be able to make the request post to the url sending the credentials but I have no idea how to do it...
asked by 28.05.2018 / 04:22
0
answers

Consume a stream in angular

I have a rest controller that responds to a StreamResponseBody and I write information in the pause with some seconds x, and so on until I finish all the information, and I want to consume it with angular with http get (). subscribe ((response)...
asked by 24.05.2018 / 01:08
0
answers

Store in Cache rest service using Volley

Hello friends I have a question, I'm using a rest service using the Volley library in android studio. Someone who can advise me to store the results in cache. Annex My classes: REST service consumption public void LoadOrdenesAsignada...
asked by 23.05.2018 / 00:08
0
answers

golang gin web framework, invalid memory address or nil pointer dereference

I'm doing tests with gin and gorm , I have the following program: package main import ( "fmt" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql" ) var db *gorm.DB var err error t...
asked by 22.05.2018 / 23:22
0
answers

How to recover Java service JSON?

I am creating a REST service exposed from Java, I am working in Netbeans because I saw that it was much easier to generate the code from the database model that I have already defined and created, now the service works for me but I it returns al...
asked by 22.05.2018 / 22:00
0
answers

Bookshelf.js and Knex.js

I have created a database with fields that can not be null, when making an insertion or an update using the "forge" method of bookshelf.js, create the records even if the information is not sent, how can I prevent If the fields do not have infor...
asked by 08.05.2018 / 06:13
0
answers

Spring Rest Data hateotas pagination (Problems with next and previous button)

I have managed to create a simple pagination but I do not know how to add the typical Next , Previous and the total of pages that there are. I will try to leave the code I have, I use the MVC Pattern although there is an intermediate class...
asked by 09.05.2018 / 00:32