How to invoke REST api using VBA script
Dim WHTTP As ObjectSet WHTTP = CreateObject("WinHttp.WinHttpRequest.5.1") mainUrl = "https://googlesample.api.google/okta"myuser = "myluckyuser"mypass = "myluckypassword"strAutheticate = "username="...
View ArticleHow should I indicate hateoas links in a catalog endpoints?
We are trying to start using HATEOAS in some our APIs but we are having some doubts how to write the links in the responses. So we have this endpoint, that return a list of resources. We are having...
View ArticleGroovy POST request with form filling in it
I need to write a script similar to this cURLcurl -X 'POST''url/authenticate' -H 'accept: */*' -H 'Content-Type: multipart/form-data' -F 'Username=user_name' -F 'Password=pass_word'I have this, but...
View ArticleDynamic Configuration of ProxyErrorOverride in Apache Based on Response Headers
We have an Apache server configured as a reverse proxy for our backend application. Currently, the Apache server overrides error codes (4xx and 5xx) and displays a default error page when an error...
View ArticleHttp Delete request to django returns a 301(Moved permenantly)
When I do a Http DELETE request to a django app. it directly returns a 301(Moved permanantly) response and redirects me to GET request of same url. I am guessing that Http PUT request would return 301...
View ArticlePowershell Invoke-RestMethod Call using Windows store certificate (Basic...
I would like to call a remote Rest web service from a Windows server hosting the remote certificate. I've exported the certificate from the remote server and added it to the Windwos store....
View ArticleObjective-C iOS 7 get data from rest API
I want to get all articles from the shopware API (http://wiki.shopware.de/Shopware-API_cat_919.html)but the I don't get the data into an NSDictionary.The URL I call: http://myshop.com/api/articles.Here...
View ArticlePreventing Parallel Executions of a Method Triggered by Quartz Scheduler and...
I have a Quartz Scheduler that calls my configUpdate method every hour. However, this same method can also be invoked via a REST API call in my controller. Since this method is complex and...
View ArticleCalling external Rest API from a Lambda function in java
I am trying to write a lambda function that takes information from lex input, and calls a rest api, passing that information as a parameter, returns a string, which i then want to send to lex as a...
View ArticleHow to fetch data server-side in the latest Next.js? Tried getStaticProps but...
I am working on a Django Rest Framework with Next.js, and I am getting stuck with fetching data from the API. I have data in this url http://127.0.0.1:8000/api/campaigns and when I visit the url I see...
View ArticleReactive API needs to call parallel downstream APIs and await responses
I have a number of devices (currently eight, but could be more in the future) with a simple blocking HTTP REST api. One makes a GET call to give a value, the API responds with success or fail, but...
View ArticleHow do I use three-legged Oauth1 protocol to reach the Schoology API?
I have a student Schoology account and I have acquired a consumer token and secret for Schoology's API, which I can confirm work for two-legged Oauth1 (tested on Postman). However, I am unable to make...
View ArticleAPI timestamp restrictions for a mobile app
Looking into implementing an API security layer for a mobile app. Using the request timestamp and rejecting requests that are old would be once of the many checks. Below are some concerns with...
View Article400 BAD request HTTP error code meaning?
I have a JSON request which I'm posting to a HTTP URL. Should this be treated as 400 where requestedResource field exists but "Roman" is an invalid value for this field? [{requestedResource:"Roman"}]...
View ArticleAlways getting 400 - Bad request when posting data in a REST/JAX-RS
Person.java@XmlRootElementpublic class Person { private int id; private String fname; private String lname; // getter and setter}REST POST service@POST @Consumes({MediaType.APPLICATION_JSON}) public...
View ArticleHow to implement Long Polling REST endpoint in Spring Boot app?
Would you be so kind as to share any up-to-date manual or explain here how to implement a REST Long Polling endpoint with the latest Spring (Spring Boot)?Everything that I've found by this time is...
View ArticleDoes Google expose "Find my Device" APIs?
Google has its "Find my Device" service allowing you to find your phone, make it ring (even when silenced), remotely wipe it, etc. by entering here: https://myaccount.google.com/find-your-phoneWhat I...
View ArticleStandard methods for documenting a RESTful API [closed]
I'm writing a specification for a RESTful API for a new internal web service. It's not hugely long and fairly simple, but even so, it's my first time using strict REST (as opposed to cheating for...
View ArticleSpring Boot Ambiguous mapping. Cannot map method
I have 2 REST controllers in my Spring Boot application with simple CRUD operations.REST controller, that is mapped to "/json/currency"package ua.alekstar.moneysaver.rest;import...
View ArticleStrapi v5: How to associate a user with a Todo item during creation?
Here's my Todo model structure:Todo- title (Text)- description (Text)- completed (Boolean)- users_permissions_user (Relation with User from users-permissions)User- username (Text)- email (Email)-...
View Article