Creating a fork with the GitHub V3 API (REST)
I'm trying to fork a repo using the GitHub V3 API via REST, however, I am having issues making a POST request as per the docs (https://developer.github.com/v3/repos/forks/#create-a-fork).Basically,...
View ArticleWCF as a web service with the smallest possible payload
I do most of my work with Microsoft technologies these days, so naturally I'm checking out what WCF has to offer. It seems very flexible and a great next step up from .Net remoting, but it seems very...
View ArticleUnknown field postDetail for include statement on model Post. Available...
I’m encountering an issue with a Prisma query where I’m trying to include related models in the findUnique method. My Prisma schema defines a relation called PostDetail, but Prisma Client throws a...
View ArticleCalling a Rest API with Bearer token
I'm trying to consume a REST api with bearer token authentication. I'm getting this error:Media type is unsupportedCode:using System;using RestSharp;using System.Configuration;using...
View ArticleConsume Workday REST API with oAuth 2.0 in .NET MVC
I am trying to call the Workday REST API in my .NET MVC application and am having trouble with the oAuth 2.0 aspect of it. Although in my case I am talking about Workday in particular, I think what I...
View ArticleIs OAuth 2.0 A Concept or a Tangible Framework you must download?
I'm somewhat confused about what you would professionally call an "OAuth 2.0" Authentication system...I've already built an MVC RESTful API interface that stores its username and password values in an...
View Article.Net web API - returning image with a message
I am preparing CRUD endpoint for posts (like from social media) in my API (.NET 6, Swagger UI, MongoDb). POST endpoint takes string message and IFormFile with image and save it in database - image is...
View ArticleAdd custom xml tag in swagger (.NET)
I want to add a custom tag in my swagger documentation, for example a path tag like this./// <summary>/// A summary/// </summary>/// <remarks> comments </remarks>///...
View ArticleHow to call external API in C# + WCF with credentials
I am trying to call external API with request for which I have an URL with credentials.The external API is not accessible from browsers.string url =...
View ArticleWCF Rest making a http request: sequence closed due to authentication error
My WCF Rest makes a request to another Rest API, but it returns the following error:System.Net.WebException: Connection is terminated: Unexpected sendingerror. ---> System.IO.IOException:...
View ArticleIssues with GTIN Exemption: Missing 'externally_assigned_product_identifier'...
I have successfully acquired a GTIN exemption for a generic brand and the product type APPAREL_HEAD_NECK_COVERING. However, I'm encountering issues when posting data to my Amazon seller account via the...
View ArticleVSCode REST Client : use the result of a request in another request
Using VSCode Rest Client, I would like to do a post request that returns a jwt token and use it in another GET requestFor the moment I am doing this POST request in a file auth.http:# Login# @name...
View ArticlePower BI Rest API Dataset Refresh isn't updating entire model
I am trying to use the REST API Dataset Refresh to programmatically update my datasets that are setup with incremental refresh. The rest api successfully kicks off the refresh of the models but for...
View ArticleWCF REST parameter object is null
I have created WCF REST API. I have implemented following service interface and service method for the API.service interface:[OperationContract][WebInvoke(Method = "POST", BodyStyle =...
View ArticlePass API key / auth information from HttpOperationHandler to API class in...
I'm currently developing an WCF4 based REST webservice. Most calls don't need authorization, but some do, so my plan is to implement an RequireAuthorization attribute that handles API key authorization...
View ArticleUnable to find a MessageBodyReader of content-type application/json and type...
I am using RestEasy client with jackson providers and getting the above errorclientside code is: ClientRequest request = new...
View ArticleAPI REQUEST ERROR : "Unable to read data from the transport connection: An...
I built a rest API that is used to send SMS messages and emails.I make an API call and get the following error:"The underlying connection was closed: An unexpected error occurred on a receive."}"Unable...
View ArticleAzure Devops REST API - publish build artefacts from local
I'm trying to publish some files as build artefacts in an Azure DevOps build pipeline with PowerShell using this...
View ArticleHow do you force a JSON response on every response in Laravel?
I'm trying to build a REST api using Laravel Framework, I want a way to force the API to always responed with JSON not by doing this manulaly like:return Response::json($data);In other words I want...
View Articleusing python requests to capture response when API call sends a please wait...
I have an API call that sends the following response when the request is made through browser,{'Status': {'Code': 4, 'Message': 'Please wait'}}After a few seconds the response changes to{'Status':...
View Article