Most voted "rest" questions
REST (Representational State Transfer) is a style of software architecture for distributed hypermedia systems, such as the World Wide Web, using simply HTTP. It has grown in popularity over RPC architectures such as SOAP, due to intrinsic client-server decoupling, thanks to the uniform interface that establishes between heterogeneous systems.
Learn more…552 questions
Sort by count of
-
1
votes0
answers1687
viewsDelphi - Oauth 1.0 Authentication - Woocommerce Api Rest
Hello, I’m trying to make a 'POST' in the Woocommerce Rest API using Delphi. I’ve done several tests using a lib. which I downloaded in http://sourceforge.net/projects/oauthdelphi/ but without…
-
1
votes1
answer765
viewsModify URL for REST requests
I have a service running in Delphi in DataSnap REST, to access any function of REST via link would look like this: servidor:porta/datasnap/rest/classmethods/funcao/parametros I needed to change the…
-
1
votes1
answer575
viewsHow to send Lists with Retrofit 2.0 via POST
I have a list of records and need to send to the server via POST, use Retrofit 2.0 to make the requests. Be able to make all requests, but I’m not able to send the list. My interface: private…
-
1
votes1
answer225
viewsSpring Security Oauth + Firebase
Good afternoon. I’m implementing the security layer of my application. I decided that we will use Firebase to perform the authentication, and when it returns the access token to the client it will…
-
1
votes0
answers243
viewsAndroid sending POST Json using JAX-RS receiving object with null array
I am trying to post an object but the array only comes null.. someone can tell me what is wrong? @XmlRootElement public class Produto implements Serializable{ private String nome; get e set...…
-
1
votes1
answer412
viewsSpring and Jasper - Browser does not understand streaming for download
I have an app that uses Jasper-Reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7, Tomcat 8 and at front-end we use Angularjs. The requisitions Rest are made via ajax. Spring…
angularjs rest spring-mvc jasper-reports java-ee-7asked 8 years, 11 months ago Philippe Gioseffi 3,202 -
1
votes1
answer83
viewsHow to ensure security of api’s Rest
I’m creating a system using MEAN Stack and I came up with a question .. My angular client application requests the ex api: POST http://127.0.0.1/api/product If some malicious user found the url of…
-
1
votes1
answer355
viewsHow to request access token server, only via frontend securely, without human interaction?
Good guys. I got into this: I have an application in 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…
-
1
votes1
answer495
viewsWEBSERVICE REST - JSON - JAVA
I’m developing an Android app where devices can communicate with each other via messages (Instant messenger). My application is already connecting with the web service (I developed it using…
-
1
votes2
answers1411
viewsSeparate the backend frontend or not?
I have a question that has not yet been clarified, in the development with php, the ideal is to separate the backend of the frontend, using Rest and consequently web services, or the traditional…
-
1
votes1
answer569
viewsCall to a Rest Webservice with a Post Request
I wanted to make on Android, a call to a Rest WCF Webservice, through POST orders. In C# I can, sending the post, url and the body param. But in the Android, whenever I send a parameter, the…
-
1
votes1
answer672
views -
1
votes0
answers98
viewsHow to get nested Rest?
I happen to have the classes Pessoas, Profissoes, ProfissoesPessoa and QualificacoesProfissoesPesssoa In thesis my Models is so below: # -*- coding: utf-8 -*- from django.db import models from…
-
1
votes0
answers1551
viewsUse SELECT NEW JPQL to popular DTO in a @Onetomany relationship
Talk to the guys! I am trying to popular my DTO object, whose main object has a Onetomany relationship. Follow the code for vcs observations: ## Mapped Object: public class Usuario implements…
-
1
votes0
answers391
viewsRequest in Twitter API using Jquery and Ajax
I’m trying to get the data from a Twitter page, unsuccessful 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…
-
1
votes1
answer380
viewsRelationships JPA Spring Boot Rest Fetch Eager
I’m with an application that serves a service json Rest (not quite a Rest, but okay). The application uses Spring Boot to run, use the Pagingandsortingrepository. The problem is that in serving an…
-
1
votes2
answers286
viewsUse of the REST question mark
I have a list of values on screen that as the user type will be filtered the options. If the user wishes to view all the records he will type: ?; Then my Rest call will be: meuservidor/buscar/? From…
-
1
votes1
answer663
viewsPull API Rest data and display the data on the screen
I can make an ajax for the service and return the data, I can display the first object Product and its properties, but when there is another object inside Productimage that has more than 5 objects…
-
1
votes1
answer505
viewsArchitecture API Restful
I’m building a Restful API with spring MVC and I have 2 non-functional requirements that I don’t understand how to attack them. The API must support 100 requests per second; The API should provide…
-
1
votes1
answer208
viewsHow to distribute the entities among projects?
I have doubts whether there are good practices for the distribution of entities between projects. Let’s say I have a java REST microservice that provides a client (id, name, address) through GET and…
-
1
votes1
answer126
viewsConnect Flask Restless API to React (Admin-on-Rest)
I’m learning to work with flask and React to create a Rest API (with flask-Restless) and a Client (with React, Admin-on-Rest). I already created the Flask Api with Reastless. I’m looking for some…
-
1
votes1
answer2561
viewsHow to catch an http GET replay 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…
-
1
votes1
answer35
viewsWebapi Project - . NET
I am developing an Asp.Net Webapi application (first REST application). So far everything is ok, even because I’m in the testing phase using Postman. I believe I must complete this first stage…
-
1
votes1
answer216
viewsError with retrofit
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ public interface RestApi { @GET("/posts")…
-
1
votes1
answer209
viewsReturn Json value with angular 2
I am working on a project where I need to return a database value that is picked up via REST in json format. The front end of the project is in angular 2. I have a workers' table and I need that…
-
1
votes1
answer268
viewsjava Response json out of order
Guys I’m making a java API to be consumed by Excel. I’m making a bank select by bringing the columns in the right order, but when it arrives in Excel it arrives in a half crazy order. I also made a…
-
1
votes1
answer51
viewsExit from my service does not match my dto
On my way out of service to the Dadositens camp, I have this: <DadosItens> Qtde 3 Custo 46,66Unitario 68,58 Margem 0Ult.Cond 30/01/2017 C. Diario 46,66 Total 205,73 </DadosItens> Turns…
-
1
votes1
answer76
viewsRequest Angularjs being executed first incorrectly
In a controller, I have two HTTP requests: function findProfessionalEmail(professional) { EmailHunter.findProfessionalEmail(professional.company_name, professional.first_name,…
-
1
votes1
answer323
viewsModern Web: SPA/REST
Speaking on the modern web, we have new concepts like SPA/Rest and I keep some doubts. Is it correct to focus/study these concepts? Since they have emerged as an improvement on some old concepts. Is…
-
1
votes1
answer3037
viewsError spring boot when connecting to mysql
I created a test project by Spring Tool Suite to create a REST server that will connect with a local mysql database, when I start the application it error when trying to connect with mysql:…
-
1
votes2
answers650
viewsHow to return Datasnap Server image and show in browser
I developed an application made in Web Service REST, where the data is consumed at each client request, everything works perfectly, I created the Web Service REST from the DataSnap REST Application,…
-
1
votes1
answer37
viewsAvoid Favicon Get in Flask
I have a client-server application in Flask, and when I get to the server, another get is done by asking for the favicon address. I wanted to know if you can not automatically do this favicon get.…
-
1
votes1
answer570
viewsHow do I get parameters from a PUT request?
I am starting to study Web Service and created an example of an API in REST. I am passing parameters via PUT to the API and picking up with the parse_str in PHP but what comes back to me is…
-
1
votes0
answers628
viewsHow to get back a POST sent by the Customer (Datasnap REST)
I have a Webservice Server REST developed by the IDE Embarcadero Delphi XE7, I need to take the return of POST customer’s. I created Webservice from the Datasnap REST Application, when creating the…
-
1
votes1
answer303
viewsRetrofit, Response body always null but on the server is status 200
I am implementing an Android application using Retrofit 2, the service is generic the server side is working. The problem is: Response.body() is always null, I can never catch json, even if I can…
-
1
votes1
answer9213
views -
1
votes0
answers29
viewsRoute to Many-to-Many relationship
I have a related REST API question, if anyone can help, thank you very much. I have two entities, Product and Store, which has a Many-to-Many relationship between them. A Product may be available in…
-
1
votes1
answer61
views -
1
votes1
answer53
viewsMaintain a C# - Rest request
The doubt I have is more conceptual than in code. I have a Rest that is a server service, the same is done in C#, I would like every day at a specific time it would request a URL X. I thought of…
-
1
votes1
answer285
views -
1
votes2
answers359
viewsTimeout when trying to access a HTTPS Rest service via PHP
I am trying to access a Rest service that is on an HTTPS server via PHP and is returning timeout. If I take the URL and put in the browser opens. I am using Httpful (http://phttpclient.com/), I have…
-
1
votes1
answer388
viewsBest practice for sending authorization via HTTP header
I am developing a Rest api, I need to pass some data on all the requests that are basically the required authorization. The data are: Token, unit and an id. What better way to pass this via header.…
-
1
votes0
answers926
viewsFirebase database or API Rest PHP Mysql. Which is the best choice and which Google recommends
I graduated college at the end of the year. I did Systems Analysis and Development, and there I had programming class for mobile devices, more specifically for Android. In class the teacher taught…
-
1
votes1
answer1537
viewsHow to change the Content-Type Response in Datasnap REST
I have a project made from the WebBroker REST, running as a service, I need to change the Cotent-Type for 'application/json' and by default the WebBroker REST brings me as a result of Content-Type…
-
1
votes1
answer258
viewsCors Laravel, release only for a specific domain
I’m using the library Laravelcors and would like to block all requisites except a specific Dominio, as I do this?…
-
1
votes0
answers751
viewsJson quotation with the return of the value of Commodities like Soy and corn
I am recovering a list in JSON/XML using the function of obtaining the quotations of commodities such as SOY and CORN. Could you point me to a source?
-
1
votes1
answer191
viewsPost to two tables simultaneously in AJAX
the code below it is working, however my doubt is the following: There is some way to make a post in two different addresses simultaneously using this same code without repeating it? For example, in…
-
1
votes5
answers632
viewsPHP that returns null table fields that are neither empty nor null in Mysql
I have a table "payment forms" and I made an API to get all these forms of payment, but even though the database is correct, it informs that the field "name" is null in return, see:…
-
1
votes0
answers75
views -
1
votes1
answer168
viewsCannot import urlencode name on program run
I need to run a routine, but system informs that it cannot load the name urlencode (I don’t know if I can call this function, class), I searched for similar libraries, but I’m also not sure I’m…