Questions tagged as 'rest'

1
answer

What is the best way to integrate Laravel with angular 2?

I know how to create an application using Laravel, and I also know how to create an application using Angular 2/4. But how to integrate the 2? would it be just creating a Laravel API and another Angular application? or do I have to create the An...
asked by 02.05.2017 / 23:37
1
answer

Error 405 - Cross Domain Request

Well, I was requesting my page from github (tiagosilveiaa.gihub.io) to my test server, just to execute the Script itself, but I was presented with a message that the protocols were different ( https x http) "" I have resolved "" by putting the a...
asked by 19.04.2017 / 03:33
3
answers

webservice REST GET method with token in external browser

I'm developing a client that consumes a webservice, all POST methods are ok. It has a GET method that should return an HTML page for customer registration. In this method, you need to define the header: content-type:"application/json"...
asked by 25.04.2017 / 20:17
1
answer

I can not "read" a JSON

I'm working on the FLUIG (TOTVS) tool, and I want to read a JSON that is delivered via REST. Here is a photo of the URL (intranet): Content:{"content":{"Matrícula_RH":"10555","UserDocLanguage":"pt_BR","UserEmailHTML":"true","UserProjects":""...
asked by 28.03.2017 / 13:32
0
answers

Use of framework in java web project

I have a project in Java that runs services (SOAP / REST) and we have a framework that supports this, generates a report, makes REST calls and etc, and I also have a java web project that captures a list in View that the user has entered. We wan...
asked by 11.04.2017 / 20:35
0
answers

Creating multi-point custom map, manageable by Wordpress

Do you know how to generate a json file in wordpress ?. I'm trying to create a map where custom dots are manageable by Wordpress, I'm using the ACF Advanced Custom Fields plugin where you create a custom field of the map type and can print...
asked by 13.03.2017 / 16:12
1
answer

How to catch the query string from a Restful request

I need to get the parameters passed by the URI, for example: http://localhost/endpoint/param1/param2/param3 if param1 == "adduser" id = param2 name = param3 Example of a function that did not work: I'm looking for a way to search...
asked by 24.02.2017 / 19:55
1
answer

URI Rest with HttpServlet

So, I'm developing a mini framework for study purposes, using the pattern front controller in java, and I came across the following problem. First of all, I'll explain how it works. I embedded the jetty server inside the framework, when I...
asked by 02.03.2017 / 02:51
0
answers

Example Login with basic auth authentication using Alamofire?

I'm trying to make a login screen where I use Alamofire to make the request, but with the examples from the Alamofire website itself, it's not working. If someone can help with a sample code, I would appreciate it a lot !! What's the probl...
asked by 06.03.2017 / 22:58
1
answer

Web api 2 within MVC project. How to prevent redirection to the login page when the token is not valid

I'm doing an API Rest in an MVC project. In the API controllers ( ApiController ) I place the DataAnnotation Authorize , when the token entered is invalid, it detects and tries to redirect to the login page. But I do not want this be...
asked by 02.02.2017 / 21:05