Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3607 articles
Browse latest View live
↧

Secrets and Certificate Expiry with Graph Powershell

So, hope someone can help me across the finish line with this. I've cobbled together a bit of code, basically something I got from a much smarter forum user for a similar purpose.I'm trying to take all...

View Article


POST JSON object using Spring REST template

I am posting JSON object using spring rest template. It works fine for less data, but posting more data throws a Request URI too long error. final String url = getServiceUrl() +"/rs/doc?param1=test";...

View Article


Documenting APIs - /me endpoints

I have a portfolio where I display my work (mostly backend API stuff with minimal UI to interact with) and am currently documenting the APIs. What I have is a page per project along with the...

View Article

is there any way to store user in list user getting from database mysql? I'm...

UserServiceImpl.java@Override public List<User> getAllUsers() { User user = new User(); List<User> ulist = new ArrayList<>(); String query = "select * from user"; try {...

View Article

python fastapi connection reset error 0054

Created a python fastapi endpoint - post which takes a pdf file as input does some processing and returns the pdf file backfrom fastapi import FastAPI, status, File, Responseapp =...

View Article


Image may be NSFW.
Clik here to view.

Couldn't parse share document: error in LinkedIn REST API share

I try to call a share REST API with Hammock library function in my MVC 4 application.Here is my code: public ActionResult SharePost() { string content = ""; try { var credentials = new OAuthCredentials...

View Article

Unable to make a valid GET call with HttpClient

I'm trying to write a simple console app to communicate to my Honeywell thermostat. They offer a free-to-use REST API that's documented here: https://developer.honeywellhome.com/ . I am having trouble...

View Article

Not displaying data from @ManyToMany even though it is in the database

Here are my ProjectController:package db.lab6.projectmanagement.controller;import db.lab6.projectmanagement.dto.MemberDto;import db.lab6.projectmanagement.dto.ProjectDto;import...

View Article


Spring REST call: Do not return detailed error messages

Security experts gave me the hint to avoid returning internal structures in case of any errors. If for example an invalid date format is given, only the 400 error should be sent back to the caller but...

View Article


api platform - Unable to generate an IRI for the item

I'm starting with API Platform and I'm using the example entity "Foo":namespace AppBundle\Entity;use ApiPlatform\Core\Annotation\ApiResource;use Doctrine\ORM\Mapping as ORM;/** * Foo * *...

View Article

Spring Boot 3.2.4 + Springdoc OpenAPI: "No operations defined in spec!" in...

I'm working on a Spring Boot application (version 3.2.4) and using Springdoc OpenAPI (version 2.0.4) to generate API documentation. However, when I open Swagger UI, I see the message "No operations...

View Article

Dto validations in springboot applications are not working

I am trying to implement validations in my application for register user API. i have created RegisterRequest.java dto and my controller is having below code, neither bindingresult working nor the...

View Article

Swagger UI for file download as zip

We are using swagger UI for displaying the Spring MVC REST API request response. I have an API to save the folder as zip. I want to display the downloading status on the swagger UI. How can I do this?...

View Article


Model Import fails ExpressJS / Sequelize fail?

Hey guys I am building a fullstack website to to learn Express , Sequelize and REST apiI have this model for a post request ``module.exports = (sequelize, DataTypes) => { const PaymentMethods =...

View Article

Unable to access a public API end point that requires Authorization code...

I have an application A hosted in AWS and its API end point, I have another application B hosted in Google Cloud and its API end point.I have a challenge to access my A application endpoint from my B...

View Article


TypeError - ctx.request.body is not a function

I am trying making a simple RESTApi using Deno and Oak. Why am I getting this errorTypeError - ctx.request.body is not a functionrequest: { url: "http://localhost:8000/todos", method: "POST", hasBody:...

View Article

Is it good practice to modify a session with a GET request?

I am trying to implement an invitation system in Django, compatible with django-allauth. It is similar to django-invitations, but I have some requirements that require a custom implementation.After...

View Article


Which Restful approach is considered Best Practice from these 2?

I'm developing my springboot software for e-commerce and I had a doubt regarding the best approach to use with some RestControllers. Practical example: if I need to add a product to my wishlist I could...

View Article

Invalid JSON data in request body: Syntax error POST Call Rest API YII2

When I try to post using Postman,I get this error {"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400,"type":"yii\\web\\BadRequestHttpException"}My...

View Article

Grapevine post request issue

I am using the Grapevine server in a console application.Calls via get work perfectly.Now I want to pass a serialized order object to an endpoint via post request, but I get the following error...

View Article
Browsing all 3607 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>