Questions tagged as 'rest'

1
answer

Angular 2 and PHP

Hello, I'm a beginner in angular 2, I'm developing an application using Angular 2 and PHP, but when I take the json values it gives error:    ERROR Error: Error trying to diff 'Grand Tour'. Only arrays and   iterables are allowed and ERROR CO...
asked by 21.05.2017 / 03:48
1
answer

How to distribute entities between projects?

I doubt if there are good practices for distributing entities between projects. Let's say I have a microservice REST in java, that makes available a client (id, name, address) through the GET and another microservice that needs to consume this f...
asked by 05.05.2017 / 01:16
1
answer

Angular, Java Service REST

I'm trying to persist (insert data) using AngularJS and WebService REST in Java, when I click Insert, the following error appears in the console: >    POST link 415 (Unsupported Media Type). What could it be? // WEB.XML <?xm...
asked by 19.02.2017 / 18:06
1
answer

Rest with Angular 2 [closed]

In recent weeks I have been training a lot in angular 2. However, some doubts have arisen in the course of these studies and I would like the help of you for those who know how to heal such doubts. Come on: Question # 1 - In my studies I have...
asked by 10.01.2017 / 03:56
1
answer

How to request access token from server, only via frontend in a secure way, without human interaction?

Good people. I caught it here: I have an application on the frontend of a server, which needs to communicate with a Rest API on another server, without the client having to log in. The app that will request or send whatever it takes to authen...
asked by 13.12.2016 / 15:27
1
answer

Spring boot with error connecting to mysql

I created a test project by Spring Tool Suite to create a REST server that will connect to a local mysql database, when I start the app in error when trying to connect to mysql: java.sql .SQLException: Access denied for user '' @ 'localhost' (u...
asked by 12.10.2016 / 20:26
1
answer

How to ensure api's rest security

I am creating a system using the MEAN Stack and I had a question .. My angled client application makes a request for api ex: POST link If some malicious user finds the api url he could do a post without going through the client of my app...
asked by 08.11.2016 / 02:29
1
answer

How do I get parameters from a PUT request?

I'm starting to study Web Service and created an example of an API in REST. I'm passing parameters via PUT to the API and catching with parse_str in PHP but what returns to me is something completely different ... How do I get the para...
asked by 09.11.2016 / 13:52
1
answer

How do I get the response of an HTTP GET using HttpURLConnection java.net?

I have the following class: package com.akamai.edgegrid.auth; import java.io.*; import java.net.*; public class C { public static String getHTML(String urlToRead) throws Exception { StringBuilder result = new StringBuilder();...
asked by 14.07.2016 / 21:35
1
answer

Nested resources Rails

I created two models in the Rails application, and made their relationship through the declaration in the classes and in the database as well. I added the configuration to activate the nested resources in the routes file, the routes were created...
asked by 05.05.2016 / 02:56