Quantcast
Browsing all 3637 articles
Browse latest View live

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 Article


How 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 Article


Groovy 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 Article

Dynamic 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 Article

Http 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 Article


Powershell 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 Article

Objective-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 Article

Preventing 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 Article


Calling 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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Reactive 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 Article

How 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 Article

API 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 Article


400 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 Article

Always 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 Article


How 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 Article

Does 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 Article


Standard 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 Article

Spring 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 Article

Strapi 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
Browsing all 3637 articles
Browse latest View live


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