How to write a Rest API to return the same string that is sent by user
I am writing a Rest API for school assignment using C# that does nothing. It just sends back the same exact string sent by the user. This is my code:namespace Textsender.Controllers{...
View ArticleC# .NET Implement DHL API Tracking [closed]
I have tried adding the Service Reference to my Project but this is not working?https://api-eu.dhl.com/trackingI am getting the following error when trying to add the Service ReferenceMetadata contains...
View ArticleREST API Best Practice method GET with many condition
I have two question:what is best practice for REST API method GET if there are many condition with the parameters.Example:I have customers API and the user wants the API with request parameter like...
View ArticleTrying to do POST Request but getting error 500, do I need the Certificate file?
I'm trying to do a post request to visa API. It says I need the following header:// HeaderAccept: application/json,application/octet-streamAuthorization: {base64 encoded userid:password}I believe I...
View ArticleRefactor similar methods but with different return types [closed]
I have two methods:public ActionResult<IEnumerable<IDataObject>> GetRelatedObjects([CanBeNull] string className, [CanBeNull] string primaryKey, [CanBeNull] string relationName){ if...
View ArticleHow to GET a binary file with metadata from server to client through WCF API...
I've been searching around the web for a long time but I couldn't find something specific about the best approach for this architecture issue.I have an upload pattern that derives from Amazon which has...
View ArticleCollections returning
I am having difficulty getting two records out of a function when usingcollection. I don't know what I am doing wrong.Service calling function...Announcements announcements = new Announcements(ID,...
View ArticleREST API on installed server
I am implementing a RestApi in .Net and for authentication I am using sha512 for verifying password but while I try to test that API on installed server, it is not working but on other system or other...
View ArticleSafe way to write a text document using rest API
I have a a text file that stores 20 or so JSON objects. I have the read and writing working when it locally hosted IIS express server. But when it is up on the hosting server it can only read form it....
View ArticleMicrosoft Live custom C# REST API error 415
I'm trying to get data from the Microsoft Live API. However, when I try to get the access_token, I instead get a 415 (Unsupported Media Type) error message. I have looked pretty much everywhere, but I...
View ArticleConsuming rest API (like in basecamp) from my .Net application
How can I consume the restful API (like the basecamp) from my .Net applications.
View ArticleCommunicating Microservices. Spring Boot Why does everyone do it their own...
Every day I see something different and new and it has reached a point of no return. Each person does it as they want, know how or as their understanding has made them understand.I see that sometimes...
View ArticleHow can I get the Store info with WIX rest API
I've implemented the Advanced Oauth flow with a WIX app and REST API using the docs: https://dev.wix.com/docs/rest/app-management/oauth-2/sample-flowsThis gives me a valid access and refresh token.I...
View ArticleMultiple insert POST requests optimization
I have this method in my API that takes a POST request with a JSON and save.[ApiController][Route("tests/send")]public class TestAPIController : ControllerBase{ [HttpPost] [Route("")] public async...
View ArticleHow do I cancel a long running task from a DELETE endpoint in ASP.NET Core?
I have an API to generate a long running task and a different API to fetch the result (can also be called to get a partial result).An example:[HttpGet]public IActionResult LongRunning(){ var taskId =...
View ArticleWhich is the correct way to use javax.ws.rs.client.Client for SSL connections...
Our application should make use of javax.ws.rs.client.Client (whose implementation is provided by resteasy-jaxrs-3.0.19.Final.jar) to perform an HTTP POST request to an external service whose URL...
View ArticleHow correctly send a URL in feign client as PathVariable?
I send a request, response contains URL to the next page. I need call this url, if it exist.`@GetMapping(value = "{nextUri}")SearchResponse getNextPage(@PathVariable("nextUri") String nextUri);`But...
View ArticleOSB: Calling REST Service from SOAP Proxy Service
I have a SOAP Proxy Service that calls a REST Business Service, but whenever I make this call it gives me this error:<con:reason>General runtime error: Invalid HTTP method:...
View ArticleHow to efficiently query REST APIs?
I would like to build an analytics solution. The main data source would be a publicly available REST API.I have written a bunch of Python scripts using requests that query multiple endpoints of the...
View ArticleAzure ServiceBus REST API - Receive Messages on a Topic/Subscription
Does anyone have any examples of using the Azure ESB REST API to receive messages from a topic/Sub.I can hit the subscription and get the subscription summary details, but can't see how to get the...
View Article