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

Delete Work Item attachments using Azure DevOps REST API

Pull request attachments can be deleted using REST API:https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-request-attachments/delete?view=azure-devops-rest-7.0But I am not seeing similar...

View Article


Delphi Client connecting to HTTPS - TRestRequest.Execute a lot slower than...

server: Delphi VCL app, using TIdHTTPWebBrokerBridge, TIdServerIOHandlerSSLOpenSSL with SSLOptions.CertFile/KeyFile/OnGetPassword assigned. In WebModule, a WebActionItem.OnAction tied to /some/path...

View Article


STRAPI RestAPI - How to upload image to a Media field, which is lay in...

I have a big question about Strapi v4, I understand that a lot of people are asking it. But I spent 4 hours surfing the internet and I found many cases, but none of them are either solved or just...

View Article

How to generate JWT token in react js

I'm new to JWT concept. I have a signup form and login. Signup.js: I have created signup formimport React, { Component } from 'react';import { Button } from 'react-bootstrap';export class SignUp...

View Article

AWeber API - How can I get my account ID for use with the subscribers endpoint?

I can't find anywhere in the documentation that explains how to find my AWeber account ID to use in REST endpoints. (But, I can easily find the list ID just fine -- I'm NOT asking about the list...

View Article


Image may be NSFW.
Clik here to view.

It's possible to use JsonPatchDocument with FromForm and IFormFile?

I'm working with a small application just to study .NET Core and C#. I have a model called Movie and one of its fields is a byte array to store an image. I want to know how is it possible to use...

View Article

API licensing content [closed]

As many website owners know, surviving solely on advertising revenue is no longer possible; Google is consuming all of our profits. For years, businesses have approached me to license the content of my...

View Article

Retrieve keycloak group id for a specific group

I am trying to access a group id of a specific group from keycloak. What I found is like there is no REST Api call is available for access this one. You can refer here...

View Article


Update Many-to-Many relation in Api Platform via RESTful

You have two entities: Page and Tags and a Many-to-Many relationship between them.If you want to add tag with id=1 to page with id=1, call:PATCH /api/pages/1{"tags":["/api/tags/1"]}If you want to add...

View Article


How to configure Spring Data REST to return the newly created entity as part...

I'm using Spring Data REST to expose my JPA repositories as Web Services.I'm testing each of these Web Services using RestTemplate. I want those tests to be integration tests... meaning that I'm...

View Article

UTF-8 String in Springboot app's context-path not working

I am trying to use a UTF-8 String in the context-path of a Springboot app as below in application.properties:server.servlet.context-path=/सार्वजनिक.. the app compiles and runs with below console...

View Article

REST API response should return only id or full object?

At work every time I deal with creating CRUD api, I always return the full object for create and update.Now I'm developing a personal project and I was wondering if it can be a good idea instead to...

View Article

Login with error Bad Request after set Require action with value update...

I was created an user with code below, then login with API, response return Bad Request ! How I can catch response with something like: user had giant require action with value Update Pass ?Thanks for...

View Article


Image may be NSFW.
Clik here to view.

Why is my code giving me the error Internal Server Error 500 even though it...

I have this code which adds a doctor specialization to the database in which the doctor has to upload an image and some text fields with a drop downFuture<void> addSpecializationToServer(...

View Article

Laravel API resourceCollection using array rather than model

I have an API that uses API resource and resource collections to correctly format the JSON responses. In order to decouple my controller from my model I use an adapter to query the underlying model....

View Article


Image may be NSFW.
Clik here to view.

POST requests to specific Laravel 10 API endpoints unexpectedly execute web...

I'm working on a REST API project with Laravel 10. Despite having properly configured the Laravel API routes for endpoints (/dp and /dj), POST requests to these two endpoints unexpectedly execute web...

View Article

When to use stateful service instead of stateless service with remote cache...

Stateless service with remote cache like Redis will provide functionality simiar to that of having stateless service. With stateless service the complications of configuring load balancers to use...

View Article


Why is my fetch() sending an empty JSON body?

I've been trying to send a JSON data using fetch but the backend receives an empty object.In my Client JS I haveconst user = "company1";const username = "muneeb";const data = {user,...

View Article

Custom LoginController in Spring Security and post with Angular

Im trying to create my own LoginController so i can watch the data flow more closely, but either my post method is wrong or my controller is missing something.Whenever I try to send a login request it...

View Article

ETags and collections

Many REST APIs provide the ability to search for resources.For example, resources of type A may be fetched using the following HTTP request:GET /A?prop1={value1}&prop2={value2}I'm using optimistic...

View Article
Browsing all 3619 articles
Browse latest View live


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