在云中部署WSO2 API?(Deploying WSO2 APIs in cloud?)
我在本地的WSO2 Api Manager中开发了一些API。 现在,我如何将API提供给云,以便其他人可以访问它们。
例如在Mulesoft Anypoint中,STudio for API有一个iPAAS-CLoud Hub,可以在云中部署他们的API。
我如何以及在何处部署WSO2 API?
I have developed few APIs in WSO2 Api Manager locally. Now how do I get the APIs to cloud so that others can access them.
Such as in Mulesoft Anypoint STudio for APIs has an iPAAS- CLoud Hub to deploy their APIs in cloud.
How and where can I deploy WSO2 APIs?
原文:https://stackoverflow.com/questions/37967964
更新时间:2024-01-22 21:01
最满意答案
在循环中,您不需要在推送新项目时遍历列表
var CircularList = function(){ this.push = function (value) { var newNode = { value: value }; if (this.head) { newNode.next = this.head; newNode.previous = this.head.previous; this.head.previous.next = newNode; this.head.previous = newNode; } else { this.head = newNode; newNode.next = newNode; newNode.previous = newNode; } }; } var cl = new CircularList(); cl.push({name: "hello"}); cl.push({name: "good"}); cl.push({name: "sir"}); document.body.innerText = cl.head.value.name + " " + cl.head.next.value.name + " " + cl.head.previous.value.name;
已更新为代码段
In circular you don't need to traverse the list when pushing a new item
var CircularList = function(){ this.push = function (value) { var newNode = { value: value }; if (this.head) { newNode.next = this.head; newNode.previous = this.head.previous; this.head.previous.next = newNode; this.head.previous = newNode; } else { this.head = newNode; newNode.next = newNode; newNode.previous = newNode; } }; } var cl = new CircularList(); cl.push({name: "hello"}); cl.push({name: "good"}); cl.push({name: "sir"}); document.body.innerText = cl.head.value.name + " " + cl.head.next.value.name + " " + cl.head.previous.value.name;
Updated as snippet
相关问答
更多-
为什么JavaScript prototype属性未定义在新对象上?(Why is JavaScript prototype property undefined on new objects?)[2023-04-29]
只有构造函数有原型。 由于x是一个构造函数, x有一个原型。 b不是构造函数。 因此,它没有原型。 如果要获取对构造b (在这种情况下为x )的函数的引用,可以使用 b.constructor Only constructor functions have prototypes. Since x is a constructor function, x has a prototype. b is not a constructor function. Hence, it does not have a p ... -
问题似乎相对容易解决: void main () { // This is wrong, it constructs an unnamed temporary. //construction // LinkedList(); // This is how you default construct a LinkedList item LinkedList myList; // This is wrong, you don't use the full s ...
-
循环链表和原型中更改对象属性时的错误(circular linked list and error in changing objects property in prototype)[2023-08-29]
在循环中,您不需要在推送新项目时遍历列表 var CircularList = function(){ this.push = function (value) { var newNode = { value: value }; if (this.head) { newNode.next = this.head; newNode.previous = this.head.previous; this.head.previous.next = ... -
最初,您的var obj没有名为constructor的属性。 当你打印它时,它通过它的原型( One.prototype )解决 - 所有原型都有一个构造函数。 当你指定obj.constructor = Two你在obj创建了一个自己的属性,它obj.constructor = Two了prototype属性。 这个新的prop对引擎没有任何意义,也不会以任何方式影响继承。 一般而言,“构造函数”似乎是纯信息性的属性,并不用于任何特定目的。 它只是从函数原型返回到父函数的反向链接。 有关详细信息,请参阅 ...
-
内置的原型方法不可迭代(请参阅规范)。 相反,使用getOwnPropertyNames() 。 Built-in prototype methods aren't iterable (see the spec). Instead, use getOwnPropertyNames().
-
这里没有特殊的设计模式。 将这些属性放在相应的原型上很好,你甚至可能想在Character.prototype上放置一些默认值。 由于它们是应该由类的所有对象共享的实例的属性,因此原型正是放置它们的正确位置。 如果您想在分配时避免重复,只需将其放入函数中即可。 There is no special design pattern to apply here. Putting these properties on the respective prototypes is fine, you might ev ...
-
您可以通过在return none语句中添加一个附加子句来修复它: if p == None or (p.value == value and p.next = p): return None You can fix it by adding an additional clause to your return none statement: if p == None or (p.value == value and p.next = p): return None
-
Object.prototype.toString是函数还是属性?(Is Object.prototype.toString a function or a property?)[2022-01-04]
功能只是价值。 toString是Object.prototype对象的一个属性,其值是一个函数。 ()是函数调用操作符。 Object.prototype.toString不调用函数; 它只是获取Object.prototype.toString属性的值(恰好是一个函数)。 函数也是对象,具有属性。 这就是为什么你可以做Object.prototype.toString.call(...) :这将得到Object.prototype.toString函数,然后获取它的call属性,然后调用它(这是因为ca ... -
首先,您需要了解原型是什么。 在Javascript中, 几乎所有东西都是一个对象。 编辑(感谢@Mathletics): 原始布尔值,数字和字符串不是对象 在Javascript中创建对象时,默认情况下,其原型将是一个Object 。 所以,如果我这样做: var obj = {}; console.log(obj.__proto__) 这会产生: 对象{} 暂停: 要了解obj.prototype和obj.__proto__之间的区别,请参阅此主题 。 下一步是理解原型链的概念。 这是继承在Javas ...
-
是的,这是你看到的功能,稍后你会看到它用来获取Object.extend的代码,如下所示: extend(Object, { extend: extend, //here's where the magic gets added inspect: inspect, toJSON: NATIVE_JSON_STRINGIFY_SUPPORT ? stringify : toJSON, toQueryString: toQueryString, toHTML: toHTM ...