Questions tagged as 'rest'

1
answer

Show JSON with API from Angular 4

I try to show my Object from a GET service but I can only see [Object] [object]. Service: return this.http.get('http://localhost:3000/words').map((res: Response) => res.json()); Controller: export class WordsComponent implements OnI...
asked by 23.07.2018 / 15:44
3
answers

Read Json ionic 3

I need your help on how to read or how to process data from a JSON (Object) that comes from a Java WS. What I've done is use HTTP from IONIC; the server responds correctly My question is how to read this Object (jSON) in IOnic. My WS return...
asked by 12.06.2018 / 16:01
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
2
answers

Get Token-Jwt on Ionic

I am consuming an ApiRest in which I get a Token Jwt. The problem I have is that for example the token I receive comes in the following way: Code: let jwt = jwt_decode(resp); Token Obtained: {"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVC...
asked by 16.10.2018 / 06:05
1
answer

Error receiving server data

I'm starting a project to connect to a socket server and I can not get it to work. I put the code and explain. <script type="text/javascript"> var direccion = 'http://xxx.xxx.xxx.xxx/api/miurl'; new Vue({ el: '#main',...
asked by 25.04.2018 / 14:45
2
answers

List an array of objects from JQuery, RESTful service using @GET, Java HTML

I have a RESTful service which stores data through a JQuery that sends a json to a POST method that inserts the object into the database. I also have a method that reads the records from the base, and stores them in an arrayList of objects, w...
asked by 17.04.2018 / 06:17
1
answer

Run two instances of tomcat in different ports

I'm trying to run two instances on different ports. We have tested server.xml and created two connectors but they are not created. The port is listening but when I enter from the browser it says that it does not exist     
asked by 13.04.2018 / 12:27
1
answer

Send PhoneGap data to Web Service

I'm creating an app with Phonegap and I do not know how to send a string from my .js to a web service that I have created with Java, some suggestions I'm new to this and I do not find anything clear, thanks. My JSON function is as follows myfu...
asked by 10.03.2018 / 14:55
1
answer

PHP Create Api Rest with drivers in Slim3

I am learning the Slim3 framework to create apis rest / full, I found several examples, for example in routes.php $app->group('/v1', function () { $this->group('/auth', function () { $this->map(['GET', 'POST'], '/login', '...
asked by 06.12.2017 / 12:27