When multiple Deferred objects are passed to jQuery.when, the method returns the Promise from a new "master" Deferred object that tracks the aggregate state of all the Deferreds it has been passed.  The method will either    resolve its mas...
I am working on creating a RESTful API that supports cross-domain requests, JSON/JSONP support, and the main HTTP method (PUT/GET/POST/DELETE).  Now while will be easy to accessing this API through server side code , it would nice to exposed it to...
I'm making a RESTful web service call in my JavaScript page and get the following warning:  "This page is accessing information that is not under its control.  This poses a security risk.  Do you want to continue?"  Now I've read up o...
I have a kinda tricky situation: I'm currently building a full meteor-featured application. But I also need to expose some functionality as REST-Service for automation reasons (a third party application should be able to insert and receive data v...
I have a working web service at http://localhost/RestService/GetTransactionByStatus/1. When I run that URL on my browser I'm getting the correct JSON-formatted response:  {     "transactionConcil"      : "TRANSACTIONS OK",     ...
I know how to make an HTTP request to my REST api from javascript using jQuery or XMLHttpRequest. What I want to do now is make the request without setting properties for the header values. An HTTP request message consists of:        Request line, su...
I am trying to query my database several times and construct an object which stores every response from my database in a field. Here is my code:  router.post('/search', (req, res) => {     var collection = db.get().collection('styles&#...
here is the challenge:  The service-/business layer has a REST (JSON) interface. There are two kinds of clients which can call the API: The webapp, which is running in a browser and a mobile-app (Android). Both of them are public. Everyone who uses t...
Im using sailsjs as a MVC  for node js, i'm still learning it. I managed to get data from my own database and use it.  But now i need/want to get data from an external rest api. I used this in my controller:  // api/controllers/SomeController.js...
I recently started using Swagger for my documentation but there are few things that are still unclear to me. I created my YAML document and now I would like to be able to share my documentation in a .pdf or HTML/Javascript page with the rest of my te...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.