| Conditions | 5 |
| Paths | 2 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | |||
| 17 | self.buildRequestQuery = function (targetSharePointURL, crtListName, queryType, headerOptions) { |
||
| 18 | var queryPrefix = ''; |
||
| 19 | switch (queryType) { |
||
| 20 | case 'Fields': |
||
| 21 | case 'Items': |
||
| 22 | queryPrefix = '_api/web/lists/GetByTitle(\'' + crtListName + '\')/' + queryType; |
||
| 23 | break; |
||
| 24 | case 'Lists': |
||
| 25 | default: |
||
| 26 | queryPrefix = '_api/web/Lists'; |
||
| 27 | break; |
||
| 28 | } |
||
| 29 | return { |
||
| 30 | url: targetSharePointURL + queryPrefix, |
||
| 31 | headers: headerOptions, |
||
| 32 | json: true |
||
| 33 | }; |
||
| 34 | }; |
||
| 35 | }; |
||
| 38 |