Questions tagged [rest]

REST (Representational State Transfer) is a style of software architecture for distributed hypermedia systems such as the World Wide Web. It has increased in popularity relative to RPC architectures such as SOAP due to the intrinsic de-coupling of client from server that comes from having a uniform interface between heterogeneous systems.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Xamarin + Google Drive [closed]

I can't find valid example of REST API Google for Xamarin using. I found some obsolete examples and examples of authentication, but not Google Drive including to application. This link (https://github....
t232006's user avatar
1 vote
1 answer
33 views

Postman -Express API on Localhost GET and POST requests giving 404 error

I want to test out POST requests using POSTMAN but even for GET request as well as POST, I get 404. I am using it on localhost port 4000 route articles (tried http://localhost:4000/articles as well as ...
ShaRaf's user avatar
  • 23
1 vote
0 answers
62 views

Stripe Intent Confirm with Delphi FMX

I have an FMX app written in Delphi 10.3. I am using REST components to communicate to the APIs. First, I request a payment_intents from my backend, api.stripe.com. This returns a client_secret. ...
Glen Morse's user avatar
  • 2,523
0 votes
0 answers
50 views

Application fails to start - Parameter 0 of constructor in 'service' required a bean of type 'repository' that could not be found

Working on an application that uses Java / Spring Boot. We have two repos, an app and a "microservice." Running both works fine in a local environment. In staging, I get an org....
ng17's user avatar
  • 1
0 votes
0 answers
27 views

Problem HttpErrorResponse with an error 500

I can't understand how to resolve the error. It seems that all the parameters, functions and in general the path of my application with Angular Springboot (use Postgresql as the database) are correct, ...
Roberto Longo's user avatar
0 votes
1 answer
23 views

Which HttpStatus code should we use for permission check? [closed]

We have an endpoint to check if a user has permission to a certain document: GET /document/{documentId}/permits Request body: { "permission": "WRITE" } When the user has WRITE ...
Yan Salim's user avatar
0 votes
0 answers
9 views

STRICT REST principles and server session state

STRICT REST principles mandate that no state should be stored on the server and all state should be maintained on the client. I have certain fields( id of the logged in user, roles associated with the ...
Sara's user avatar
  • 29
0 votes
0 answers
23 views

Handle OTP using a REST API call

I'm developing a new web page that is public facing. When the user hits the web page, they are prompted to enter their phone# and email id and click submit. An OTP is generated by the server and sent ...
Sara's user avatar
  • 29
0 votes
0 answers
46 views

Resolving Recurrence Visibility in Microsoft Graph API: Seeking Endpoint Solutions for Daily Meeting Instances

I am unable to see recurring meetings in the Graph API. Currently, it shows only one instance. For example, if there is a meeting that recurs daily, I should be able to see the meeting for all the ...
Muhammed Ashique's user avatar
0 votes
0 answers
11 views

Quarkus REST Client call with generic type

I am using Quarkus REST client (with annotation @RegisterRestClient) to call one of the services. I have implemented a post method in the Rest Client class like below: @POST Response postData(...
sg2000's user avatar
  • 101
0 votes
0 answers
30 views

Calling a HTTPS REST Endpoint throws "Authentication failed because the remote party has closed the transport stream."

First of all, I have not that much knowledge of SSL. On a server an app is running that provides a REST interface which supports TLS 1.2 and TLS 1.1. The secure connection is additionally secured by a ...
Powerslave's user avatar
0 votes
1 answer
12 views

How to deal with both GraphQL Queries and REST API Calls in a React Application?

BE application on our project is very bad. It contains both RESTAPIs and GraphQL queries, so I want to ask is it good to have both react-query and apollo-client on the FE app? Or if not, can I install ...
Mitar Ilic's user avatar
0 votes
1 answer
17 views

Proxy to access OAuth2 password grant type REST API

I have an application that runs in a Docker container and it needs to consume an external REST API. The external REST API is secured with OAuth2 Password Grant Type (client_id, client_secret, ...
Jirmed's user avatar
  • 383
0 votes
0 answers
6 views

Is it possible to update multiple Adafruit feeds at once with the HTTP/REST API?

I've inherited an existing project that updates several Adafruit feeds using one curl call per feed. In other words for a set of feeds https://io.adafruit.com/$username/feeds/$dashboardname.$feedname ...
Dave's user avatar
  • 101
0 votes
1 answer
21 views

Azure B2C custom policy read value from query param and pass to REST API body

I have query param 'invite_token'. I want to read this from Signup page and send this to REST API post body. <ClaimType Id="inviteToken"> <DataType>string</DataType> ...
Smith Dwayne's user avatar
  • 2,677
0 votes
0 answers
7 views

How to apply middleware to Grape api and exclude middleware from controller api in ruby on rails

In my Application i have both grape api and controller api. I have to apply middleware to grape api and exclude controller api, , how i can do this. ?
Prathviraj Shettigar's user avatar
-3 votes
0 answers
116 views

Spring rest controller configuration [closed]

Got a spring backend application. It doesn't handle requests. I got single controller: @RestController @RequestMapping("/api/login") public class LoginContoller { @PostMapping(produces = ...
MC_Vovi's user avatar
  • 11
-3 votes
1 answer
31 views

Is it always necessary to query a database via thread [closed]

Is it always necessary to query a database via thread in a normal rest api build using java/kotlin and spring boot. Eg :- @Service public class MyService { @Autowired private MyRepository ...
CovetousSlope's user avatar
-2 votes
0 answers
33 views

Post Curl request binary image data through rest API [duplicate]

I wanted to post the number of images via rest API through curl, but facing difficulties ...and getting error. Please see my code what I am using to send the image binary data . REQUEST CODE $url = '...
vjy tiwari's user avatar
0 votes
0 answers
19 views

How to Implement Webhooks for Google Contacts Updates and Creations

I am currently unable to locate any resources, and I have not found any information in the People API documentation regarding how to send data through a webhook when a contact is updated or created in ...
Deependra Gupta's user avatar
0 votes
1 answer
21 views

Convert POJO with HashMap to XML

I have the following class which I want to convert to XML. @XmlRootElement( name = "counters" ) public class Counter { private Map<String, Integer> counter; public Counter(...
NorrtT's user avatar
  • 3
0 votes
0 answers
31 views

Can the RESTful API be started via a '.dll' file?

I am currently developing cpp backend and js webapp. I want to use the backend as a REST API. Normally I use REST API as executable file, so when I run the file the REST API starts serving. Here's my ...
fca's user avatar
  • 11
0 votes
1 answer
32 views

Pagination in ADF Data flow

I have REST API and need to import the data into a Azure SQL Server table. I am using Data flow because requirement is to flatten the data. Because the API produces lot of data I want import data in ...
David Kade's user avatar
-3 votes
0 answers
31 views

How to Debug Halted Ajax Calls? [closed]

I have a PHP Laravel site with a feature called flat product indexing. While running this feature, I fire a lot of subsequent Ajax calls. It seems like these calls are being halted, but I'm unsure ...
code-8's user avatar
  • 55.6k
0 votes
0 answers
22 views

How to learn password reset oob code in Firebase Auth REST API?

I am sending a password reset request using Firebase Auth REST API https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key=[API_KEY]. The link is sent via e-mail. It asks for oobCode in the ...
Gurkan T's user avatar
  • 208
0 votes
1 answer
49 views

How to run flask server + web socket server

I have two pieces of blocking code, I need to run both, however running either will block the code. Both work perfectly on their own. If I could avoid using third party libraries that would be great. ...
Bob Lozano's user avatar
-1 votes
0 answers
31 views

Parsing JSON body in HTTP GET request api call [closed]

I need to pass a JSON body in http GET request Body : [{DEMO: PROUDCT}] http URL : https://mydemocode/runs/activeCode?env=local I am parsing the body like this: String body = "[\n" + ...
Zoso619's user avatar
  • 175
0 votes
1 answer
10 views

Salesforce Apex Http Request - REST + OAUTH 1.0

I'm trying to communicate with an REST API via Salesforce. I have a postman collection that works just fine, but when trying to replicate it using apex I get a Status 400 (Bad Request) Error. The URL ...
Alejandro Ferrante's user avatar
0 votes
0 answers
31 views

How to add custom property in meta property in api platform paginator

I am using a state provider of API-Platfrom in symfony project to represent my data and using built-in API platform filters I need to add totalCost, the total number in the meta property in the ...
shayan's user avatar
  • 15
0 votes
0 answers
18 views

Updating Tracking on Sendport on Biztalk 2020 using REST API

We are using Biztalk 2020 and have enabled the REST API to use for our needs. One of the things we want to do is to script and update the tracking settings on Recieveport, Sendport, Orchestration and ...
Thugge's user avatar
  • 208
-1 votes
0 answers
56 views

Unresolved compilation problem: XmlRootElement cannot be resolved to a type

I am trying to use the @XmlRootElement annotation on the Alien class but I am getting the following exception: jakarta.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java....
Vighnesh Rasal's user avatar
-3 votes
1 answer
26 views

Jira server Platform Rest API Response is in html message . Please help me [closed]

Why On Jira server Platform, the Rest API calling from C#, To the request the response is OK on my development PC, but on other colleague's PC the response is getting in html. I am using Basic auth ...
KMG's user avatar
  • 1
-3 votes
0 answers
24 views

Edge Open Data API response not filtering correctly with filter in place [closed]

I found school data APIs at Edge Open Data NCES info, but I am having trouble using it. For example, if I pick the public school API Explorer, enter a filter for a state, unselect the options I don't ...
codert's user avatar
  • 1
-1 votes
0 answers
28 views

REST API naming standard for an aggregate entity [closed]

I have an employee entity (Spring Boot) for which attendance is captured daily in an another entity named employee_attendance (this has a relationship to the employee and calendar entity). GET /...
Sara's user avatar
  • 29
0 votes
1 answer
23 views

How to call restful API (Authenticated endpoints) in SSIS for ETL

I'm relatively new to SSIS and restful API(AND every type of API), it's a bit hard to figure out the topic for me. So how to call restful API in SSIS to ETL? I don't get this; If the problem is to ...
annony JA's user avatar
0 votes
1 answer
21 views

How do I get the Status Line from a CloseableHttpResponse instance?

I am trying to get the Status Line of an CloseableHttpResponse object, but I don´t know which Java class I have to use. package com.mycompany.prueba_rest; import java.io.IOException; import java.util....
AJHG's user avatar
  • 13
0 votes
0 answers
58 views

Tomcat is returning XML Error when application makes an outbound Rest API request

I have a Spring Boot application running inside Tomcat 9. I encounter an issue when I try to make an outbound HTTP request from another service. It seems like something is wrong with my Tomcat server ...
Affiq Zaini's user avatar
0 votes
1 answer
23 views

Best way to identify user roles in an api

I am currently building an API in which users can access resources including theirs publicly, as well as manage it in a dashboard. In the spirit of having a single resource endpoint to prevent code ...
Gabriel's user avatar
  • 192
-1 votes
2 answers
47 views

Multiple Multipart file with respective JSON data handling in API

I am trying to implement a REST API where I have to receive multiple file(pdf) along with its related JSON data. I am able to handle a single entity(pdf+JSON), but not sure how to do this for multiple ...
Masoom Raza's user avatar
0 votes
0 answers
14 views

Serve side request forgery by codeQl while make api call using restTemplate

@RequestMapping( value = "/data", method RequestMethod.GET) public Response Entity<List<user>> getUserDetails(@Valid String userId) { UriComponentsBuilder builder = ...
Coder's user avatar
  • 1
0 votes
1 answer
67 views

Can the Spring Boot 3.2 RestClient consume or make async calls from/to a service? [closed]

https://docs.spring.io/spring-framework/reference/web/webmvc-client.html I cannot understand how to perform a async call with it. In docs it's mentioned you can make sync calls, but in some YouTube ...
Aneesha Rose's user avatar
-1 votes
0 answers
12 views

How the web app use rest API to fulfill the functions?

Everybody promotes the RestAPI in web app development. So how to use the RestAPI in web app? and do I need to apply an UI framework like Vue to fetch the data from API? Is there any tutorial for this?
Wallace Z's user avatar
-1 votes
1 answer
30 views

Optimizing Connection Speed in a Firebase and MySQL Authentication Setup

Suppose you have a web application where users need to log in to access personalized data stored in a MySQL database. The authentication process involves Firebase, and every time a user makes a ...
Seb St Johnston's user avatar
1 vote
0 answers
14 views

I nee to send current ( Latitude and Longitude and in time and out time and date ) to server using api get method how to

Our Plan to view and Work the app like First time user click the button the attendance Check in successfully and the **Chick in Button name to change Check Out . ** and show the Alerts message. our ...
joseph jo's user avatar
-1 votes
0 answers
15 views

Problem finding implementations in spring boot application, why control in not transfer from service to serviceimpl class

controller class package com.vd.visualDashBoard; import com.vd.visualDashBoard.Model.VdashboardModel; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http....
Snehal Poratkar's user avatar
0 votes
0 answers
10 views

Interceptors(XYZ extends HandlerInterceptorAdapter) is not called for 405 responses

I have an GET but when someone calls with POST it gives me 405 method not supported which is correct. But it does not call the Interceptors. The interceptors are called for 404 response but not for ...
Raghavendra Prasad's user avatar
1 vote
0 answers
53 views

Palantir Foundry REST API call for adding a row identifier to a dataset

I am currently using the Read dataset as table Palantir Foundry API as described here. For datasets of a certain size, I end up running into memory constraints when pulling the data using this API ...
user1185790's user avatar
1 vote
0 answers
35 views

OAuth2.0 generation of token

I have recently embarked on the implementation of OAuth2 within a RESTful API, aiming to generate a token for ongoing development. While conducting POST requests using Postman, I encountered ...
UwUs's user avatar
  • 89
0 votes
0 answers
29 views

Cyclomatic complexity issues with Simple Spring boot Rest Controller

I am using SonaQube scans for my Java project and trying to understand cyclomatic complexity issues. However this is very know design issues, I am trying to understand why simple return statements ...
sandeep's user avatar
  • 71
0 votes
0 answers
18 views

Set of httpheaders required on API method

In my .NET 7 API controllers I have a few methods that all require the same set of headers. Around 4 or 5. Instead of adding them in each every method on several controllers, is there a way to add use ...
Roelant M's user avatar
  • 1,602

1
2 3 4 5
1858