File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,11 @@ export default function Request(options) {
42
42
queryParams = serialize ( options . body ) ;
43
43
}
44
44
45
-
46
45
fetch ( url + '?' + queryParams , {
47
46
method : 'GET' ,
48
47
headers : headers
49
48
} )
50
- . then ( function ( response ) {
49
+ . then ( function ( response ) {
51
50
if ( response . ok && response . status === 200 ) {
52
51
let data = response . json ( ) ;
53
52
resolve ( data ) ;
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ export default class Entry {
190
190
*/
191
191
includeSchema ( ) {
192
192
this . _query [ 'include_schema' ] = true ;
193
+ this . _query [ 'include_snippet_schema' ] = true ;
193
194
return this ;
194
195
}
195
196
@@ -226,6 +227,7 @@ export default class Entry {
226
227
*/
227
228
includeContentType ( ) {
228
229
this . _query [ 'include_content_type' ] = true ;
230
+ this . _query [ 'include_snippet_schema' ] = true ;
229
231
return this ;
230
232
}
231
233
Original file line number Diff line number Diff line change @@ -652,7 +652,7 @@ export default class Query extends Entry {
652
652
query : this . _query
653
653
}
654
654
} ;
655
- return Utils . sendRequest ( this ) ;
655
+ return Utils . sendRequest ( this ) ;
656
656
}
657
657
658
658
/**
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ export default class Stack {
372
372
* @returns {Stack }
373
373
* @instance
374
374
*/
375
- getContentTypes ( ) {
375
+ getContentTypes ( param ) {
376
376
let query = {
377
377
method : 'POST' ,
378
378
headers : this . headers ,
@@ -382,6 +382,11 @@ export default class Stack {
382
382
environment : this . environment
383
383
}
384
384
} ;
385
+ if ( param && param !== undefined ) {
386
+ for ( var key in param ) {
387
+ query . body [ key ] = param [ key ]
388
+ }
389
+ }
385
390
return Request ( query ) ;
386
391
}
387
392
You can’t perform that action at this time.
0 commit comments