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
answers44
viewsConsume an asmx service from a Rest
How do I pass an object I have in a REST for a ASMX? I have this controller in REST that has the object(client) that I want to send to a ASMX [Route("api/[controller]")] public class…
-
1
votes1
answer144
viewsError while converting SQL - Datasnap Rest
I have a problem: I have a datasnap/Rest server, in the same I have the following method: Function TServerMethods.getComandoSQL(ASQL: string): TFDJSONDataSets; begin qryComando.Active := False;…
-
1
votes0
answers255
viewsREST requests with HTTPS
Good morning, everyone, One can make a doubt... is the following: I have an application that is within a certified domain (HTTPS). When I consume a REST service, I get 405 return and in the browser…
-
1
votes0
answers36
viewsIs it possible to make a related Entity possible to display with Odata Expand (Webapi)?
Hello, I have a question regarding the following situation: I have an Entity that I defined in my model as Tasfafreq public partial class TarefaFreq { [Key] public int ID { get; set; } public string…
-
1
votes0
answers22
viewsClient to receive data from a Server-Push
I’m trying to create a client to consume data from an interface that receives data from a gateway. This interface implements a server-push that needs to be started from a client-made PUT request.…
-
1
votes1
answer76
viewsHow to change the structure of a static method at runtime?
I am building a Java application that consumes a REST Web Service. I sought to use the new Httpclient of Java 11. However, the same request in this target application sometimes gets a post,…
-
1
votes1
answer595
viewsUnknown error in integration with Webservice REST
I am trying to make a POST type request using the components: Resrrequest, Restclient, Restresponse by Delphi Xe8. In the GET type integration I can do normally, I get the return normally from the…
-
1
votes1
answer57
viewsSend gps location to a server
I have a service to get the user’s location, but I need to pass the latitude and longitude via request to a server, however I tried to make this request within the method onLocationChanged() using…
-
1
votes2
answers687
viewsSequelize making incorrect select
I have an api in nodejs www: ... db.sequelize.transaction() .then(() => { server.listen(port); server.on('error', onError); server.on('listening', onListening); }) ... models: 'use strict';…
-
1
votes1
answer597
viewsProblem CORS Angular + Protheus
I’ve looked in some places and I can’t find anything about it, I’d like to know if anyone’s been through it and can help me. I am trying to make a REST request through an Angular application running…
-
1
votes1
answer15
viewsCodeigniter - REST_SERVER and Datatables (plugin)
I’m having a problem using the library REST_SERVER and the plugin datatables. The controller is ok, the problem is in Ajax authentication, because if I use the first request Ajax, as below, I can…
-
1
votes1
answer231
viewsValidation Lumen/Laravel does not work
I am creating an API using Lumen v5.8, and before saving the data in the database I am validating data from an array sent by the user but the data never pass the validation. Controller <?php…
-
1
votes1
answer241
viewsWhere to place the @Produces and @Consumes annotation? In the method or class?
I have been studying the operation of REST Apis in Java and came across two different didactics. In one of them the teacher placed the notes in the definition of the class, this way:…
-
1
votes0
answers133
viewsRestsharp taking his time making the first requisition
I am making an application using Xamarin Native and I decided to use Restsharp to make the requests to my API, the problem is that the first request made takes a few seconds (some 3) to be made,…
-
1
votes1
answer104
viewsC# Error When Deserialize Json for Object
I’m making a mistake when I take the return of a REST service and try to deserialize to a C object#. The REST Service returns me to the following structure(json): { "Marcacoes_Ponto_Response": {…
-
1
votes1
answer195
viewsPhp json: Take specific values from an API in Json and display them through a php script
I am working with an API and would like to "get" some values of the same as this in JSON format. At first I researched some questions similar to mine, but unfortunately I still could not find a…
-
1
votes1
answer86
viewsHow do I return a req.body.variable in a Express Rest api in a POST method?
When I try to return one req.body.qualquerVariavel acquired through a POST method, the return is undefined, and if I put the API to show on the console, it shows the value correctly, I wanted to…
-
1
votes1
answer54
viewsreq.body of the empty Node.js in the angular
Good afternoon I am creating an API in Node.js and I am having problems with req.body received by express. The problem comes down to not being able to get the post Rest variables sent by angualr9,…
-
1
votes1
answer46
viewsHow to change the result of requesting a Rest API with Spring?
Eai guys, all right? I started studying Spring recently on my own and am trying to create a Rest API for enrolling students and exams at a school. I have the following problem: When I make a GET…
-
0
votes1
answer852
viewsenrol_manual_enrol_users, link user to course in Moodle via webservice
I need to create a link between a user and a course, I would like to do this using webservice. Moodle has native enrol_manual_enrol_users function for this purpose, which has as mandatory parameters…
-
0
votes1
answer110
viewsWhen I run my WCF REST enters the WCF Client Test screen
When I run my WCF REST enters the screen of WCF Client Test. Before it was working. Because this is happening, IE, because enters the screen WCF Client Test?
-
0
votes1
answer948
viewsReturn only filled fields in the web service
I made a REST with WCF. In a method it returns me an object. It turns out that I don’t fill in all the fields of that object and it shows them all in the reply xml. How do I show only the fields…
-
0
votes2
answers608
viewsValue when null does not show the value in xml
I did that: if (lis.DT_TransacaoV == null) pdv.Transacao = "Não Recebido"; else pdv.Transacao = "Recebido"; I have in the object PDV a property called Transacao string type. If it is different from…
-
0
votes1
answer295
viewsDoubt on how to post a method to a web service, hide
What I’m going to ask I don’t know if it’s possible or how to do it. Well, I have a REST that so far is ok. There, they changed a rule here that directly affects the REST API. I have a method that…
-
0
votes1
answer368
viewsError while consuming a web service Rest method
I created a method where my partner, besides receiving data from our base, also sends us. Well, this was working well. Then I discovered that a field was missing. I added this field to the interface…
-
0
votes1
answer1332
viewsUploading files using REST and Java
I am creating an application and need a way to upload xls/xlsx files by sending the file from the front end (Ajax) to the back end (Java) so it can be manipulated. Ajax code:…
-
0
votes1
answer281
viewsSpring MVC REST JSON
Having a problem, in my controller when I have some entity with relationship it does not return me the JSON, already try to put the @Jsonignore get us the entity references but nothing, follow the…
-
0
votes1
answer448
viewsProblems upgrading from access token
I’m authenticating the Google Calendar API using Scribe, which uses Oauth 2.0 instead. Authentication is completed successfully but I don’t know how to store the access token (accessToken) in the…
-
0
votes2
answers3807
viewsWhat’s the best language for Restful?
I am a PHP programmer, but I’m having trouble finding useful ways to do REST. And so I’m intending to learn a second language, I already know some, but there may be a better one to do Rest. Please…
-
0
votes1
answer160
viewsGet url parameter in GET request using REST
Hello guys I have a question. When I make the request: GET /Withdraw/30 Since the value "30" is not linked to a key, then you cannot use the $_GET['chave']. The way I thought was to do this: $valor…
-
0
votes2
answers167
viewsBest Solution for Web Service Rest
I wanted to implement a Web Service that would provide data to mobile platforms (Android and iOS), someone knows the best service I can use for such? I’d rather it be something open source. I was…
-
0
votes0
answers80
viewsProblem api Rest codeigniter sometimes unanswered
I’m using a Rest api between 2 different applications, posting from one to another an array, but on the server there are times when the other api does not respond. I put to create a log as soon as…
-
0
votes1
answer1568
viewsUpload and Recover an Image with Angular
Let’s assume I have a user registration form where I want to save a photo of it. Send this data by POST to the server (Java) where I include in the database. What is the best (practical) way to send…
-
0
votes0
answers88
viewsURL Restful service working, but on ANDROID returns null
I’m trying to develop a service Rest for my father’s store, I’m able to bring the results in JSON through the URL, but when I try to execute the same method on android to try to fill the object, it…
-
0
votes0
answers607
viewsConsume multiple Webservices with PHP at the same time (SOAP and REST)
Basically, I need to consume several Web Services and then merge the results. I was using Curl with PHP to make the requests, but as the number of Web Services increased, my service became slower,…
-
0
votes1
answer465
viewsCheck Real-time API Connection Angularjs
I know it is possible to verify the existence of internet connection, but it would be possible to check if my application is connected to the API where both are on the local network. For example, in…
-
0
votes0
answers94
viewsAndroid app can’t pull Wordpress data
I developed an application in Java for Android, together I installed in my server in Hostinger Wordpress with the REST API. However, after running the application on my mobile, it can not download…
-
0
votes0
answers90
viewsHow does the Rest Api with updated Fifa ranking?
I’m developing a mobile app for sports results, but I’m running into a problem. I need an api that returns me the updated Fifa ranking. Thank you for your attention
-
0
votes1
answer2573
viewsWhy is the GET method considered safe and the POST method unsafe? And in what situations should I use them?
I read that the method GET is considered "safe" and the method POST is considered "unsafe". Shouldn’t it be the other way around? The method POST does not expose the data sent in the URL, so it…
-
0
votes1
answer241
viewsPHP Rest Application with Logged in User
I am developing an application in PHP Rest API. This application will be accessed via Web and Mobile. It happens that users must log in to be able to consume the Rest service. My question - How do I…
-
0
votes2
answers732
viewsREST in Java Spring project does not work
I created a project in the Spring Tool Suite to test a web and REST system, in the same project, worked well to create a static html page and load in the browser, but I created a java class for GET…
-
0
votes2
answers1140
viewsMonitor if REST services are online
Does anyone know what would be an interesting tool to monitor whether services are online or not ?
-
0
votes1
answer851
views -
0
votes1
answer335
viewsNews API as a service
I would like to display random news from Brazil and the world in my app while the user is processing a request. Does anyone know any service/API that can provide me with a Json of I handle?
-
0
votes1
answer102
viewsWhat are the options for Rest?
Presently the Rest architecture has become a standard for building API’s and Webservices. But what about beyond Rest? What more there is aimed at building API’s?
-
0
votes1
answer2375
viewsDynamic Table Paging with Angularjs
I have the following scenario: I recover this data from a Rest API with Vraptor. I would like to display only two items per page, but I don’t know where to start. I implemented this pagination using…
-
0
votes1
answer3779
viewsUpload Angularjs Files
I have a button where I select a file, I would like to upload that file to my server(Java + Vraptor). I can already get the file and also save the name of the file in the database along with the…
-
0
votes1
answer359
viewsDynamic authentication and permissions
I need to provide a number of features in a REST service, but security is dynamic. That is, an administrator can change permissions according to his will. In my research, I only found authentication…
-
0
votes1
answer796
viewsDoubt with webservice put and delete method. How to implement in java?
What I have to implement to provide a Webservice that supports PUT or DELETE. I’m new to this webservice world if you could help me by sending me at least one link from where I can read something…
-
0
votes1
answer237
viewsWhat to use to connect to the internal-only Web Api
I’m a beginner and I built a mobile application in C# that connects to a Web Api. However, the Web Api will be on a server that has only internal access, which would theoretically protect the BD.…