Questions tagged as 'rest'

1
answer

Convert JSON to object with GSON

I have a webservice ready, which returns a JSON of an object, great, working: Here is the returned JSON: {"Opa":{"nome":"Teste1234"}} This JSOn is of the following class: public class Opa { public String nome = "Basico"; } GSON simply...
asked by 16.08.2016 / 17:00
0
answers

Version control Rest with laravel

I am doing an update on an application Android which has as back-end a api REST with php Laravel . I would like tips on how to do version control of this api . For example, I had to make a change in a table in...
asked by 13.09.2016 / 15:57
0
answers

Client Rest + WPF - PUT Method (UPDATE)

Hello everyone! I'm trying to implement a method to update (update) information in a WPF application. Apparently, everything is correct, however, the method does not work. Here is the code: This is the PUT on the server side (Controller): p...
asked by 18.08.2016 / 17:22
1
answer

Authentication and dynamic permissions

I need to make a series of features available in a REST service, but security is dynamic. That is, an administrator can change the permissions according to his will. In my searches, I only find authentication forms where permissions to resour...
asked by 22.06.2016 / 16:40
0
answers

How to use Token with PHP Rest

asked by 23.07.2016 / 17:42
0
answers

Jmeter - Simulate Thousands of Simultaneous Users

I have developed an API Rest, and I am doing some tests in the approval stage. This API has the function of integrating certain branch database information with the array database. I wonder if JMeter can test thousands of user connections?...
asked by 31.05.2016 / 01:18
0
answers

How to get nested rest?

I have classes Pessoas , Profissoes , ProfissoesPessoa and QualificacoesProfissoesPesssoa In theory, my Models are as follows: # -*- coding: utf-8 -*- from django.db import models from django.contrib.auth.model...
asked by 25.03.2016 / 20:15
0
answers

Requesting in the Twitter API using Jquery and Ajax

I'm trying to fetch data from a Twitter page, with no success so far. I got the access token through the PHP Controller, and I intend to use it to make requests. var token = 'Bearer <?php echo $token['twitter'] ?>'; $.ajax({ type: '...
asked by 03.05.2016 / 20:54
0
answers

Use SELECT NEW JPQL to populate DTO in an @OneToMany relationship

Talk to people !! I'm trying to popular my DTO object, whose main object has a OneToMany relationship. Here is the code for your observations: ## Mapped Object: public class Usuario implements Serializable, EntidadeBase { private static...
asked by 24.04.2016 / 14:31
0
answers

REST + CDI (dependency error)

Hello, people, I've come to get some help because it's my first contact with CDI and he can not find my resources. I will post classes that involve annotations, injects and bugs from the console. I hope you will guide me! These are the error...
asked by 07.12.2015 / 15:46