Use Stack Overflow for Teams at work to find answers in a private and secure environment. Get your first 10 users free. .

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
-1
votes
0answers
8 views

How to extend acumatica api to attach file in Sales order Line Item

I am able to attach file in the #acumatica sales order by rest api. Is there any way to attach a file in sales order line item.
0
votes
0answers
6 views

OData GetById is not working on Asp.net Core 2.2

I am trying to get a single item from my list of elements and it is not working. I am using FromODataUri correctly, I am not seeing what is wrong. I am able to hit this resource: https://localhost:...
0
votes
1answer
36 views

Best practice on download large file from cloud via Restful API

I am trying to build a Restful API for user to download a zip file from cloud storage via my API. Reasons to do this: To prevent direct access to our internal cloud storage To hide the technology ...
0
votes
0answers
9 views

Do you Recommended to use Nswag to generate client API code and sharing with client services as a Nuget package

I am confused between (a) writing my own client API and (b) Generating the client api from the .net core service and then using in my client service. As per latest .net core practices, would you ...
0
votes
0answers
10 views

How do I filter records with a REST API using Express and Mongoose?

I am building a classic Todo server using Express and Mongoose. Here is my model: import mongoose = require('mongoose'); const autoIncrement = require('mongoose-sequence')(mongoose); const ...
-1
votes
0answers
13 views

Invoking a function and sending json payload using POST

I am trying to invoke a function using curl: curl --user xxxx:xxxx -vvv [email protected]:\users\xxxxx\crs.json -H "Content-Type: application/json" -X POST https://localhost:8080/dsdataserver/cartoservices/...
0
votes
0answers
14 views

Getting associated object from URI in request body

I'm trying to add one object into collection of objects in other object. I'm following the guide from https://www.baeldung.com/spring-data-rest-relationships and trying to add an object to a ...
0
votes
1answer
34 views

Refreshing JWT token - Do it? When?

I have Native Phone App (in React Native) and Express REST API with auth based on JWT. I have 7 day expiration set. Am I supposed to refresh (generate new and throw old) token every time user 'cold' ...
0
votes
1answer
13 views

REST api: best practices in case of no content

I'm pretty familiar with rest apis, but today I was asked this: "what if a resource exists but it's content have been blocked for some reason?" example: try to retrieve users/18 but user with id 18 ...
0
votes
0answers
16 views

problem in creating a simple API service in different file

I want to create a simple RESTful service for managing the list of genres of movies. First I tried to handle all the HTTP requests to a given route('/api/genres') in a single file (server.js), and my ...
0
votes
0answers
7 views

Acesso APi Portal Fiscal [on hold]

Alguém sabe dizer se existe uma forma de pegar o status de um CNPJ diretamente das secretarias da fazenda? Vi que existem alguns serviços pagos, existe alguma forma de fazer esse acesso sem usar esses ...
0
votes
1answer
24 views

JSON parse error when sending POST request using JavaScript's Fetch API

When I send the following POST request using fetch: fetch(requestUrl, { method: 'POST', headers: { 'id': 'my_id', ...
0
votes
0answers
9 views

How to ignore the websocket event for the client who made a change via HTTP?

We have a React application which uses REST to get and update data and Websocket to receive notifications of changes. Imagining we have a collections /users user1 calls the http method POST /users ...
-2
votes
0answers
13 views

Master details in Angular 8 with api rest core [on hold]

I need to insert a product and his parts, and I need master details crud for this. I am using api with core and Angular 8.
0
votes
0answers
22 views

HTTP 409 Error while using RestTemplate for consuming two RESTful API

I have a simple Spring Boot project with a scheduled task as follows: @Autowired private RestTemplate restTemplate; @Bean public RestTemplate restTemplate(RestTemplateBuilder builder) { return ...
0
votes
0answers
12 views

Nuxt.js get status 400 from express API on production mode

I develop an app with Nuxt and Express API on my local mashine. Here is all working fine. Its a sigle Nuxt app with axios. The Express API is single too. Now I put the API and Nuxt app on my server ...
0
votes
0answers
8 views

traefik - web provider is not persisting on docker-compose down

How to keep the traefik web provider ( rest-api ) persistent on docker compose down. My docker compose file is below, which volume to be mounted extra ? version: '3.2' networks: default: ...
0
votes
0answers
8 views

Soap api development for relational entity in spring boot

Is there any way to convert REST api to SOAP api or how to create .xsd file for relational entity can anyone suggest tutorial for do that?
0
votes
1answer
13 views

Call WCF rest service with Javascript (JQuery) do not receive any response

The WCF service gets called for sure (the debug kicks in). No response back to javasript callbacks. If i configure the call with dataType:JSON the error callback is called. If i configure ...
0
votes
0answers
10 views

Rest api report/metrics

I am developing an api to get the metrics of my apis(request count, latency..etc). I am using Django and drf for exposing api. Which is best practices to log the metrices. I would like to choose rdbms ...
0
votes
0answers
15 views

How to write a “update or create” function via REST API on WooCommerce?

I am trying to create an "update or create" method, which loops through all products on an external database and checks if the ID of each product matches any ID on the WooCommerce database. If yes, ...
0
votes
1answer
12 views

Spring-boot Rest : Use ControllerAdvice but keep default handlers

My basic need was to catch user defined exceptions and return generic responses. For this I used the @ControllerAdvice with @ExceptionHandler. See example below @ControllerAdvice public class ...
0
votes
0answers
8 views

I am trying to do integration with clicktime and calling $batch Endpoint, when I am trying using postman I am failing how to sent request

I am doing batch operation for clicktime Integration. How to add the below body as request in postman? I tried this in Postman like shown in images. I am able to call all endpoints, but not sure how ...
1
vote
2answers
13 views

What HTTP status response code return if the request is missing or wrong value(multiple choice) path parameter?

A REST API with path parameter: /search/{option} , the {option} parameter has a list of possible values "A","B","C". GET method is only used. What is the appropriated status code to give when {option}...
0
votes
1answer
44 views

Print JSON response instead of response code [duplicate]

How do I get the JSON response from this, when I print the response I just get the response status of 200 instead of the JSON tree. headers = { 'accept': 'application/json', 'Authorization': '...
1
vote
2answers
39 views

iOS SwiftUI Searchbar and REST-API

I'm experimenting with SwiftUI and would like to fetch an update from my REST API with a search string. However, I'm not sure how to bring the two components together now. I hope you have an idea. ...
-2
votes
0answers
8 views

Prolifics Panther in Angular environment

How best to reuse Prolifics Panther artifacts from existing applications in the new Angular-based 'ecosystem'? The platform is on-premises Redhat Openshift and Panther is version 5.52 (with REST ...
-2
votes
0answers
29 views

Why angular do infinity retry after failed http request?

After update to Angular 8.2.5(7) all failed request begin infinity retried this request. On console I saw this: POST http://url/api/usersettings/save 400 (Bad Request) zone.js:3331 http://url/api/...
1
vote
4answers
83 views

All Timestamp date reduces by 2 hours, Java 1.7 and MS SQL Server

I developed a Spring based Rest API, returning a list of DTO's. In my DTO I have some fields having TimeStamp as a DataType. While I try to debug, the API is returning the values well and good, Only ...
0
votes
1answer
25 views

Programatically ignore (omit) specific fields in JSON response of REST service WITHOUT altering the DTO object class

I have a DTO class and some REST services that sometimes return (among other things) a List of those DTOs. I cannot alter that DTO, as it's used in several places of the project. However, only for ...
-1
votes
0answers
20 views

Retrieve bearer token from REST API Response

Im trying to authorise my script with an API. I've followed the authorisation guide here though I'm still getting an invalid authorisation bearer token response. I need to use the bearer token ...
0
votes
1answer
11 views

How do you throttle a REST API using many Heroku dynos?

I configured my REST API throttling, accepting 10 requests max per minute. It works as expected in a local environment. However, when deploying on Heroku, this throttling is applied on a dyno basis. ...
0
votes
0answers
8 views

@PreAuthorize Annotation cannot resolve variable

We are using RestController and we always get a warning on every single method telling us that the variable from the @PreAuthorize annotation can not be resolved: @GetMapping @PreAuthorize("...
0
votes
1answer
22 views

Woocommerce REST APi get customer with phone number [on hold]

I want to get customer info with phone number Request https://example.com/wp-json/wc/v3/customers?billing={"phone":"(1555) 555-5555"} returns array with all customers.
0
votes
0answers
7 views

How to provide rest api configuration or manifest as swagger json for soap ui to parse rest endpoints?

I am trying to implement Soap ui for automating testing of my Rest web service. I found out that we have to either provide the service url or provide a manifest file like swagger.json to soap ui. My ...
0
votes
0answers
18 views

end-of-input reached - REST API call from PL/SQL

I am trying to send GET request to a rest api, but i get the error: ORA-29259: end-of-input reached. I tested my code on a free rest service (https://jsonplaceholder.typicode.com/) and i got the ...
0
votes
0answers
6 views

How to get message by message_token using Viber REST API?

I'm building the Viber bot which will be served using different services. One of the problem is about getting the exact message which has been sent to the user. The "received" event gives ...
-1
votes
1answer
31 views

Is this possible to run two web application with different JAVA version on one server?

We want to run our one application on JDK 1.8 version of java and other on JDK 12 version, Is this possible? We create our entire rest application on Java 1.8 version also we integrate paytm gateway ...
-1
votes
0answers
29 views

new HttpHeaders 415 erroe

I've researched the question on different links here and other resources. Nothing works for me. Please, help me to find an error import {HttpHeaders} from '@angular/common/http'; handleSubmit = ...
0
votes
0answers
26 views

How to send data from Web service to database?

So I have created an aplication in android studio that has to send a JSON object to my Webservice. I have my application in android studio and my webservice in Netbeans. I can succesfully get a ...
0
votes
1answer
44 views

How to write a GET request to retrieve ALL products (not only the first 10) on WooCommerce

So I want to connect an external database to the woocommerce database in order to export the products from there and import them into woocommerce. Of course, I would first like to check if the ...
-2
votes
2answers
37 views

Integrating NodeJS REST API into React JS Application [on hold]

I have a REST API written in NodeJS and Express. I plan on writing a web application in ReactJS that uses this API. I am looking for a server that runs the REST API and the ReactJS app in one instance....
0
votes
0answers
23 views

How to refresh with a rest api hook with ReactJS

I made an fetch hook for my rest api in ReactJS. I'm having two components. 1) list of countries 2) add country After component (2) adds a country I want to tell to component (1) to reload the data....
1
vote
1answer
25 views

How to centralize database models folder if it is use in multiple projects?

Hi we have 3 different RESTapis namely A,B and C and all access the same MySQL database. Our stack is NodeJS + ExpressJS + SequlizeJS ORM + MySQL Right now If I want to create a new db model, I need ...
0
votes
1answer
29 views

Serverless Framework and DynamoDB: Unexpected token in JSON at JSON.parse

Hi I followed this Serverless + AWS REST API tutorial and it went great, I got it to work. Now, I'm trying to modify it but have hit a wall while trying to submit data into the DynamoDB table. Using ...
0
votes
0answers
11 views

URL scheme & Django views for extremely similar API and webpage

I am designing an API for a website I manage which will more or less be the same data shown tabularly on the site as will be served as JSON to clients. Essentially, I hope that the webpages ...
0
votes
1answer
31 views

Rest template for postForEntity with file & other properties

I want to upload the file with Json request in rest template along with other properties. But I couldn't able to do this. @Bean public RestTemplate getRestTemplate(RestTemplateBuilder ...
0
votes
0answers
25 views

How to set and get NgModel dynamically for a Nullable 3d Json data

i'm trying to get/set value into Html input using [(ngModel)] Evrything works fine with my 2d Json level, or even 3d Json level IF my object already exsiting in my json. But, When my 3d object is ...
0
votes
0answers
28 views

Is it bad practice if I use one endpoint to monitor another endpoint?

I have a web application with various endpoints, and I have to create a dashboard tool to monitor the statuses of those endpoints. For example, one of my web application endpoint is base-uri/api/v1/...
0
votes
0answers
14 views

Searching for a universal multiplatform http 1 client/server generator

I used grpc for a number of projects, which made me believe that data transfer between two parties is very easy task, doesn't matter which modern platform they use. For a current project I had to ...