Questions tagged as 'rest'

1
answer

REST / JAVA + ANGULAR2 authentication

I have a api rest in java and need to perform an authentication (login / password). I'm building on this java code that uses Jwt: link My question is: how to treat this token in the angle and authenticate the user? Every source of study is...
asked by 11.02.2018 / 15:41
0
answers

How to receive the username of the logged in user when sending a message through REST?

The intention of this project is to make a Chat Room. I have 2 tables, Django's predefined User table and Message table, where messages sent by users are stored. I want a user to send a message, via a form sent to the table by the sendMessage...
asked by 19.02.2018 / 03:06
0
answers

Error MongoDB - geoNear "no geo indices"

To get a MongoDB database I use the following code: router.get('/multibancos', function(req, res, next){ MB.aggregate().near({ near: { type: "Point", coordinates: [parseFloat(req.query.lng) , parseFloat(req.query.lat)] },...
asked by 08.02.2018 / 23:19
0
answers

How to deal with 400 error messages

Work with an application made in xamarin that sends several requests to the api. Eventually, a user action gets a BAD REQUEST because the user tried to enjoy a photo that she had previously enjoyed, or try to follow another user she was already...
asked by 07.02.2018 / 18:16
0
answers

Quotation in json with the return of the value of Commodities like Soybean and maize

I'm retrieving a list in JSON / XML using the function of getting commodity day quotations like SOYBEANS and CORN. Could you tell me a source?     
asked by 07.02.2018 / 14:50
1
answer

Tomcat maven web project rest application do not work netbeans

Personal I created a simple application to make a web service I did it as follows netbeans file - > new project - > Maven (web application) I created a class called RestApplication package br.com.teste.testeteste.rest; import javax.w...
asked by 29.03.2018 / 23:01
0
answers

Error: 500 When registering data using webService

When registering data in my database using webservice the following error occurs. Sending 'POST' request to URL : http://localhost:8080/FazendaWS/webresources/fazenda/Usuario/inserir Post parameters : {"login":"felipe10","senha":"1234","email...
asked by 05.02.2018 / 01:48
0
answers

Consume Rest API in C # by Ajax in jquery

Hello I have a C # API that returns me an object in JSON Follow the code [HttpGet] public string Login(string Pass, string User) { Return ret = new Return(); try { UsuarioDA...
asked by 28.01.2018 / 21:23
0
answers

Using codeIgniter 3.1.7 + codeigniter-restserver-master using the PUT and DELETE verbs returns 401 Unauthorized

Using the codeIgniter 3.1.7 + codeigniter-restserver-master using the PUT and DELETE statements returns 401 Unauthorized config / routs.php file      defined('BASEPATH') OR exit('No direct script access allowed'); $route['default_contr...
asked by 26.01.2018 / 16:12
2
answers

Download Zip Files through blob array

I have rest in java where I get a byte[] of a ZIP file. If I access the API URL through the browser, the file is usually downloaded without error. But if I try to download the file through an implementation using new B...
asked by 21.01.2018 / 13:32