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
13 views

What debugging should i add to fix my issue with spotipy not returning responses?

My below code was previously working and did all i needed it to, however has started stopping on the line: tracks_data = self.sp.playlist_tracks(playlist_id) Here is my full service script below, if ...
Isaac Lyne's user avatar
0 votes
1 answer
11 views

Implementing three-layer architecture in FastAPI for handling endpoints that need multiple services, better to create own service?

I have a question regarding the three-layer architecture implementation in FastAPI. Consider a complex scenario: let's say there's an endpoint called 'get_transaction'. The data required for this ...
unique_alex020's user avatar
0 votes
0 answers
6 views

making 2 get calls from UI or combining 2 calls in the backend

lets say i have a UI web app with multiple screens and one of the screens makes 2 calls 2 different end points(with in same service-A), but 2 different endpoint pupose is different. so what is the ...
sravan ganji's user avatar
  • 4,864
0 votes
0 answers
4 views

How can I send emails from the system (admin user) to the client authenticated by oauth2 using Microsoft email and django rest framework?

I know I can do it by configuring django's sendmail, it doesn't matter if the email is gmail or outlook. However, I cannot use an email with my own provider. I need to do this authentication with ...
Pedro Neves's user avatar
0 votes
0 answers
20 views

Best approach for writing search API in REST

I am trying to create a search API (with paging and filtering) in REST and there are two approaches I have come across: GET Passing all the params in query. Something like this: https://exch-epbs-...
amol's user avatar
  • 125
0 votes
1 answer
14 views

Path photo should not have additional properties yaml file

I am not able to understand what is the problem about this error. I have PhotoId parameter defined in components/parameters but it still gives me error. It tells me: Structural error at paths./photos ...
Fernando Alonzi's user avatar
0 votes
0 answers
19 views

ASP.NET Core Web API deployed to IIS 404 Not Found - No candidates found for the request path '/'

I've been stuck with this for a while now. Tried all solutions I found but still no success. I've tried modifying Program.cs, web.config, installed .NET Core bundle, .NET SDK, ... nothing helped. I ...
user23008303's user avatar
-1 votes
0 answers
6 views

SOAP Services from WCF migration to SOAP in Spring Boot

I m trying to solutions a SOAP based solution with following things The old SOAP services are written in .Net with SOAP - WSDL and XSD already generated and shared with consumers. The consumers have ...
Mohit Sharma's user avatar
0 votes
1 answer
46 views

Using PUT to update one field in Restful API

This is my updated code: public function update(UpdatePostRequest $request, string $id) { $post = Post::findOrFail($id); $post->update([ 'name' => $request->filled('name') ? ...
noobmaninasian's user avatar
0 votes
0 answers
32 views

500 - Internal Server Error on both GET and POST operations

I'm doing some hands-on on Springboot with Microservices and REST. Have created 3 Microservices : 1. Account 2. FundTransfer 3. APIGateway Account Service is running on port 5051, FundTransfer service ...
Dnyanesh Tathode's user avatar
0 votes
0 answers
14 views

How can I prevent alphabetical sorting of query parameter in Spring Boot RestTemplate?

Because of our company infrastructure and security guidelines I had to write a proxy to enable other services to communicate with an external API. The flow of a sample request would be a GET from a ...
anscheinbar's user avatar
0 votes
0 answers
25 views

Spring boot / docker / nginx - query param encoding

I have spring boot application (3.0.9) that expose rest service that get string as query param. The application is deployed by docker image that include the jar. In front of the container, There is ...
ostr's user avatar
  • 51
0 votes
0 answers
13 views

Curious Sharepoint Response - Modified not working correctly with OData query operations ge and lt in request?

I have the following curious behaviour of Sharepoint-REST-API. I send the following request via Postman to Sharepoint REST-Webservice (REST-API v1): .../lists/GetByTitle('Documents')/items?$select=...
A D's user avatar
  • 1
0 votes
0 answers
26 views

How to Document restful API's developed using spring MVC 3.0.7

I am working on project which uses spring framework 3.0.7. I have developed restful APIs using spring MVC 3.0.7 with XML configuration as my project already has spring 3.0.7 dependencies. So far so ...
Rajesh Babu M's user avatar
0 votes
0 answers
10 views

How to enables cors in lambda while using serverless framework and apiGateway

I am using rest api which is built on nodejs with jwt token which send token as cookie it work perfectly fine in postman I am able login but when i use same api in nextjs it doesn't send cookie and ...
Santosh Marar's user avatar
2 votes
1 answer
58 views

Send data to Azure Event Hubs and forward it to Azure Data Explorer in dynamic tables

We have a C++ agent that runs on a large number of endpoints (>200,000) and sends the data to a backend (e.g. Splunk). This generates data of approx. 20-30 MB per day per endpoint. The data is ...
Dieter Schmitz's user avatar
0 votes
1 answer
18 views

Python Sendpulse Whatsapp API - array problem

I would like to send the following post request to Sendpulse API and I get the error of: "tags should be an array". I think my tags field is an array. what would be the reason and how to ...
economman's user avatar
0 votes
0 answers
14 views

CSRF token missing when making a POST request via Hoppscotch to Django

I'm working with a Django (version 4.0+) application and facing a CSRF verification issue when trying to make a POST request using Hoppscotch. I'm receiving the following error: { "detail": &...
Ixyz's user avatar
  • 25
0 votes
0 answers
11 views

List.Generate is looping infinitely with empty lists

I am pretty fresh to the power query language and have ran into an issue when trying to Paginate through a RestAPI. Currently I am using the a pretty stock list.generate loop: = List.Generate(()=> ...
Nick Martini's user avatar
0 votes
1 answer
33 views

RESTful API: What's the best path specification for bulk write operation?

Imagine that we are designing API layers around a data object called person I know that in RESTful API: a "create person" call should have path be like: PUT https://server-host/persons/<...
Tamaki Sakura's user avatar
-1 votes
0 answers
26 views

I want to make in React Restful API with Laravel a view details page with URL

I have a list of project. With a link for each project I want to access project details: src/components/AllCourses/AllCourses.jsx: <Link className="courseViewMore float-left" to={"/...
Stefania Stefania's user avatar
0 votes
1 answer
42 views

Cannot Query MongoDB API using HTTP’s requests

i am trying to query the MongoDB API using a API key as the authentication method, but I keep getting the 401 status code. Here is the code: fetch(‘https://eu-west-2.aws.data.mongodb-api.com/app/...
André Silveira's user avatar
0 votes
0 answers
20 views

Failed to load resource: the server responded with a status of 401 (Unauthorized) error in express.js

index.js: require("dotenv").config(); const cookieParser = require("cookie-parser"); const express = require("express"); const app = express(); const cors = require("...
Carasidelt's user avatar
0 votes
1 answer
14 views

How do i define an api route in next js 14?

I'm trying to build a simple REST api. I have a route.ts file inside of src/app/api/timetable folder. Here is my route.ts: import { NextApiRequest, NextApiResponse } from "next"; type ...
R1SKY's user avatar
  • 25
0 votes
1 answer
19 views

Change Bitbucket's Private repo to Public repo using RESTAPI

I want to convert few of my private repositories to public repo. import requests workspace = '' base_url = 'https://api.bitbucket.org/2.0/' session = requests.Session() session.auth = (username, ...
NavaneethaKrishnan's user avatar
0 votes
1 answer
27 views

How can I access data from API in different widgets in Flutter

I created API for my Flutter app. Here I printed json decoded response.body: {data: [{id: 7, provider_id: 1, uid: 2194250, name: , account_id: 1950002701, owner_id: 1, advisor_id: 2111785, currency: €,...
Marek's user avatar
  • 95
0 votes
0 answers
17 views

JSON decoding error: no String-argument constructor/factory method to deserialize from String value ('[object Object]')

Hi I'm using openApiGenerator=7.1.0 with SpringBoot=3.1.5 I just stared learning RESt API. I'm trying to invoke my PATCH method when I add pet to it's owner. While doing this I get message: JSON ...
ignacy's user avatar
  • 1
0 votes
0 answers
29 views

How to send a dynamic response from a TaskExecutor with a REST API in a Spring Boot project?

I want to create a REST API in a Spring Boot project. The business logic is very simple like a counter that need to increase at every 10 seconds until it hits 5 minutes. This will be the task for a ...
elvis's user avatar
  • 822
0 votes
2 answers
35 views

Are there any standards for APIs (like EDI), like message for placing order, retrieving prices, stocs, etc?

I'm about to design a (REST) API for a custom ERP solution. The API will then be connected to some EDI solution. Are there some standards, common message format for contracts like placing orders, ...
Liero's user avatar
  • 25.6k
-1 votes
0 answers
14 views

Is there a containerization method for Windows operating system? (independent) [closed]

I have Reactjs web application and also restful api (C++). I want to package them as self-contained and independent. Is there a way to do this for Windows OP? I tried to package it with Node js pkg ...
fca's user avatar
  • 9
-3 votes
0 answers
24 views

How to call REST API of a SaaS product from an ADF connected to a private virtual network? [closed]

I have a basic question: How to call REST API of a SaaS product from an ADF connected to a private virtual network? Which type of Integration Runtime should I use? Pictorial representation will be ...
Partha Das's user avatar
-2 votes
1 answer
23 views

Spring Security Jwt cannot send body when authenticated

My problem is that api endpoints that require authentication send nothing in the response's body. API endpoints that do not require authentication work well. I created a project to test JWT management ...
Zee Korja's user avatar
-1 votes
1 answer
38 views

How can I stop a work with a REST API that is started by another REST API in Spring Boot? [closed]

I'm working on a Spring Boot project and I need to create 2 REST API. The first request needs to start to do a work that takes some time, let's say 5 minutes. The 2 request should be able to stop the ...
elvis's user avatar
  • 822
0 votes
0 answers
37 views

RestSharp returning JSON element as object instead of array

I send a JSON request to an API. The response contains an Alert element that is defined as an array. However, if Alert contains only one element, RestSharp returns it as an object. JSON response, ...
flow's user avatar
  • 1
0 votes
1 answer
30 views

How in spring boot to make a queue for access to the API [closed]

How to create a queue in spring boot to access the spring boot API without kafka and rabbitmq? One request the other two are waiting, but only in one API. I tried to create streams, but an error ...
Ярослав Сенько's user avatar
-2 votes
0 answers
37 views

How to deal with the API which is taking long time to complete [closed]

I have made an API in Flask, it receives 100s of URLS, and then it process those URLS by taking screenshots of the website(I am using Selenium for this), and receive the output image links, which I ...
Usman Afridi's user avatar
1 vote
0 answers
37 views

CORS policy preflight 403 error at sending request from Angular web server to GO backend server

I am trying to send a http request from a frontend app created with Angular, but even though I tried to set the allowed access control allow origin header on both servers (fe/be) I still receive this ...
Ticu Alexandru-Marian's user avatar
0 votes
1 answer
20 views

my API is not working idk why , help is appreciated

my form code import React from "react"; import { useState } from "react"; export default function ({ movieName }) { const [movie, setMovie] = useState(""); const ...
lovey dovey's user avatar
0 votes
0 answers
20 views

An issue involving writing and loading csv file in the Flask server

I am trying to write a module to generate a csv file in the Flask server and then read it as a data frame for next steps. The things I am doing is getting the response from the PubChem REST service to ...
AnthonyTuzhu's user avatar
2 votes
1 answer
32 views

Why does the Spotify Auth API return a 400 with "code_verifier was incorrect"?

I am working on a Flutter application that authenticates with Spotify, referencing the auth flow documentation from here. When implementing this flow, I am able to get an access code using the auth ...
tug89508's user avatar
0 votes
0 answers
44 views

How to prevent Concurrency issues in ASP.NET Core Web API

I tried Mutex but getting exception 'wait completed due to an abandoned mutex'. How to prevent concurrency issues in ASP.NET Core Web API ? In our API, we are fetching code after some calculations in ...
Bhagyesh Chinchole's user avatar
0 votes
1 answer
20 views

Ocelot routing by body

Is it possible to route request based on value in body using Ocelot? For example: body: { "Token" : 1 // route to http://google.com } body: { "Token" : 2 // route to http:/...
Szymson's user avatar
  • 990
0 votes
2 answers
53 views

I have tried with both parameter and variable to change the query string when calling a REST API

I use Azure Data Factory. Here is what I have done. I have defined two pipeline parameters StartDate and EndDate to be used in query string when I call a rest API. StartDate as a string with value ...
Tony Johansson's user avatar
0 votes
1 answer
30 views

How to send FCM tokens to multiple devices using tokens in API v1?

It is possible to send a push notification using Firebase using REST APIs to a set of devices using the corresponding token? I know that in the past, using the deprecated APIs, it was possible to send ...
Pietro's user avatar
  • 1
0 votes
0 answers
12 views

How to get all tracklog of member in club (with name athlete and time start every run) Strava through API V3

I write a service get data from club Strava for Running Club. I want show on dashboard with some infor like that: fullname, distance, moving_time, elapsed_time, time start tracklog, ... I call api api/...
caocuongccc's user avatar
0 votes
0 answers
16 views

How does E-commerce platforms with microservices architecture use Redis for Caching?

I am using Microservice architecture in my application.Whenever server gets the request,it has to fetch the data from Database,which takes hell lot of time (and inefficient too),So I want to implement ...
Akon_Namikaze's user avatar
1 vote
1 answer
43 views

How to get the list of commits between two commits using Azdo rest API

I tried using commits rest api but it's listing the entire commit instead of the expected ones. Used API like this: https://dev.azure.com/xxx/xxxx/_apis/git/repositories/xxxxx/commits?api-version=7.0&...
Anurag mp's user avatar
0 votes
0 answers
28 views

How to execute a query using Superset REST API?

The bearer token is set correctly in the header. The result of the query written in the request body should be returned in the response. Is there any configuration required in the superset_config.py ...
Puba's user avatar
  • 1
-1 votes
0 answers
32 views

503 error on GET/POST requests in a Heroku Java Spring application

I managed to deploy my Java Spring application using Heroku, but none of the Requests work. When I click on inspect element, I see in the console the following error: Failed to load resource: the ...
Maria's user avatar
  • 9
-1 votes
0 answers
31 views

Nodejs Minecraft UDP Server [closed]

Get Minecraft Bedrock Server infos and expose it through an API. I want to create a mini-game Minecraft Bedrock server to play with some friends and I want to implement some features for this, such as ...
Borgim's user avatar
  • 19

1
2 3 4 5
1859