Questions tagged as 'api'

1
answer

Status of colors for inventories, PHP and JS

An inventory system is being developed, where after registration they appear in a table. In the registration form you must specify quantity , reorder_level (cantidad minimima) , 'target_Stock (maximum amount). By certain proce...
asked by 28.11.2018 / 23:38
2
answers

Reload the page when submitting in a form that consumes an API

I have a form in a modal window, which makes a POST to an API on the server, and then the server saves the information in the DB. The server is made with Node Js and express. The problem is that when doing the submit, the IP address of the API i...
asked by 04.12.2018 / 02:31
1
answer

How can I send an image (or more) from C # to my REST API and save it in mysql?

The following is my code and it works to send data from C # to my REST API and this information is stored correctly in the database: so I send the information from C #: using (var WC = new WebClient()) { WC.Headers...
asked by 31.10.2018 / 21:23
1
answer

API with ASP.NET, running a POST sends blanks

Hi, I'm pretty new to this .net and had to create an API to make a simple record, create it using the sig. video link The API works I can do the GET, POST, PUT but note that when I do a POST the data is saved with a lot of blank spaces, exa...
asked by 28.09.2018 / 01:16
1
answer

does not accept images codeigniter

Why does not the image accept me? Code public function imagedata_post(){ if (!isset($_FILES['userfile']['name'])) { $this->response(array('message'=>'no image'),200); } else { $date = date("Y-m-d");...
asked by 05.06.2018 / 19:31
1
answer

INFINITE LOOP HIBERNATE APIREST

hi how I am currently doing a project with these technologies HIBERNATE (TO CREATE ENTITIES AND DEMAS) JPA (ETC. CONNECTIONS) JDBC (CONNECTIONS OF ANOTHER TYPE) SPRING MVC (TO CREATE THE DRIVER AND RETURN JSON) The detail is that I...
asked by 02.06.2018 / 17:27
1
answer

Generate model for the response of an api

At the moment of consuming an api, the next response returns. [ { "MiKey": 0000, "MiKey": 02, "MiKey": "CADENA", } ] Fictitious data My Model: public class RootObject { public int MiKey { get; s...
asked by 24.05.2018 / 14:54
2
answers

how to show a ProgressBar or a ProgressDialog while I'm doing a query with retrofit

I am working on a app which uses a Api to query a web server through retrofit . In my project I use the pattern MVC , and what I'm looking for is to enter a ProgressBar or a ProgressDialog q show up when I...
asked by 09.05.2018 / 01:33
2
answers

Store values in Array from fetch

let arrayDatos = []; arrayDatos = fetch('url') .then(response => response.json()) .then(posts => return posts) I'm trying to fill an array with data that returns the fetch function, but asynchronous Javascript I can not fill it. U...
asked by 09.04.2018 / 21:52
1
answer

error when passing JSON parameter

When I pass the parameter that a JSON expects, I get the error that "can not convert value type String to expected argument type JSON" (aka 'Optional Dictionary (String, Any') this is the data var params: JSON = ["token": token, "system":...
asked by 21.03.2018 / 17:36