text: var COMPODOC_SEARCH_INDEX = {
      "index": {"version":"2.2.0","fields":["title","body"],"fieldVectors":[["title/interfaces/AbstractBase.html",[0,0.492,1,1.298]],["body/interfaces/AbstractBase.html",[0,0.399,1,1.316,2,0.456,3,0.378,4,0.309,5,0.976,6,0.249,7,1.051,8,1.373,9,1.761,10,0.73,11,1.648,12,1.648,13,2.011,14,1.316,15,1.254,16,1.491,17,0.073,18,1.105,19,1.254,20,1.591,21,1.465,22,1.254,23,0.547,24,0.547,25,0.867,26,0.378,27,0.914,28,1.373,29,1.539,30,0.547,31,1.565,32,1.565,33,1.819,34,0.656,35,0.793,36,0.976,37,1.097,38,0.656,39,0.976,40,0.73,41,0.976,42,2.691,43,1.565,44,1.958,45,1.819,46,0.976,47,0.976,48,0.976,49,0.976,50,0.976,51,1.565,52,0.976,53,0.976,54,0.976,55,0.378,56,0.194,57,0.547,58,1.98,59,0.547,60,1.271,61,1.565,62,0.976,63,0.976,64,1.819,65,0.976,66,0.976,67,0.976,68,0.976,69,1.316,70,0.976,71,1.565,72,0.793,73,1.565,74,1.051,75,0.976,76,0.793,77,1.505,78,1.591,79,1.591,80,1.271,81,1.565,82,1.565,83,0.976,84,0.976,85,0.976,86,0.976,87,1.051,88,0.976,89,1.565,90,1.565,91,0.793,92,0.976,93,0.976,94,0.976,95,0.976,96,0.976,97,0.914,98,0.976,99,0.976,100,0.976,101,2.125,102,0.976,103,0.793,104,1.271,105,0.793,106,0.793,107,0.793,108,0.793,109,1.254,110,0.793,111,0.793,112,1.271,113,0.793,114,0.976,115,0.976,116,0.976,117,0.03,118,0.03]],["title/interfaces/Resource.html",[0,0.492,9,1.081]],["body/interfaces/Resource.html",[0,0.761,2,1.122,3,0.93,4,0.762,6,0.613,7,2.007,9,1.957,17,0.068,18,1.257,25,1.257,26,1.315,27,1.586,55,0.93,69,2.283,72,2.76,87,2.183,117,0.057,118,0.057,119,3.089]],["title/classes/RestBase.html",[56,0.384,120,1.569]],["body/classes/RestBase.html",[2,0.905,3,0.75,4,0.615,6,0.494,8,1.456,10,1.213,11,2.105,12,2.105,14,2.105,16,1.603,17,0.072,18,1.264,20,1.575,21,1.456,23,1.456,24,1.456,25,1.006,26,1.006,27,1.213,28,1.754,29,1.456,30,1.086,55,0.75,56,0.517,57,1.456,59,1.456,74,1.303,97,1.213,117,0.049,118,0.049,120,2.111,121,2.492,122,2.492,123,2.492,124,2.492,125,2.492,126,2.599,127,2.492,128,2.932,129,2.492,130,1.939,131,2.492]],["title/classes/RestModelBase.html",[38,1.298,56,0.384]],["body/classes/RestModelBase.html",[0,0.298,1,1.663,2,0.546,3,0.452,4,0.371,6,0.298,7,1.212,8,0.655,9,1.386,10,1.155,11,1.479,12,1.479,14,1.898,16,1.513,17,0.073,18,1.093,21,1.386,23,1.01,24,1.01,25,1.034,26,0.957,27,0.546,28,1.01,29,1.386,30,0.655,33,2.171,34,0.785,37,0.655,38,1.479,40,0.546,42,2.634,45,1.465,55,0.698,56,0.359,57,1.497,58,1.663,59,1.01,60,0.949,69,1.663,77,1.663,78,1.465,79,1.788,80,1.465,87,1.479,97,1.155,101,2.294,103,0.949,104,1.465,105,0.949,106,0.949,107,0.949,109,1.233,110,0.949,111,0.949,112,1.788,113,0.949,117,0.034,118,0.034,126,2.201,132,1.169,133,3.783,134,3.436,135,3.436,136,1.502,137,2.825,138,2.317,139,2.317,140,1.502,141,1.502,142,1.502,143,1.502,144,2.317,145,2.317,146,2.317,147,1.502,148,1.502,149,1.502,150,1.502,151,2.317,152,2.317,153,2.317,154,1.502,155,1.502,156,2.317,157,2.317,158,1.502,159,1.502,160,1.502,161,1.502,162,1.502,163,1.502,164,1.502,165,1.502]],["title/classes/RestRoute.html",[56,0.384,57,1.081]],["body/classes/RestRoute.html",[0,0.242,1,1.48,2,0.442,3,0.367,4,0.3,5,0.948,6,0.242,8,0.856,9,1.521,10,0.713,11,1.027,12,1.027,14,1.48,16,1.48,17,0.073,18,1.051,20,1.241,21,1.353,23,1.446,24,1.075,25,1.051,26,0.743,27,1.028,28,1.075,29,1.521,30,0.531,31,1.528,32,1.528,33,2.206,34,0.637,35,0.77,36,0.948,37,1.075,38,0.637,39,0.948,40,0.713,41,0.948,42,2.674,43,1.528,44,1.92,45,1.789,46,0.948,47,0.948,48,0.948,49,0.948,50,0.948,51,1.528,52,0.948,53,0.948,54,0.948,55,0.367,56,0.304,57,0.856,58,1.961,59,0.856,60,1.56,61,1.528,62,0.948,63,0.948,64,1.789,65,0.948,66,0.948,67,0.948,68,0.948,69,1.48,70,0.948,71,1.528,72,0.77,73,1.528,74,1.027,75,0.948,76,1.789,77,1.48,78,1.56,79,1.56,80,1.241,81,1.528,82,1.528,83,0.948,84,0.948,85,0.948,86,1.528,87,1.48,88,0.948,89,1.528,90,1.528,91,1.241,92,0.948,93,0.948,94,0.948,95,0.948,96,0.948,97,0.896,98,0.948,99,0.948,100,0.948,101,2.097,102,0.948,103,0.77,104,1.241,105,0.77,106,0.77,107,0.77,108,0.77,109,1.233,110,0.77,111,0.77,112,1.241,113,0.77,114,0.948,115,0.948,116,0.948,117,0.029,118,0.029,137,1.92,166,1.964,167,1.528,168,1.218,169,1.218,170,1.218,171,1.218,172,1.218]],["title/interfaces/RestfulOptions.html",[0,0.492,173,1.931]],["body/interfaces/RestfulOptions.html",[0,0.716,2,1.018,3,0.844,4,0.692,6,0.556,7,1.888,16,1.531,17,0.072,18,1.202,25,1.087,26,1.269,40,1.018,55,1.087,77,2.204,109,1.837,117,0.053,118,0.053,173,3.107,174,2.182,175,1.772,176,2.182,177,3.61,178,3.61,179,2.804,180,3.61,181,2.804]],["title/changelog.html",[182,1.328,183,1.098,184,2.1]],["body/changelog.html",[4,0.771,10,1.136,17,0.057,56,0.484,97,1.136,108,1.977,117,0.057,118,0.057,185,3.867,186,3.127,187,3.127,188,3.127,189,1.977,190,3.127,191,3.127,192,2.434,193,3.867,194,3.127,195,3.127,196,3.413,197,4.386,198,3.867,199,3.127,200,3.127,201,2.434,202,3.127,203,3.127,204,3.127,205,3.127,206,3.127,207,3.127,208,3.867,209,2.434,210,3.127,211,3.127]],["title/dependencies.html",[212,2.1,213,1.877]],["body/dependencies.html",[17,0.069,34,1.865,117,0.062,118,0.062,213,2.646,214,3.568,215,3.568,216,3.568,217,2.776,218,4.187]],["title/miscellaneous/functions.html",[40,1.078,219,1.098]],["body/miscellaneous/functions.html",[6,0.701,17,0.065,23,1.54,24,1.54,26,1.064,40,1.284,117,0.061,118,0.061,174,2.75,175,2.632,176,2.75,219,1.848,220,3.534,221,3.534,222,3.534]],["title/index.html",[6,0.417,182,1.328,183,1.098]],["body/index.html",[3,0.726,8,0.69,10,0.876,16,0.876,17,0.071,18,0.477,21,1.051,27,0.575,28,1.051,29,1.68,30,0.69,35,1.001,37,1.051,55,0.726,56,0.374,58,0.828,59,1.051,64,1.525,74,0.828,76,1.525,91,1.001,97,1.062,109,0.69,117,0.036,118,0.036,120,1.847,128,1.232,130,1.232,167,2.885,175,2.066,183,1.262,189,1.847,192,1.878,201,1.878,209,2.738,213,1.001,217,1.878,223,2.413,224,2.923,225,2.413,226,1.584,227,1.584,228,3.855,229,3.707,230,1.525,231,1.584,232,2.413,233,2.413,234,1.584,235,1.584,236,1.584,237,2.923,238,1.584,239,1.584,240,1.584,241,1.584,242,1.584,243,1.584,244,1.584,245,1.584,246,1.584,247,1.584,248,1.584,249,2.413,250,1.584,251,1.584,252,1.584,253,1.584,254,1.584,255,1.584,256,2.413,257,1.584,258,1.584,259,1.584,260,1.584,261,1.584,262,1.584,263,1.584,264,1.584,265,1.584,266,1.584,267,3.855,268,1.584,269,1.584,270,1.584,271,2.413,272,1.584,273,2.413,274,2.413,275,1.584,276,3.269,277,1.584,278,2.413,279,1.584,280,1.584,281,1.584,282,1.584,283,1.878,284,1.584,285,2.413,286,2.923,287,1.584,288,1.584,289,1.584,290,1.584,291,1.584,292,1.584,293,1.584,294,1.584,295,1.584,296,1.584,297,1.584,298,1.584,299,1.584,300,1.584,301,2.413,302,2.413,303,1.584,304,1.584,305,1.584,306,1.584,307,1.584,308,1.584,309,1.584,310,1.584,311,1.584,312,1.584,313,1.584,314,1.584,315,2.413,316,3.707,317,1.584,318,1.584,319,1.584,320,3.518,321,2.413,322,1.584,323,1.584,324,2.413,325,1.584,326,1.584,327,1.001,328,1.584,329,1.584,330,1.584,331,1.584,332,1.232]],["title/license.html",[182,1.328,183,1.098,230,1.328]],["body/license.html",[4,0.638,17,0.05,117,0.05,118,0.05,189,1.634,196,2.012,230,1.634,283,2.664,332,2.664,333,3.838,334,2.585,335,2.585,336,3.423,337,2.585,338,2.585,339,2.585,340,2.585,341,3.423,342,2.585,343,4.086,344,4.578,345,2.585,346,3.423,347,3.838,348,2.585,349,3.838,350,3.423,351,2.585,352,2.585,353,2.585,354,2.585,355,2.585,356,2.585,357,2.585,358,2.585,359,2.585,360,2.585,361,2.585,362,2.585,363,2.585,364,2.585,365,3.423,366,3.423,367,2.585,368,2.585,369,2.585,370,3.423,371,2.585,372,2.585,373,2.585,374,2.585,375,2.585,376,2.585,377,2.585,378,2.585,379,2.585,380,2.585,381,2.585,382,2.585,383,2.585,384,2.585,385,2.585,386,2.585,387,2.585,388,2.585,389,2.585,390,2.585,391,2.585,392,2.585,393,2.585]],["title/modules.html",[327,2.106]],["body/modules.html",[17,0.064,117,0.064,118,0.064,327,2.377]],["title/overview.html",[394,2.592]],["body/overview.html",[0,0.732,17,0.063,56,0.571,117,0.063,118,0.063,394,2.87,395,3.689,396,3.689]],["title/miscellaneous/typealiases.html",[219,1.098,397,2.97]],["body/miscellaneous/typealiases.html",[6,0.718,17,0.062,25,1.089,37,1.948,117,0.062,118,0.062,132,2.816,219,1.892,398,3.618,399,3.618]]],"invertedIndex":[["",{"_index":17,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"changelog.html":{},"dependencies.html":{},"miscellaneous/functions.html":{},"index.html":{},"license.html":{},"modules.html":{},"overview.html":{},"miscellaneous/typealiases.html":{}}}],["0.0.1",{"_index":210,"title":{},"body":{"changelog.html":{}}}],["0.0.2",{"_index":207,"title":{},"body":{"changelog.html":{}}}],["0.0.3",{"_index":205,"title":{},"body":{"changelog.html":{}}}],["0.0.4",{"_index":195,"title":{},"body":{"changelog.html":{}}}],["07",{"_index":197,"title":{},"body":{"changelog.html":{}}}],["1",{"_index":112,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["1.0",{"_index":329,"title":{},"body":{"index.html":{}}}],["2",{"_index":241,"title":{},"body":{"index.html":{}}}],["2018",{"_index":196,"title":{},"body":{"changelog.html":{},"license.html":{}}}],["3",{"_index":395,"title":{},"body":{"overview.html":{}}}],["30",{"_index":208,"title":{},"body":{"changelog.html":{}}}],["31",{"_index":198,"title":{},"body":{"changelog.html":{}}}],["4",{"_index":396,"title":{},"body":{"overview.html":{}}}],["4.5.0",{"_index":215,"title":{},"body":{"dependencies.html":{}}}],["6.0.0",{"_index":218,"title":{},"body":{"dependencies.html":{}}}],["8000",{"_index":318,"title":{},"body":{"index.html":{}}}],["_base",{"_index":139,"title":{},"body":{"classes/RestModelBase.html":{}}}],["abov",{"_index":364,"title":{},"body":{"license.html":{}}}],["abstractbas",{"_index":1,"title":{"interfaces/AbstractBase.html":{}},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["action",{"_index":387,"title":{},"body":{"license.html":{}}}],["addroute(rout",{"_index":103,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["addroute(route.par",{"_index":107,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["addroute(this._base.resourc",{"_index":160,"title":{},"body":{"classes/RestModelBase.html":{}}}],["addroute(this.base.resourc",{"_index":102,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["again",{"_index":296,"title":{},"body":{"index.html":{}}}],["alias",{"_index":398,"title":{},"body":{"miscellaneous/typealiases.html":{}}}],["and/or",{"_index":357,"title":{},"body":{"license.html":{}}}],["angular",{"_index":240,"title":{},"body":{"index.html":{}}}],["angular/common/http",{"_index":30,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["angular/cor",{"_index":217,"title":{},"body":{"dependencies.html":{},"index.html":{}}}],["angularj",{"_index":242,"title":{},"body":{"index.html":{}}}],["api",{"_index":234,"title":{},"body":{"index.html":{}}}],["app",{"_index":285,"title":{},"body":{"index.html":{}}}],["arg",{"_index":176,"title":{},"body":{"interfaces/RestfulOptions.html":{},"miscellaneous/functions.html":{}}}],["args.baseurl",{"_index":178,"title":{},"body":{"interfaces/RestfulOptions.html":{}}}],["args.head",{"_index":180,"title":{},"body":{"interfaces/RestfulOptions.html":{}}}],["aris",{"_index":391,"title":{},"body":{"license.html":{}}}],["array",{"_index":39,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["associ",{"_index":345,"title":{},"body":{"license.html":{}}}],["author",{"_index":380,"title":{},"body":{"license.html":{}}}],["auto",{"_index":302,"title":{},"body":{"index.html":{}}}],["automatic)npm",{"_index":331,"title":{},"body":{"index.html":{}}}],["base",{"_index":60,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["base.http",{"_index":62,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["baseclon",{"_index":66,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["baseclone.http",{"_index":68,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["baseclone.resourc",{"_index":73,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["baseurl",{"_index":109,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"index.html":{}}}],["baseurl.charat(baseurl.length",{"_index":111,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["baseurl.slice(0",{"_index":113,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["becom",{"_index":330,"title":{},"body":{"index.html":{}}}],["better",{"_index":203,"title":{},"body":{"changelog.html":{}}}],["bind",{"_index":244,"title":{},"body":{"index.html":{}}}],["bodi",{"_index":247,"title":{},"body":{"index.html":{}}}],["bug",{"_index":206,"title":{},"body":{"changelog.html":{}}}],["bump",{"_index":325,"title":{},"body":{"index.html":{}}}],["c",{"_index":334,"title":{},"body":{"license.html":{}}}],["chang",{"_index":185,"title":{},"body":{"changelog.html":{}}}],["changelog",{"_index":184,"title":{"changelog.html":{}},"body":{}}],["charg",{"_index":340,"title":{},"body":{"license.html":{}}}],["claim",{"_index":383,"title":{},"body":{"license.html":{}}}],["class",{"_index":56,"title":{"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"changelog.html":{},"index.html":{},"overview.html":{}}}],["clone",{"_index":43,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["clonedeep",{"_index":31,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["clonedeep(this.bas",{"_index":67,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["clonedeepandunique(valu",{"_index":41,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["commit",{"_index":193,"title":{},"body":{"changelog.html":{}}}],["compodoc",{"_index":305,"title":{},"body":{"index.html":{}}}],["compon",{"_index":286,"title":{},"body":{"index.html":{}}}],["condit",{"_index":363,"title":{},"body":{"license.html":{}}}],["connect",{"_index":393,"title":{},"body":{"license.html":{}}}],["const",{"_index":42,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["constructor",{"_index":59,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["constructor(_bas",{"_index":136,"title":{},"body":{"classes/RestModelBase.html":{}}}],["constructor(bas",{"_index":168,"title":{},"body":{"classes/RestRoute.html":{}}}],["constructor(http",{"_index":122,"title":{},"body":{"classes/RestBase.html":{}}}],["content",{"_index":227,"title":{},"body":{"index.html":{}}}],["continu",{"_index":323,"title":{},"body":{"index.html":{}}}],["contract",{"_index":388,"title":{},"body":{"license.html":{}}}],["contribut",{"_index":259,"title":{},"body":{"index.html":{}}}],["copi",{"_index":343,"title":{},"body":{"license.html":{}}}],["copyright",{"_index":333,"title":{},"body":{"license.html":{}}}],["correctli",{"_index":254,"title":{},"body":{"index.html":{}}}],["creat",{"_index":249,"title":{},"body":{"index.html":{}}}],["current",{"_index":312,"title":{},"body":{"index.html":{}}}],["damag",{"_index":384,"title":{},"body":{"license.html":{}}}],["data",{"_index":21,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["data).pip",{"_index":93,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["data.id",{"_index":70,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["data.map(d",{"_index":95,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["dataproto",{"_index":146,"title":{},"body":{"classes/RestModelBase.html":{}}}],["deal",{"_index":346,"title":{},"body":{"license.html":{}}}],["defin",{"_index":14,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["delet",{"_index":133,"title":{},"body":{"classes/RestModelBase.html":{}}}],["demo",{"_index":224,"title":{},"body":{"index.html":{}}}],["democompon",{"_index":290,"title":{},"body":{"index.html":{}}}],["depend",{"_index":213,"title":{"dependencies.html":{}},"body":{"dependencies.html":{},"index.html":{}}}],["desapoint",{"_index":239,"title":{},"body":{"index.html":{}}}],["desir",{"_index":271,"title":{},"body":{"index.html":{}}}],["dev",{"_index":311,"title":{},"body":{"index.html":{}}}],["develop",{"_index":229,"title":{},"body":{"index.html":{}}}],["direct",{"_index":280,"title":{},"body":{"index.html":{}}}],["directori",{"_index":313,"title":{},"body":{"index.html":{}}}],["distribut",{"_index":355,"title":{},"body":{"license.html":{}}}],["document",{"_index":189,"title":{},"body":{"changelog.html":{},"index.html":{},"license.html":{}}}],["e",{"_index":262,"title":{},"body":{"index.html":{}}}],["environ",{"_index":308,"title":{},"body":{"index.html":{}}}],["event",{"_index":379,"title":{},"body":{"license.html":{}}}],["experiment",{"_index":232,"title":{},"body":{"index.html":{}}}],["export",{"_index":55,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"index.html":{}}}],["express",{"_index":372,"title":{},"body":{"license.html":{}}}],["extend",{"_index":201,"title":{},"body":{"changelog.html":{},"index.html":{}}}],["file",{"_index":4,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"changelog.html":{},"license.html":{}}}],["final",{"_index":282,"title":{},"body":{"index.html":{}}}],["find",{"_index":300,"title":{},"body":{"index.html":{}}}],["first",{"_index":211,"title":{},"body":{"changelog.html":{}}}],["fit",{"_index":375,"title":{},"body":{"license.html":{}}}],["fix",{"_index":108,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{},"changelog.html":{}}}],["follow",{"_index":362,"title":{},"body":{"license.html":{}}}],["free",{"_index":339,"title":{},"body":{"license.html":{}}}],["fun",{"_index":236,"title":{},"body":{"index.html":{}}}],["function",{"_index":40,"title":{"miscellaneous/functions.html":{}},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"miscellaneous/functions.html":{}}}],["furnish",{"_index":360,"title":{},"body":{"license.html":{}}}],["gener",{"_index":303,"title":{},"body":{"index.html":{}}}],["get",{"_index":182,"title":{"changelog.html":{},"index.html":{},"license.html":{}},"body":{}}],["getbaseurl",{"_index":11,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["getdefaulthead",{"_index":12,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["getfullpath",{"_index":156,"title":{},"body":{"classes/RestModelBase.html":{}}}],["getfullpath(id",{"_index":100,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["getlist",{"_index":76,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["geton",{"_index":166,"title":{},"body":{"classes/RestRoute.html":{}}}],["getone(id",{"_index":86,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["getplain",{"_index":134,"title":{},"body":{"classes/RestModelBase.html":{}}}],["getpost",{"_index":291,"title":{},"body":{"index.html":{}}}],["grant",{"_index":338,"title":{},"body":{"license.html":{}}}],["guidelin",{"_index":194,"title":{},"body":{"changelog.html":{}}}],["header",{"_index":77,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{}}}],["headers}).pip",{"_index":82,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["help",{"_index":265,"title":{},"body":{"index.html":{}}}],["here",{"_index":278,"title":{},"body":{"index.html":{}}}],["herebi",{"_index":337,"title":{},"body":{"license.html":{}}}],["highli",{"_index":231,"title":{},"body":{"index.html":{}}}],["hit",{"_index":328,"title":{},"body":{"index.html":{}}}],["holder",{"_index":381,"title":{},"body":{"license.html":{}}}],["http",{"_index":8,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["httpclient",{"_index":28,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["https://jsonplaceholder.typicode.com",{"_index":275,"title":{},"body":{"index.html":{}}}],["https://rosostolato.github.io/ngx",{"_index":225,"title":{},"body":{"index.html":{}}}],["i'm",{"_index":255,"title":{},"body":{"index.html":{}}}],["i'v",{"_index":238,"title":{},"body":{"index.html":{}}}],["id",{"_index":69,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["idea",{"_index":256,"title":{},"body":{"index.html":{}}}],["implement",{"_index":209,"title":{},"body":{"changelog.html":{},"index.html":{}}}],["impli",{"_index":373,"title":{},"body":{"license.html":{}}}],["import",{"_index":29,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["includ",{"_index":349,"title":{},"body":{"license.html":{}}}],["index",{"_index":6,"title":{"index.html":{}},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"miscellaneous/functions.html":{},"miscellaneous/typealiases.html":{}}}],["info",{"_index":2,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{}}}],["inject",{"_index":273,"title":{},"body":{"index.html":{}}}],["insid",{"_index":246,"title":{},"body":{"index.html":{}}}],["instal",{"_index":228,"title":{},"body":{"index.html":{}}}],["interfac",{"_index":0,"title":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"interfaces/RestfulOptions.html":{}},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"overview.html":{}}}],["it'",{"_index":251,"title":{},"body":{"index.html":{}}}],["key",{"_index":157,"title":{},"body":{"classes/RestModelBase.html":{}}}],["kind",{"_index":371,"title":{},"body":{"license.html":{}}}],["last",{"_index":49,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["liabil",{"_index":385,"title":{},"body":{"license.html":{}}}],["liabl",{"_index":382,"title":{},"body":{"license.html":{}}}],["lib",{"_index":250,"title":{},"body":{"index.html":{}}}],["licens",{"_index":230,"title":{"license.html":{}},"body":{"index.html":{},"license.html":{}}}],["like",{"_index":257,"title":{},"body":{"index.html":{}}}],["limit",{"_index":350,"title":{},"body":{"license.html":{}}}],["link",{"_index":235,"title":{},"body":{"index.html":{}}}],["local",{"_index":310,"title":{},"body":{"index.html":{}}}],["lodash",{"_index":32,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["lodash.clonedeep",{"_index":214,"title":{},"body":{"dependencies.html":{}}}],["log",{"_index":186,"title":{},"body":{"changelog.html":{}}}],["mail",{"_index":263,"title":{},"body":{"index.html":{}}}],["makerest(data",{"_index":63,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["makerestcollection(data",{"_index":94,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["map",{"_index":35,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["map((respons",{"_index":83,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["map(respons",{"_index":89,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["mapmodel",{"_index":13,"title":{},"body":{"interfaces/AbstractBase.html":{}}}],["mapmodel(path",{"_index":20,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestRoute.html":{}}}],["mapmodel(rout",{"_index":281,"title":{},"body":{"index.html":{}}}],["match",{"_index":118,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"changelog.html":{},"dependencies.html":{},"miscellaneous/functions.html":{},"index.html":{},"license.html":{},"modules.html":{},"overview.html":{},"miscellaneous/typealiases.html":{}}}],["mayb",{"_index":253,"title":{},"body":{"index.html":{}}}],["merchant",{"_index":374,"title":{},"body":{"license.html":{}}}],["merg",{"_index":353,"title":{},"body":{"license.html":{}}}],["method",{"_index":10,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"changelog.html":{},"index.html":{}}}],["miscellan",{"_index":219,"title":{"miscellaneous/functions.html":{},"miscellaneous/typealiases.html":{}},"body":{"miscellaneous/functions.html":{},"miscellaneous/typealiases.html":{}}}],["mit",{"_index":332,"title":{},"body":{"index.html":{},"license.html":{}}}],["model",{"_index":64,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["models/post",{"_index":274,"title":{},"body":{"index.html":{}}}],["modifi",{"_index":352,"title":{},"body":{"license.html":{}}}],["modul",{"_index":327,"title":{"modules.html":{}},"body":{"index.html":{},"modules.html":{}}}],["much",{"_index":202,"title":{},"body":{"changelog.html":{}}}],["name",{"_index":24,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"miscellaneous/functions.html":{}}}],["need",{"_index":264,"title":{},"body":{"index.html":{}}}],["new",{"_index":74,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["ngx",{"_index":223,"title":{},"body":{"index.html":{}}}],["node.j",{"_index":309,"title":{},"body":{"index.html":{}}}],["noninfring",{"_index":378,"title":{},"body":{"license.html":{}}}],["notabl",{"_index":187,"title":{},"body":{"changelog.html":{}}}],["notic",{"_index":365,"title":{},"body":{"license.html":{}}}],["now",{"_index":204,"title":{},"body":{"changelog.html":{}}}],["npm",{"_index":267,"title":{},"body":{"index.html":{}}}],["number",{"_index":87,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["object.assign(clon",{"_index":54,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["object.assign(plain",{"_index":154,"title":{},"body":{"classes/RestModelBase.html":{}}}],["object.assign(proto",{"_index":52,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["object.assign(thi",{"_index":150,"title":{},"body":{"classes/RestModelBase.html":{}}}],["object.assign(thisproto",{"_index":148,"title":{},"body":{"classes/RestModelBase.html":{}}}],["object.getprototypeof(data",{"_index":147,"title":{},"body":{"classes/RestModelBase.html":{}}}],["object.getprototypeof(thi",{"_index":145,"title":{},"body":{"classes/RestModelBase.html":{}}}],["object.setprototypeof(clon",{"_index":53,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["object.setprototypeof(plain",{"_index":159,"title":{},"body":{"classes/RestModelBase.html":{}}}],["object.setprototypeof(thi",{"_index":149,"title":{},"body":{"classes/RestModelBase.html":{}}}],["observ",{"_index":33,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["obtain",{"_index":342,"title":{},"body":{"license.html":{}}}],["on",{"_index":284,"title":{},"body":{"index.html":{}}}],["onc",{"_index":321,"title":{},"body":{"index.html":{}}}],["option",{"_index":26,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"miscellaneous/functions.html":{}}}],["otherwis",{"_index":390,"title":{},"body":{"license.html":{}}}],["out",{"_index":392,"title":{},"body":{"license.html":{}}}],["overview",{"_index":394,"title":{"overview.html":{}},"body":{"overview.html":{}}}],["p",{"_index":51,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["packag",{"_index":212,"title":{"dependencies.html":{}},"body":{}}],["package.json",{"_index":326,"title":{},"body":{"index.html":{}}}],["paramet",{"_index":23,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"miscellaneous/functions.html":{}}}],["parent",{"_index":72,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestRoute.html":{}}}],["parenturl",{"_index":101,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["particular",{"_index":376,"title":{},"body":{"license.html":{}}}],["path",{"_index":27,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["peer",{"_index":216,"title":{},"body":{"dependencies.html":{}}}],["permiss",{"_index":336,"title":{},"body":{"license.html":{}}}],["permit",{"_index":359,"title":{},"body":{"license.html":{}}}],["person",{"_index":341,"title":{},"body":{"license.html":{}}}],["plain",{"_index":153,"title":{},"body":{"classes/RestModelBase.html":{}}}],["plain._bas",{"_index":155,"title":{},"body":{"classes/RestModelBase.html":{}}}],["pleas",{"_index":260,"title":{},"body":{"index.html":{}}}],["port",{"_index":317,"title":{},"body":{"index.html":{}}}],["portion",{"_index":368,"title":{},"body":{"license.html":{}}}],["post",{"_index":167,"title":{},"body":{"classes/RestRoute.html":{},"index.html":{}}}],["post(data",{"_index":91,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["posts/1/com",{"_index":297,"title":{},"body":{"index.html":{}}}],["prepar",{"_index":307,"title":{},"body":{"index.html":{}}}],["privat",{"_index":58,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{}}}],["project",{"_index":188,"title":{},"body":{"changelog.html":{}}}],["properti",{"_index":7,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestModelBase.html":{},"interfaces/RestfulOptions.html":{}}}],["protect",{"_index":128,"title":{},"body":{"classes/RestBase.html":{},"index.html":{}}}],["proto",{"_index":45,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["proto[key",{"_index":158,"title":{},"body":{"classes/RestModelBase.html":{}}}],["protos.pop",{"_index":50,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["protos.push(value.__proto__",{"_index":47,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["prototyp",{"_index":245,"title":{},"body":{"index.html":{}}}],["provid",{"_index":369,"title":{},"body":{"license.html":{}}}],["publish",{"_index":354,"title":{},"body":{"license.html":{}}}],["purpos",{"_index":377,"title":{},"body":{"license.html":{}}}],["put",{"_index":135,"title":{},"body":{"classes/RestModelBase.html":{}}}],["reimplement",{"_index":199,"title":{},"body":{"changelog.html":{}}}],["releas",{"_index":324,"title":{},"body":{"index.html":{}}}],["reload",{"_index":319,"title":{},"body":{"index.html":{}}}],["repo",{"_index":314,"title":{},"body":{"index.html":{}}}],["request",{"_index":130,"title":{},"body":{"classes/RestBase.html":{},"index.html":{}}}],["requestinterceptor(req",{"_index":129,"title":{},"body":{"classes/RestBase.html":{}}}],["resourc",{"_index":9,"title":{"interfaces/Resource.html":{}},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["respons",{"_index":279,"title":{},"body":{"index.html":{}}}],["response.getplain",{"_index":295,"title":{},"body":{"index.html":{}}}],["response.map(r",{"_index":84,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["response[0].route('com",{"_index":298,"title":{},"body":{"index.html":{}}}],["rest",{"_index":175,"title":{},"body":{"interfaces/RestfulOptions.html":{},"miscellaneous/functions.html":{},"index.html":{}}}],["restangular",{"_index":237,"title":{},"body":{"index.html":{}}}],["restapi",{"_index":276,"title":{},"body":{"index.html":{}}}],["restapi.servic",{"_index":287,"title":{},"body":{"index.html":{}}}],["restbas",{"_index":120,"title":{"classes/RestBase.html":{}},"body":{"classes/RestBase.html":{},"index.html":{}}}],["restful(arg",{"_index":221,"title":{},"body":{"miscellaneous/functions.html":{}}}],["restfulopt",{"_index":173,"title":{"interfaces/RestfulOptions.html":{}},"body":{"interfaces/RestfulOptions.html":{}}}],["restmodel",{"_index":37,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"index.html":{},"miscellaneous/typealiases.html":{}}}],["restmodel/doc",{"_index":306,"title":{},"body":{"index.html":{}}}],["restmodelbas",{"_index":38,"title":{"classes/RestModelBase.html":{}},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["restmodelbase(baseclon",{"_index":75,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["restmodelcollection(this.bas",{"_index":99,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["restmodelthen",{"_index":269,"title":{},"body":{"index.html":{}}}],["restrict",{"_index":348,"title":{},"body":{"license.html":{}}}],["restrout",{"_index":57,"title":{"classes/RestRoute.html":{}},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["restroute(thi",{"_index":131,"title":{},"body":{"classes/RestBase.html":{}}}],["result",{"_index":117,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"changelog.html":{},"dependencies.html":{},"miscellaneous/functions.html":{},"index.html":{},"license.html":{},"modules.html":{},"overview.html":{},"miscellaneous/typealiases.html":{}}}],["return",{"_index":16,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"index.html":{}}}],["right",{"_index":351,"title":{},"body":{"license.html":{}}}],["rosostolato",{"_index":335,"title":{},"body":{"license.html":{}}}],["rout",{"_index":97,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"changelog.html":{},"index.html":{}}}],["route(path",{"_index":126,"title":{},"body":{"classes/RestBase.html":{},"classes/RestModelBase.html":{}}}],["route.id",{"_index":104,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["route.par",{"_index":106,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["route.path",{"_index":105,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["run",{"_index":316,"title":{},"body":{"index.html":{}}}],["rxj",{"_index":34,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"dependencies.html":{}}}],["rxjs/oper",{"_index":36,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["save",{"_index":268,"title":{},"body":{"index.html":{}}}],["see",{"_index":190,"title":{},"body":{"changelog.html":{}}}],["selector",{"_index":288,"title":{},"body":{"index.html":{}}}],["sell",{"_index":358,"title":{},"body":{"license.html":{}}}],["send",{"_index":261,"title":{},"body":{"index.html":{}}}],["server",{"_index":315,"title":{},"body":{"index.html":{}}}],["servic",{"_index":270,"title":{},"body":{"index.html":{}}}],["shall",{"_index":366,"title":{},"body":{"license.html":{}}}],["softwar",{"_index":344,"title":{},"body":{"license.html":{}}}],["sourc",{"_index":3,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"index.html":{}}}],["src/.../decorators.t",{"_index":220,"title":{},"body":{"miscellaneous/functions.html":{}}}],["src/.../restmodel.t",{"_index":399,"title":{},"body":{"miscellaneous/typealiases.html":{}}}],["src/decorators.t",{"_index":174,"title":{},"body":{"interfaces/RestfulOptions.html":{},"miscellaneous/functions.html":{}}}],["src/index",{"_index":272,"title":{},"body":{"index.html":{}}}],["src/restbase.t",{"_index":121,"title":{},"body":{"classes/RestBase.html":{}}}],["src/restbase.ts:15",{"_index":124,"title":{},"body":{"classes/RestBase.html":{}}}],["src/restbase.ts:19",{"_index":125,"title":{},"body":{"classes/RestBase.html":{}}}],["src/restbase.ts:23",{"_index":127,"title":{},"body":{"classes/RestBase.html":{}}}],["src/restbase.ts:4",{"_index":123,"title":{},"body":{"classes/RestBase.html":{}}}],["src/restmodel.t",{"_index":132,"title":{},"body":{"classes/RestModelBase.html":{},"miscellaneous/typealiases.html":{}}}],["src/restmodel.ts:103",{"_index":143,"title":{},"body":{"classes/RestModelBase.html":{}}}],["src/restmodel.ts:18",{"_index":138,"title":{},"body":{"classes/RestModelBase.html":{}}}],["src/restmodel.ts:28",{"_index":142,"title":{},"body":{"classes/RestModelBase.html":{}}}],["src/restmodel.ts:35",{"_index":140,"title":{},"body":{"classes/RestModelBase.html":{}}}],["src/restmodel.ts:42",{"_index":141,"title":{},"body":{"classes/RestModelBase.html":{}}}],["src/restroute.t",{"_index":5,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["src/restroute.ts:13",{"_index":15,"title":{},"body":{"interfaces/AbstractBase.html":{}}}],["src/restroute.ts:14",{"_index":19,"title":{},"body":{"interfaces/AbstractBase.html":{}}}],["src/restroute.ts:15",{"_index":22,"title":{},"body":{"interfaces/AbstractBase.html":{}}}],["src/restroute.ts:40",{"_index":169,"title":{},"body":{"classes/RestRoute.html":{}}}],["src/restroute.ts:62",{"_index":170,"title":{},"body":{"classes/RestRoute.html":{}}}],["src/restroute.ts:71",{"_index":171,"title":{},"body":{"classes/RestRoute.html":{}}}],["src/restroute.ts:80",{"_index":172,"title":{},"body":{"classes/RestRoute.html":{}}}],["src/types.t",{"_index":119,"title":{},"body":{"interfaces/Resource.html":{}}}],["standard",{"_index":191,"title":{},"body":{"changelog.html":{}}}],["start",{"_index":183,"title":{"changelog.html":{},"index.html":{},"license.html":{}},"body":{"index.html":{}}}],["still",{"_index":233,"title":{},"body":{"index.html":{}}}],["string",{"_index":18,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"index.html":{}}}],["subject",{"_index":361,"title":{},"body":{"license.html":{}}}],["sublicens",{"_index":356,"title":{},"body":{"license.html":{}}}],["subscribe(com",{"_index":299,"title":{},"body":{"index.html":{}}}],["subscribe(respons",{"_index":293,"title":{},"body":{"index.html":{}}}],["substanti",{"_index":367,"title":{},"body":{"license.html":{}}}],["super(http",{"_index":277,"title":{},"body":{"index.html":{}}}],["t",{"_index":137,"title":{},"body":{"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["tabl",{"_index":226,"title":{},"body":{"index.html":{}}}],["target",{"_index":177,"title":{},"body":{"interfaces/RestfulOptions.html":{}}}],["target.prototype.getbaseurl",{"_index":179,"title":{},"body":{"interfaces/RestfulOptions.html":{}}}],["target.prototype.getdefaulthead",{"_index":181,"title":{},"body":{"interfaces/RestfulOptions.html":{}}}],["templat",{"_index":289,"title":{},"body":{"index.html":{}}}],["test",{"_index":320,"title":{},"body":{"index.html":{}}}],["test:watch",{"_index":322,"title":{},"body":{"index.html":{}}}],["this._base.getbaseurl",{"_index":163,"title":{},"body":{"classes/RestModelBase.html":{}}}],["this._base.getdefaulthead",{"_index":164,"title":{},"body":{"classes/RestModelBase.html":{}}}],["this._base.http.put(url",{"_index":151,"title":{},"body":{"classes/RestModelBase.html":{}}}],["this._base.route(path",{"_index":165,"title":{},"body":{"classes/RestModelBase.html":{}}}],["this._rout",{"_index":98,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.base.getbaseurl",{"_index":114,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.base.getdefaulthead",{"_index":115,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.base.mapmodel(path",{"_index":116,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.getbaseurl",{"_index":110,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["this.getdefaulthead",{"_index":78,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["this.getfullpath",{"_index":80,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["this.getfullpath(id",{"_index":88,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.getplain",{"_index":152,"title":{},"body":{"classes/RestModelBase.html":{}}}],["this.http",{"_index":61,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.http.get(url",{"_index":81,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.http.post(url",{"_index":92,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.makerest(d",{"_index":96,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.makerest(r",{"_index":85,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.makerest(respons",{"_index":90,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.mapmodel(this.path",{"_index":65,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.path",{"_index":71,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["this.post",{"_index":294,"title":{},"body":{"index.html":{}}}],["this.restapi.route('post",{"_index":292,"title":{},"body":{"index.html":{}}}],["thisproto",{"_index":144,"title":{},"body":{"classes/RestModelBase.html":{}}}],["through",{"_index":266,"title":{},"body":{"index.html":{}}}],["tort",{"_index":389,"title":{},"body":{"license.html":{}}}],["tri",{"_index":248,"title":{},"body":{"index.html":{}}}],["type",{"_index":25,"title":{},"body":{"interfaces/AbstractBase.html":{},"interfaces/Resource.html":{},"classes/RestBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{},"interfaces/RestfulOptions.html":{},"miscellaneous/typealiases.html":{}}}],["typealias",{"_index":397,"title":{"miscellaneous/typealiases.html":{}},"body":{}}],["undefin",{"_index":222,"title":{},"body":{"miscellaneous/functions.html":{}}}],["url",{"_index":79,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestModelBase.html":{},"classes/RestRoute.html":{}}}],["url.length",{"_index":162,"title":{},"body":{"classes/RestModelBase.html":{}}}],["url.slice(0",{"_index":161,"title":{},"body":{"classes/RestModelBase.html":{}}}],["us",{"_index":283,"title":{},"body":{"index.html":{},"license.html":{}}}],["valu",{"_index":44,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["value.__proto__",{"_index":48,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["veri",{"_index":252,"title":{},"body":{"index.html":{}}}],["version",{"_index":192,"title":{},"body":{"changelog.html":{},"index.html":{}}}],["via",{"_index":304,"title":{},"body":{"index.html":{}}}],["view",{"_index":301,"title":{},"body":{"index.html":{}}}],["want",{"_index":258,"title":{},"body":{"index.html":{}}}],["warranti",{"_index":370,"title":{},"body":{"license.html":{}}}],["whether",{"_index":386,"title":{},"body":{"license.html":{}}}],["while(value.__proto__",{"_index":46,"title":{},"body":{"interfaces/AbstractBase.html":{},"classes/RestRoute.html":{}}}],["wish",{"_index":243,"title":{},"body":{"index.html":{}}}],["withou",{"_index":200,"title":{},"body":{"changelog.html":{}}}],["without",{"_index":347,"title":{},"body":{"license.html":{}}}]],"pipeline":["stemmer"]},
      "store": {"interfaces/AbstractBase.html":{"url":"interfaces/AbstractBase.html","title":"interface - AbstractBase","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n\n  Interfaces\n  AbstractBase\n\n\n\n        \n            Info\n        \n        \n            Source\n        \n\n\n\n    \n        \n            File\n        \n        \n            src/restRoute.ts\n        \n\n\n\n        \n            Index\n            \n                \n                    \n                        \n                            Properties\n                        \n                    \n                    \n                        \n                            \n                                \n                                        http\n                                \n                                \n                                        resource\n                                \n                            \n                        \n                    \n                    \n                        \n                            Methods\n                        \n                    \n                    \n                        \n                            \n                                \n                                    getBaseUrl\n                                \n                                \n                                    getDefaultHeaders\n                                \n                                \n                                    mapModel\n                                \n                            \n                        \n                    \n                \n            \n        \n\n            \n    \n        \n            Methods\n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            getBaseUrl\n                            \n                            \n                        \n                    \n                \n                \n                    \ngetBaseUrl()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restRoute.ts:13\n                            \n                        \n\n\n                \n                    \n\n                            \n                                Returns :     string\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            getDefaultHeaders\n                            \n                            \n                        \n                    \n                \n                \n                    \ngetDefaultHeaders()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restRoute.ts:14\n                            \n                        \n\n\n                \n                    \n\n                            \n                                Returns :     any\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            mapModel\n                            \n                            \n                        \n                    \n                \n                \n                    \nmapModel(path: string, data: any)\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restRoute.ts:15\n                            \n                        \n\n\n                \n                    \n\n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        path\n                                                        \n                                                                    string\n                                                        \n                                                    \n                                                    \n                                                            no\n                                                    \n                                                    \n\n                                                \n                                                \n                                                        data\n                                                        \n                                                                    any\n                                                        \n                                                    \n                                                    \n                                                            no\n                                                    \n                                                    \n\n                                                \n                                        \n                                    \n                            \n                            \n                            \n                            \n                                Returns :     any\n\n                            \n                                \n                                    \n                                \n                    \n                \n            \n        \n\n\n\n            \n                Properties\n                    \n                        \n                                \n                                    \n                                        \n                                        http\n                                    \n                                \n                                \n                                    \n                                        http:     HttpClient\n\n                                    \n                                \n\n\n                                    \n                                        \n                                            Type :     HttpClient\n\n                                        \n                                    \n\n\n\n\n\n                        \n                    \n                    \n                        \n                                \n                                    \n                                        \n                                        resource\n                                    \n                                \n                                \n                                    \n                                        resource:     Resource\n\n                                    \n                                \n\n\n                                    \n                                        \n                                            Type :     Resource\n\n                                        \n                                    \n\n\n\n\n\n                        \n                    \n            \n    \n\n\n    \n        import { HttpClient } from '@angular/common/http';\n// import { cloneDeep } from 'lodash';\nimport { cloneDeep } from 'lodash';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { Resource } from './types';\nimport { RestModel, RestModelBase } from './restModel';\n\ninterface AbstractBase {\n  http: HttpClient;\n  resource: Resource;\n\n  getBaseUrl(): string;\n  getDefaultHeaders(): any;\n  mapModel(path: string, data: any): any;\n}\n\n// not for array\n// function cloneDeepAndUnique(value: any) {\n//   const clone: any = { ...value };\n//   const proto: any = {};\n//   const protos = [];\n\n//   while(value.__proto__) {\n//     protos.push(value.__proto__);\n//     value = value.__proto__;\n//   }\n\n//   const last = protos.pop();\n//   for (const p of protos) {\n//     Object.assign(proto, p);\n//   }\n\n//   Object.setPrototypeOf(clone, proto);\n//   Object.assign(clone, { ...value });\n//   return clone;\n// }\n\nexport class RestRoute {\n  private http: HttpClient\n\n  constructor (private base: AbstractBase, private path: string) {\n    this.http = base.http;\n  }\n\n  private makeRest(data: any): RestModel {\n    const model = this.mapModel(this.path, data);\n    const baseClone = cloneDeep(this.base);\n\n    baseClone.http = this.http;\n\n    const resource: Resource = {\n      id: data.id,\n      path: this.path,\n      parent: baseClone.resource\n    };\n\n    baseClone.resource = resource;\n    return new RestModelBase(baseClone as any, model) as any;\n  }\n\n  getList(): Observable>> {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath();\n\n    return this.http.get(url, {headers}).pipe(\n      map((response: any[]) => response.map(r => this.makeRest(r)))\n    );\n  }\n\n  getOne(id: number): Observable> {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath(id);\n\n    return this.http.get(url, {headers}).pipe(\n      map(response => this.makeRest(response))\n    );\n  }\n\n  post(data: any): Observable> {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath();\n\n    return this.http.post(url, {headers}, data).pipe(\n      map(response => this.makeRest(response))\n    );\n  }\n\n  // private makeRestCollection(data: any[]) {\n  //   const models = data.map(d => this.makeRest(d));\n  //   const route = { ...this._route };\n  //   return new RestModelCollection(this.base, route, models);\n  // }\n\n  private getFullPath(id?: number) {\n    let parentUrl = '/';\n    addRoute(this.base.resource);\n\n    function addRoute(route?: Resource) {\n      if (route) {\n        if (route.id) {\n          parentUrl = '/' + route.id + parentUrl;\n        }\n        parentUrl = '/' + route.path + parentUrl;\n\n        if (route.parent) {\n          addRoute(route.parent);\n        }\n      }\n    }\n\n    // fix baseurl\n    let baseurl = this.getBaseUrl();\n    if (baseurl.charAt(baseurl.length - 1) === '/') {\n      baseurl = baseurl.slice(0, -1);\n    }\n\n    return baseurl + parentUrl + this.path + (id ?  '/' + id : '');\n  }\n\n  // Base\n\n  private getBaseUrl(): string {\n    return this.base.getBaseUrl();\n  }\n\n  private getDefaultHeaders(): any {\n    return this.base.getDefaultHeaders();\n  }\n\n  private mapModel(path: string, data: any): any {\n    return this.base.mapModel(path, data);\n  }\n}\n\n    \n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"interfaces/Resource.html":{"url":"interfaces/Resource.html","title":"interface - Resource","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n\n  Interfaces\n  Resource\n\n\n\n        \n            Info\n        \n        \n            Source\n        \n\n\n\n    \n        \n            File\n        \n        \n            src/types.ts\n        \n\n\n\n        \n            Index\n            \n                \n                    \n                        \n                            Properties\n                        \n                    \n                    \n                        \n                            \n                                \n                                            Optional\n                                        id\n                                \n                                \n                                            Optional\n                                        parent\n                                \n                                \n                                        path\n                                \n                            \n                        \n                    \n                \n            \n        \n\n\n\n            \n                Properties\n                    \n                        \n                                \n                                    \n                                        \n                                        id\n                                    \n                                \n                                \n                                    \n                                        id:     number\n\n                                    \n                                \n\n\n                                    \n                                        \n                                            Type :     number\n\n                                        \n                                    \n\n                                    \n                                        \n                                            Optional\n                                        \n                                    \n\n\n\n\n                        \n                    \n                    \n                        \n                                \n                                    \n                                        \n                                        parent\n                                    \n                                \n                                \n                                    \n                                        parent:     Resource\n\n                                    \n                                \n\n\n                                    \n                                        \n                                            Type :     Resource\n\n                                        \n                                    \n\n                                    \n                                        \n                                            Optional\n                                        \n                                    \n\n\n\n\n                        \n                    \n                    \n                        \n                                \n                                    \n                                        \n                                        path\n                                    \n                                \n                                \n                                    \n                                        path:     string\n\n                                    \n                                \n\n\n                                    \n                                        \n                                            Type :     string\n\n                                        \n                                    \n\n\n\n\n\n                        \n                    \n            \n    \n\n\n    \n        export interface Resource {\n  path: string,\n  id?: number,\n  parent?: Resource\n}\n\n    \n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"classes/RestBase.html":{"url":"classes/RestBase.html","title":"class - RestBase","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n  Classes\n  RestBase\n\n\n\n        \n            Info\n        \n        \n            Source\n        \n\n\n\n    \n        \n            File\n        \n        \n            src/restBase.ts\n        \n\n\n\n\n\n            \n    Index\n    \n        \n\n                \n                    \n                        Methods\n                    \n                \n                \n                    \n                        \n                            \n                                getBaseUrl\n                            \n                            \n                                getDefaultHeaders\n                            \n                            \n                                route\n                            \n                        \n                    \n                \n\n\n\n\n\n        \n    \n\n\n            \n    Constructor\n        \n            \n                \n                    \nconstructor(http: HttpClient)\n                    \n                \n                        \n                            \n                                Defined in src/restBase.ts:4\n                            \n                        \n\n                \n                    \n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        http\n                                                  \n                                                        \n                                                                    HttpClient\n                                                        \n                                                  \n                                                    \n                                                            no\n                                                    \n                                                    \n                                                \n                                        \n                                    \n                            \n                    \n                \n            \n        \n\n\n\n            \n    \n        \n            Methods\n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            getBaseUrl\n                            \n                            \n                        \n                    \n                \n                \n                    \ngetBaseUrl()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restBase.ts:15\n                            \n                        \n\n\n                \n                    \n\n                            \n                                Returns :     string\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            getDefaultHeaders\n                            \n                            \n                        \n                    \n                \n                \n                    \ngetDefaultHeaders()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restBase.ts:19\n                            \n                        \n\n\n                \n                    \n\n                            \n                                Returns :     {}\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            route\n                            \n                            \n                        \n                    \n                \n                \n                    \nroute(path: string)\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restBase.ts:23\n                            \n                        \n\n\n                \n                    \n\n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        path\n                                                        \n                                                                    string\n                                                        \n                                                    \n                                                    \n                                                            no\n                                                    \n                                                    \n\n                                                \n                                        \n                                    \n                            \n                            \n                            \n                            \n                                Returns :     any\n\n                            \n                                \n                                    \n                                \n                    \n                \n            \n        \n\n\n\n\n\n\n\n    \n\n\n    \n        import { HttpClient } from '@angular/common/http';\nimport { RestRoute } from './restRoute';\n\nexport class RestBase {\n  constructor (protected http: HttpClient) {\n  }\n\n  protected requestInterceptor(req: Request) {\n  }\n\n  protected mapModel(path: string, data: any) {\n    return data;\n  }\n\n  getBaseUrl() {\n    return '';\n  }\n\n  getDefaultHeaders() {\n    return {};\n  }\n\n  route(path: string) {\n    return new RestRoute(this as any, path);\n  }\n}\n\n    \n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"classes/RestModelBase.html":{"url":"classes/RestModelBase.html","title":"class - RestModelBase","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n  Classes\n  RestModelBase\n\n\n\n        \n            Info\n        \n        \n            Source\n        \n\n\n\n    \n        \n            File\n        \n        \n            src/restModel.ts\n        \n\n\n\n\n\n            \n    Index\n    \n        \n                \n                    \n                        Properties\n                    \n                \n                \n                    \n                        \n                            \n                                    Optional\n                                id\n                            \n                        \n                    \n                \n\n                \n                    \n                        Methods\n                    \n                \n                \n                    \n                        \n                            \n                                delete\n                            \n                            \n                                getPlain\n                            \n                            \n                                put\n                            \n                            \n                                route\n                            \n                        \n                    \n                \n\n\n\n\n\n        \n    \n\n\n            \n    Constructor\n        \n            \n                \n                    \nconstructor(_base: AbstractBase, data: T)\n                    \n                \n                        \n                            \n                                Defined in src/restModel.ts:18\n                            \n                        \n\n                \n                    \n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        _base\n                                                  \n                                                        \n                                                                    AbstractBase\n                                                        \n                                                  \n                                                    \n                                                            no\n                                                    \n                                                    \n                                                \n                                                \n                                                        data\n                                                  \n                                                        \n                                                                    T\n                                                        \n                                                  \n                                                    \n                                                            no\n                                                    \n                                                    \n                                                \n                                        \n                                    \n                            \n                    \n                \n            \n        \n\n\n            \n    \n        \n            Properties\n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                                Optional\n                            id\n                            \n                            \n                        \n                    \n                \n                \n                    \n                        id:     number\n\n                    \n                \n                    \n                        \n                            Type :     number\n\n                        \n                    \n                        \n                            \n                                    Defined in src/restModel.ts:18\n                            \n                        \n\n\n            \n        \n\n\n            \n    \n        \n            Methods\n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            delete\n                            \n                            \n                        \n                    \n                \n                \n                    \ndelete()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restModel.ts:35\n                            \n                        \n\n\n                \n                    \n\n                            \n                                Returns :     Observable\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            getPlain\n                            \n                            \n                        \n                    \n                \n                \n                    \ngetPlain()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restModel.ts:42\n                            \n                        \n\n\n                \n                    \n\n                            \n                                Returns :     T\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            put\n                            \n                            \n                        \n                    \n                \n                \n                    \nput()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restModel.ts:28\n                            \n                        \n\n\n                \n                    \n\n                            \n                                Returns :     Observable\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            route\n                            \n                            \n                        \n                    \n                \n                \n                    \nroute(path: string)\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restModel.ts:103\n                            \n                        \n\n\n                \n                    \n\n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        path\n                                                        \n                                                                    string\n                                                        \n                                                    \n                                                    \n                                                            no\n                                                    \n                                                    \n\n                                                \n                                        \n                                    \n                            \n                            \n                            \n                            \n                                Returns :     RestRoute\n\n                            \n                                \n                                    \n                                \n                    \n                \n            \n        \n\n\n\n\n\n\n\n    \n\n\n    \n        import { HttpClient } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport { Resource } from './types';\nimport { RestRoute } from './restRoute';\n\ninterface AbstractBase {\n  http: HttpClient;\n  resource: Resource;\n\n  getBaseUrl(): string;\n  getDefaultHeaders(): any;\n  route(path: string): RestRoute;\n}\n\nexport type RestModel = RestModelBase & T;\n\nexport class RestModelBase {\n  id?: number;\n\n  constructor (private _base: AbstractBase, data: T) {\n    const thisProto = Object.getPrototypeOf(this);\n    const dataProto = Object.getPrototypeOf(data);\n    Object.assign(thisProto, dataProto);\n    Object.setPrototypeOf(this, thisProto);\n    Object.assign(this, data);\n  }\n\n  put(): Observable {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath();\n\n    return this._base.http.put(url, {headers}, this.getPlain());\n  }\n\n  delete(): Observable {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath();\n\n    return this._base.http.put(url, {headers}, this.getPlain());\n  }\n\n  getPlain(): T {\n    const plain: any = {};\n    Object.assign(plain, this);\n    delete plain._base;\n\n    const proto = { ...Object.getPrototypeOf(this) };\n    const methods = [\n      'delete',\n      'getBaseUrl',\n      'getDefaultHeaders',\n      'getFullPath',\n      'getPlain',\n      'put',\n      'route'\n    ];\n\n    for (const key of methods) {\n      if (key) { delete proto[key]; }\n    }\n\n    Object.setPrototypeOf(plain, proto);\n    return plain;\n  }\n\n  private getFullPath() {\n    let parentUrl = '/';\n    addRoute(this._base.resource);\n\n    function addRoute(route?: Resource) {\n      if (route) {\n        if (route.id) {\n          parentUrl = '/' + route.id + parentUrl;\n        }\n\n        parentUrl = '/' + route.path + parentUrl;\n\n        if (route.parent) {\n          addRoute(route.parent);\n        }\n      }\n    }\n\n    let baseurl = this.getBaseUrl();\n    if (baseurl.charAt(baseurl.length - 1) === '/') {\n      baseurl = baseurl.slice(0, -1);\n    }\n\n    const url = baseurl + parentUrl\n    return url.slice(0, url.length-1);\n  }\n\n  // Base\n\n  private getBaseUrl(): string {\n    return this._base.getBaseUrl();\n  }\n\n  private getDefaultHeaders(): any {\n    return this._base.getDefaultHeaders();\n  }\n\n  route(path: string): RestRoute {\n    return this._base.route(path);\n  }\n}\n\n    \n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"classes/RestRoute.html":{"url":"classes/RestRoute.html","title":"class - RestRoute","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n  Classes\n  RestRoute\n\n\n\n        \n            Info\n        \n        \n            Source\n        \n\n\n\n    \n        \n            File\n        \n        \n            src/restRoute.ts\n        \n\n\n\n\n\n            \n    Index\n    \n        \n\n                \n                    \n                        Methods\n                    \n                \n                \n                    \n                        \n                            \n                                getList\n                            \n                            \n                                getOne\n                            \n                            \n                                post\n                            \n                        \n                    \n                \n\n\n\n\n\n        \n    \n\n\n            \n    Constructor\n        \n            \n                \n                    \nconstructor(base: AbstractBase, path: string)\n                    \n                \n                        \n                            \n                                Defined in src/restRoute.ts:40\n                            \n                        \n\n                \n                    \n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        base\n                                                  \n                                                        \n                                                                    AbstractBase\n                                                        \n                                                  \n                                                    \n                                                            no\n                                                    \n                                                    \n                                                \n                                                \n                                                        path\n                                                  \n                                                        \n                                                                    string\n                                                        \n                                                  \n                                                    \n                                                            no\n                                                    \n                                                    \n                                                \n                                        \n                                    \n                            \n                    \n                \n            \n        \n\n\n\n            \n    \n        \n            Methods\n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            getList\n                            \n                            \n                        \n                    \n                \n                \n                    \ngetList()\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restRoute.ts:62\n                            \n                        \n\n                        \n                            \n                                Type parameters :\n                                \n                                        T\n                                \n                            \n                        \n\n                \n                    \n\n                            \n                                Returns :     Observable>>\n\n                            \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            getOne\n                            \n                            \n                        \n                    \n                \n                \n                    \ngetOne(id: number)\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restRoute.ts:71\n                            \n                        \n\n                        \n                            \n                                Type parameters :\n                                \n                                        T\n                                \n                            \n                        \n\n                \n                    \n\n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        id\n                                                        \n                                                                    number\n                                                        \n                                                    \n                                                    \n                                                            no\n                                                    \n                                                    \n\n                                                \n                                        \n                                    \n                            \n                            \n                            \n                            \n                                Returns :     Observable>\n\n                            \n                                \n                                    \n                                \n                    \n                \n            \n        \n        \n            \n                \n                    \n                        \n                        \n                            \n                            post\n                            \n                            \n                        \n                    \n                \n                \n                    \npost(data: any)\n                    \n                \n\n\n                        \n                            \n                                    Defined in src/restRoute.ts:80\n                            \n                        \n\n                        \n                            \n                                Type parameters :\n                                \n                                        T\n                                \n                            \n                        \n\n                \n                    \n\n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                    Type\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        data\n                                                        \n                                                                    any\n                                                        \n                                                    \n                                                    \n                                                            no\n                                                    \n                                                    \n\n                                                \n                                        \n                                    \n                            \n                            \n                            \n                            \n                                Returns :     Observable>\n\n                            \n                                \n                                    \n                                \n                    \n                \n            \n        \n\n\n\n\n\n\n\n    \n\n\n    \n        import { HttpClient } from '@angular/common/http';\n// import { cloneDeep } from 'lodash';\nimport { cloneDeep } from 'lodash';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { Resource } from './types';\nimport { RestModel, RestModelBase } from './restModel';\n\ninterface AbstractBase {\n  http: HttpClient;\n  resource: Resource;\n\n  getBaseUrl(): string;\n  getDefaultHeaders(): any;\n  mapModel(path: string, data: any): any;\n}\n\n// not for array\n// function cloneDeepAndUnique(value: any) {\n//   const clone: any = { ...value };\n//   const proto: any = {};\n//   const protos = [];\n\n//   while(value.__proto__) {\n//     protos.push(value.__proto__);\n//     value = value.__proto__;\n//   }\n\n//   const last = protos.pop();\n//   for (const p of protos) {\n//     Object.assign(proto, p);\n//   }\n\n//   Object.setPrototypeOf(clone, proto);\n//   Object.assign(clone, { ...value });\n//   return clone;\n// }\n\nexport class RestRoute {\n  private http: HttpClient\n\n  constructor (private base: AbstractBase, private path: string) {\n    this.http = base.http;\n  }\n\n  private makeRest(data: any): RestModel {\n    const model = this.mapModel(this.path, data);\n    const baseClone = cloneDeep(this.base);\n\n    baseClone.http = this.http;\n\n    const resource: Resource = {\n      id: data.id,\n      path: this.path,\n      parent: baseClone.resource\n    };\n\n    baseClone.resource = resource;\n    return new RestModelBase(baseClone as any, model) as any;\n  }\n\n  getList(): Observable>> {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath();\n\n    return this.http.get(url, {headers}).pipe(\n      map((response: any[]) => response.map(r => this.makeRest(r)))\n    );\n  }\n\n  getOne(id: number): Observable> {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath(id);\n\n    return this.http.get(url, {headers}).pipe(\n      map(response => this.makeRest(response))\n    );\n  }\n\n  post(data: any): Observable> {\n    const headers = this.getDefaultHeaders();\n    const url = this.getFullPath();\n\n    return this.http.post(url, {headers}, data).pipe(\n      map(response => this.makeRest(response))\n    );\n  }\n\n  // private makeRestCollection(data: any[]) {\n  //   const models = data.map(d => this.makeRest(d));\n  //   const route = { ...this._route };\n  //   return new RestModelCollection(this.base, route, models);\n  // }\n\n  private getFullPath(id?: number) {\n    let parentUrl = '/';\n    addRoute(this.base.resource);\n\n    function addRoute(route?: Resource) {\n      if (route) {\n        if (route.id) {\n          parentUrl = '/' + route.id + parentUrl;\n        }\n        parentUrl = '/' + route.path + parentUrl;\n\n        if (route.parent) {\n          addRoute(route.parent);\n        }\n      }\n    }\n\n    // fix baseurl\n    let baseurl = this.getBaseUrl();\n    if (baseurl.charAt(baseurl.length - 1) === '/') {\n      baseurl = baseurl.slice(0, -1);\n    }\n\n    return baseurl + parentUrl + this.path + (id ?  '/' + id : '');\n  }\n\n  // Base\n\n  private getBaseUrl(): string {\n    return this.base.getBaseUrl();\n  }\n\n  private getDefaultHeaders(): any {\n    return this.base.getDefaultHeaders();\n  }\n\n  private mapModel(path: string, data: any): any {\n    return this.base.mapModel(path, data);\n  }\n}\n\n    \n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"interfaces/RestfulOptions.html":{"url":"interfaces/RestfulOptions.html","title":"interface - RestfulOptions","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n\n  Interfaces\n  RestfulOptions\n\n\n\n        \n            Info\n        \n        \n            Source\n        \n\n\n\n    \n        \n            File\n        \n        \n            src/decorators.ts\n        \n\n\n\n        \n            Index\n            \n                \n                    \n                        \n                            Properties\n                        \n                    \n                    \n                        \n                            \n                                \n                                            Optional\n                                        baseUrl\n                                \n                                \n                                            Optional\n                                        headers\n                                \n                            \n                        \n                    \n                \n            \n        \n\n\n\n            \n                Properties\n                    \n                        \n                                \n                                    \n                                        \n                                        baseUrl\n                                    \n                                \n                                \n                                    \n                                        baseUrl:     string\n\n                                    \n                                \n\n\n                                    \n                                        \n                                            Type :     string\n\n                                        \n                                    \n\n                                    \n                                        \n                                            Optional\n                                        \n                                    \n\n\n\n\n                        \n                    \n                    \n                        \n                                \n                                    \n                                        \n                                        headers\n                                    \n                                \n                                \n                                    \n                                        headers:     any\n\n                                    \n                                \n\n\n                                    \n                                        \n                                            Type :     any\n\n                                        \n                                    \n\n                                    \n                                        \n                                            Optional\n                                        \n                                    \n\n\n\n\n                        \n                    \n            \n    \n\n\n    \n        export interface RestfulOptions {\n  baseUrl?: string,\n  headers?: any\n}\n\nexport function Restful( args: RestfulOptions ) {\n  return (Target: any): any => {\n    if (args.baseUrl) {\n      Target.prototype.getBaseUrl = () => {\n        return args.baseUrl;\n      };\n    }\n\n    if (args.headers) {\n      Target.prototype.getDefaultHeaders = () => {\n        return args.headers;\n      };\n    }\n\n    return Target;\n  };\n}\n\n    \n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"changelog.html":{"url":"changelog.html","title":"getting-started - changelog","body":"\n                   \n\nChange Log\nAll notable changes to this project will be documented in this file. See standard-version for commit guidelines.\n\n0.0.4 (2018-07-31)\n\nReimplemented all classes withou extending\nMuch better now\n\n\n0.0.3 (2018-07-31)\n\nFixed some bugs\n\n\n0.0.2 (2018-07-30)\n\nImplemented Route and methods\n\n\n0.0.1 (2018-07-30)\n\nFirst commit\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"dependencies.html":{"url":"dependencies.html","title":"package-dependencies - dependencies","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n\n\n    \n        Dependencies\n    \n    \n        \n            lodash.clonedeep : ^4.5.0\n    \n\n\n    \n    \n        Peer Dependencies\n    \n    \n        \n            @angular/core : >=6.0.0\n        \n            rxjs : >=6.0.0\n    \n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"miscellaneous/functions.html":{"url":"miscellaneous/functions.html","title":"miscellaneous-functions - functions","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  Miscellaneous\n  Functions\n\n\n\n    Index\n    \n        \n            \n                \n                    \n                        \n                            Restful   (src/.../decorators.ts)\n                        \n                    \n                \n            \n        \n    \n\n\n    src/decorators.ts\n    \n            \n            \n                \n                    \n                        \n                        \n                            \n                            Restful\n                            \n                            \n                        \n                    \n                \n                \n                    \nRestful(args: undefined)\n                    \n                \n\n\n\n\n                \n                    \n\n                            \n                                    Parameters :\n                                    \n                                        \n                                            \n                                                Name\n                                                Optional\n                                            \n                                        \n                                        \n                                                \n                                                        args\n                                                    \n                                                    \n                                                            no\n                                                    \n                                                    \n\n                                                \n                                        \n                                    \n                            \n                            \n                            \n                    \n                \n            \n        \n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"index.html":{"url":"index.html","title":"getting-started - index","body":"\n                   \n\nNgx Restmodel\n\n\n\n\n\n\n\nDemo\nhttps://rosostolato.github.io/ngx-restmodel/ not implemented yet\nTable of contents\n\nAbout\nInstallation\nDocumentation\nDevelopment\nLicense\n\nAbout\n[!Highly Experimental - still on developing]\nRequest from a restful api and link it to a model.\nI am a fun of Restangular but I've got desapointed with the version of Angular 2+. But since on AngularJs, I wish Restangular could bind them methods on prototype and not inside its body. So I tried to create this lib.\nIt's very experimental and maybe not correctly implemented, but I'm still developing the Idea.\nIf you liked the idea and want to contribute, please send me an e-mail (I need help).\nInstallation\nInstall through npm:\nnpm install --save ngx-restmodelThen create a service that extends RestBase and implement the desireds methods.\nimport { RestBase, Restful } from '../src/index';\nimport { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Post } from './models/Post';\n\n@Injectable()\n@Restful({\n  baseUrl: 'https://jsonplaceholder.typicode.com'\n})\nexport class RestApi extends RestBase {\n  constructor (http: HttpClient) {\n    super(http);\n  }\n\n  // Here you can map the responses direct to your models\n  protected mapModel(route: string, data: any) {\n    if (route === 'posts') {\n      return new Post(data);\n    }\n\n    return data;\n  }\n}Finally use in one of your apps components:\nimport { Component } from '@angular/core';\nimport { RestApi } from './restApi.service';\nimport { Post } from './models/Post';\n\n@Component({\n  selector: 'rest-demo-app',\n  template: ``\n})\nexport class DemoComponent {\n  posts: Post[]\n\n  constructor (private restApi: RestApi) {\n  }\n\n  GetPosts() {\n    // Route to the desired path\n    // Get /posts\n    this.restApi.route('posts')\n      .getList()\n      .subscribe(response => {\n        this.posts = response.getPlain();\n\n        // You can route again just like restangular\n        // Get /posts/1/comments\n        response[0].route('comments')\n          .getList()\n          .subscribe(comments => {\n          });\n      });\n  }\n}You may also find it useful to view the demo source. not implemented yet\nDocumentation\nAll documentation is auto-generated from the source via compodoc and can be viewed here:\nhttps://rosostolato.github.io/ngx-restmodel/docs/ not implemented yet\nDevelopment\nPrepare your environment\n\nInstall Node.js and NPM\nInstall local dev dependencies: npm install while current directory is this repo\n\nDevelopment server\nRun npm start to start a development server on port 8000 with auto reload + tests.\nTesting\nRun npm test to run tests once or npm run test:watch to continually run tests.\nRelease\n\nBump the version in package.json (once the module hits 1.0 this will become automatic)npm run release\n\nLicense\nMIT\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"license.html":{"url":"license.html","title":"getting-started - license","body":"\n                   \n\nThe MIT License (MIT)\nCopyright (c) 2018 rosostolato\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"modules.html":{"url":"modules.html","title":"modules - modules","body":"\n                   \n\n\n\n\n    Modules\n\n\n    \n    \n\n\n\n\n\n\n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"overview.html":{"url":"overview.html","title":"overview - overview","body":"\n                   \n\n\n\n    Overview\n\n\n    \n            \n                \n                    \n                        \n                        3 classes\n                    \n                \n            \n            \n                \n                    \n                        \n                        4 interfaces\n                    \n                \n            \n    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"},"miscellaneous/typealiases.html":{"url":"miscellaneous/typealiases.html","title":"miscellaneous-typealiases - typealiases","body":"\n                   \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n  Miscellaneous\n  Type aliases\n\n\n\n    Index\n    \n        \n            \n                \n                    \n                        \n                            RestModel   (src/.../restModel.ts)\n                        \n                    \n                \n            \n        \n    \n\n\n    src/restModel.ts\n    \n        \n            \n                \n                    \n                        \n                        RestModel\n                    \n                \n                \n                    \n                        RestModel:     \n\n                    \n                \n            \n        \n\n\n\n                   \n    \n         results matching \"\"\n        \n    \n    \n        No results matching \"\"\n    \n\n"}}
  }
  