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

REST API - Can't send arrays or numbers

I have a POST API wrote in express.js that is almost empty. It currently only displays the body:const createOffer = async (req, res, next) => { console.log(req.body);...

View Article


SpringBoot 3 Upload large file efficiently and performantly

I am using spring boot 3, java 21 for a rest api.One of the API will handle file upload. Files can be pretty big, 2~3GB. Reading the spring documentation, I read that the MultipartFile request will...

View Article


.NET Core API not accessible using secured link (i.e. https://......). Same...

I've a .NET Core Controller API. When accessing the Web Method(s) through secured link, i.e. https:///api/values, it's not workingIf I'm accessing it with unsecured link, i.e. http:///api/values, it's...

View Article

ASP.NET "pass through" WEB API

I am currently working with an architecture which consists of two connected APIs: an External API exposed to clients and an Internal API which connects to internal services and is only exposed to the...

View Article

Image may be NSFW.
Clik here to view.

.NET REST API HttpResponseMessage is serialized to JSON

I am attempting to write a simple REST API in C# that connects to a database. Right now, I am working on POST for one of my objects, and I am attempting to return a HttpResponseMessage based on the...

View Article


Image may be NSFW.
Clik here to view.

The remote server returned an error: (404) Not Found error for API calls...

We built an API service using asp.net. The calls work fine on the local machine with IIS Express and port 51937. But we get "The remote server returned an error: (404) Not Found" error when we try to...

View Article

How to get an attribute of a serializer class in DRF?

I have a serializer class CourseSerializer. A course can have a number of groups, lessons and etc.. A code for a serializer:class CourseSerializer(serializers.ModelSerializer): lessons =...

View Article

Need Help making dotnet controllers DRY

Need some help making my controllers DRY using the ASP.NET coreSo, basically, I have an issue keeping my controllers non-fat and DRY.Basically, let's say I have 4 controllers : controllerA, controllerB...

View Article


Change Dropwizard default ports

I have a Dropwizard based Jersey REST service running on the default ports 8080(service) and 8081(admin), I need to change the default ports to something that is less commonly used, I am not able to...

View Article


How to disable or turn off swagger? [duplicate]

I create a project by using .Net web API, and when I run the project, swagger appears.Is there way to delete or turn off?

View Article

How to configure JSON deserialization options in .NET minimal API project

I have a .NET minimal API project, as described here. One of the endpoints accepts JSON in the request body, and this is deserialized automatically. The code looks something like...

View Article

Combine results from two REST endpoints? [closed]

I'm new to C# and REST API.So, I have endpoint A that takes city name or city name and company ID (Unique Id, can be list of ID) as request to return the the company information. Like company name,...

View Article

What status code we should return when request is correct but there is no...

I have an endpoint that return some live data for specific user (GET). And in most of the cases there is live data for most of the users, so I return the json body and 200 status code, but in some...

View Article


.net Error getting when trying to get auth token using Oauth2

I am new to the Oauth2 concept. I am trying to connect to API. The API requires me to get a token code with client credentials. I am using the library RestSharp to connect. I am using the code below...

View Article

Upload DocuWare File Using Byte Array

How do you upload a file to DocuWare, via the .NET API, using a byte array? Currently it appears that you can only use a FileInfo object which requires the file to be on disk....

View Article


How to trigger rest API calls on database change without database triggers...

I have an EXE Trying to call a rest API if a new record gets inserted/updated without using SQL trigger. Is there a way to do this in .net 4.7 similar to Azure function queue/storage triggers?

View Article

How is API request body created?

I have this put API.URL looks like this : /v1/xp/generalUsers/{generalUserId}/users/{userId}/appsbut Request body looks like this : {"connectedApps": [ {"connectedAppId": "string","applicationRoles": [...

View Article


How to join three table rest API .net core 5?

I have three entities.First x second y third zpublic int Id { get; set; }public ICollection<y> y{ get; set; }public virtual z z{ get; set; }For Ypublic int Id { get; set; }public int xID{ get;...

View Article

.NET Core API : No route matches the supplied values

I'm making a Web API and I want to retrieve the object created by the CreateCommand Method.To do that, I'm using the CreateAtRoute function to call the GetCommandById function ,with the id of the...

View Article

Restful API Post file and metadata in one HTTP Request

I am currently working at a requirement, where we receive files to process from a website including some metadata such as (Name, App_ID, ...).The metadata structure will always be the same. In order to...

View Article
Browsing all 3607 articles
Browse latest View live


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