Powershell Invoke-RestMethod
I'm trying to create a powershell script to access DYN's API and perform checks/updates on DNS zones I use/test.I'm following their API details and here's the first link,...
View ArticleUsing file_get_contents('php://input') with POST always returns an empty...
I'm trying to create a PHP REST API using Postgres. I'm adapting this tutorial.For some reason, using file_get_contents("php://input"); in the POST method returns an empty string.ex :$data =...
View ArticleConflicting REST urls
So I'm building a REST api and need to make some urls. The problem is, I'm running into some conflicting paths. For example:GET <type>/<id> gets the details of an object of a given type and...
View ArticleHow to configure JWT to work with cookies?
I have a Django application that functions as an API. Currently, it can generate access and refresh JWT tokens and save these tokens as cookies. My problem arises when verifying these tokens in other...
View ArticleIs it possible to allow URL parameters to be passed in like switches?
I'm wondering if it's possible to implement a REST API endpoint in ASP.NET where a URL parameter can be passed in like a switch (as opposed to having to pass in a boolean parameter that has to be...
View ArticleDifficulties sending multipart/form-data request via Postman
please, this is y concern: I'll like to know how to query a web service defined as in the below code using postman for test purposes.PS: I can't change the method signatureI have a web service like...
View ArticleHow to add multiple headers to RestClient for Spring Boot 3.2
I am using org.springframework.http.HttpHeaders to hold on to my headers. I receive a request from a service, collect the headers from the request into the HttpHeaders, and then I want to make a new...
View ArticleREST API: Avoid Library Global Initialization Scope (Google Earth Engine...
I’m building a REST API backend that fetches authenticated URLs for map tiles from private image asset collections in Google Earth Engine (GEE). Each user of the API has a unique Google Service Account...
View ArticleHow to log all the request-responses in spring rest?
The application should log the following information without impacting a client, asynchronously(in a separate thread).Request HTTP Method and URIRequest Headers (Except the default)Client's IP...
View ArticleSpring TestRestTemplate handling self-signed certificate differently than...
In Spring Boot tests I want to use self-signed certificate for https endpoints and access them by TestRestTemplate. However my TestRestTemplate is...
View ArticleHow to Get All Endpoints List After Startup, Spring Boot
I have a rest service written with spring boot. I want to get all the endpoints after start up. How can i achieve that?Purpose of this, I want to save all endpoints to a db after start up (if they are...
View ArticleHow to make a large file accessible to external APIs?
I'm new to webdev, and I have this use case where a user sends a large file (e.g., a video file) to the API, and then this file needs to be accessible to other APIs (which could possibly be on...
View ArticleJax-rs apache-cxf:No resource methods have been found for resource class
I have following cxf configuration file<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"...
View ArticleAzure Cognitive service intents and entities API needed
I am working with node js. Now I have to connect my application with Azure Cognitive Services. I did not find APIs for detecting Intent , API for listing Intent also API for listing entities. Right now...
View ArticleCould not read JSON: Unrecognized field (...), not marked as ignorable
Yeah, I know that this issue has been discussed a few times, but I didn't manage to solve my problem.So I'm getting a JSONObject from a http-request using...
View ArticleRest API for Kafka
I need to write a REST API for kafka which can read or write data from consumer/producer respectively.How can I do so?
View ArticleHow to upload files and attachments to the sobject record using REST API?
Salesforce has two different UIs and in accordance with it, it has the possibility to store attached files differently.Two files were uploaded via the classic UI and they are marked as 'attachments'....
View ArticleHow to use openssl with distant keys, accessible via KMIP or REST API?
I need to use openssl with keys stored on a distant KMS.How can I do this?I've seen specific projects about openssl using AWS keys (1) or Google cloud keys (2).Stil I found no KMIP-generic solution.(1)...
View ArticleHow to upload a Salesforce File using REST API properly?
GET /services/data/v47.0/sobjects/ContentVersion/0000v00000MFIVgAAP/VersionData from this request I will get binary file content, but how can I use this content to recreate the file properly (using...
View ArticleIs this api endpoint is correctly following standard REST guidelines [closed]
List Bundles added to the wishlistGET http://localhost:8000/api/bundles/?wishlist=trueAdd Bundle to wishlistPOST http://localhost:8000/api/bundles/0f0c6be3-665d-4d98-8153-817149bcd3bc/wishlist/Remove...
View Article