diff --git a/packages/oas/src/converter/parts/Oas2MediaTypesResolver.ts b/packages/oas/src/converter/parts/Oas2MediaTypesResolver.ts new file mode 100644 index 00000000..683502b8 --- /dev/null +++ b/packages/oas/src/converter/parts/Oas2MediaTypesResolver.ts @@ -0,0 +1,38 @@ +import { OpenAPIV2 } from '@har-sdk/core'; + +export class Oas2MediaTypesResolver { + private readonly DEFAULT_CONSUME_MEDIA_TYPE: OpenAPIV2.MimeTypes = [ + 'application/json' + ]; + private readonly DEFAULT_PRODUCE_MEDIA_TYPE: OpenAPIV2.MimeTypes = ['*/*']; + + constructor(private readonly spec: OpenAPIV2.Document) {} + + public resolveToConsume(operation: OpenAPIV2.OperationObject) { + return this.resolve(operation, 'consumes', this.DEFAULT_CONSUME_MEDIA_TYPE); + } + + public resolveToProduce(operation: OpenAPIV2.OperationObject) { + return this.resolve(operation, 'produces', this.DEFAULT_PRODUCE_MEDIA_TYPE); + } + + private resolve( + operation: OpenAPIV2.OperationObject, + node: 'consumes' | 'produces', + defaultMediaTypes: OpenAPIV2.MimeTypes + ): OpenAPIV2.MimeTypes { + let mediaTypes: OpenAPIV2.MimeTypes; + + if (operation[node]?.length) { + mediaTypes = operation[node]; + } else if (this.spec[node]?.length) { + mediaTypes = this.spec[node]; + } + + mediaTypes = mediaTypes + ?.map((mediaType) => mediaType?.trim()) + .filter(Boolean); + + return mediaTypes?.length ? mediaTypes : defaultMediaTypes; + } +} diff --git a/packages/oas/src/converter/parts/headers/HeadersConverter.ts b/packages/oas/src/converter/parts/headers/HeadersConverter.ts index 9f41adb1..9b511b1c 100644 --- a/packages/oas/src/converter/parts/headers/HeadersConverter.ts +++ b/packages/oas/src/converter/parts/headers/HeadersConverter.ts @@ -13,6 +13,9 @@ import jsonPointer from 'json-pointer'; export abstract class HeadersConverter implements SubConverter { + private readonly CONTENT_TYPE_METHODS = ['post', 'put', 'patch', 'delete']; + private readonly CONTENT_TYPE_HEADER = 'content-type'; + protected constructor( private readonly spec: T, private readonly sampler: Sampler @@ -32,7 +35,15 @@ export abstract class HeadersConverter const headers: Header[] = []; const pathObj = getOperation(this.spec, path, method); - headers.push(...this.createContentTypeHeaders(pathObj)); + if ( + this.CONTENT_TYPE_METHODS.includes(method.toLowerCase()) && + !headers.some( + (header) => header.name.toLowerCase() === this.CONTENT_TYPE_HEADER + ) + ) { + headers.push(...this.createContentTypeHeaders(pathObj)); + } + headers.push(...this.createAcceptHeaders(pathObj)); headers.push(...this.parseFromParams(path, method)); diff --git a/packages/oas/src/converter/parts/headers/Oas2HeadersConveter.ts b/packages/oas/src/converter/parts/headers/Oas2HeadersConveter.ts index 16ddb86c..423cc2ca 100644 --- a/packages/oas/src/converter/parts/headers/Oas2HeadersConveter.ts +++ b/packages/oas/src/converter/parts/headers/Oas2HeadersConveter.ts @@ -2,23 +2,34 @@ import { LocationParam } from '../LocationParam'; import { Oas2ValueSerializer } from '../Oas2ValueSerializer'; import { Sampler } from '../../Sampler'; import { HeadersConverter } from './HeadersConverter'; +import { Oas2MediaTypesResolver } from '../Oas2MediaTypesResolver'; import { Header, OpenAPIV2 } from '@har-sdk/core'; export class Oas2HeadersConverter extends HeadersConverter { private readonly oas2ValueSerializer = new Oas2ValueSerializer(); + private readonly oas2MediaTypeResolver: Oas2MediaTypesResolver; constructor(spec: OpenAPIV2.Document, sampler: Sampler) { super(spec, sampler); + this.oas2MediaTypeResolver = new Oas2MediaTypesResolver(spec); } protected createContentTypeHeaders( - pathObj: OpenAPIV2.OperationObject + operation: OpenAPIV2.OperationObject ): Header[] { - return this.createHeaders('content-type', pathObj.consumes); + return this.createHeaders( + 'content-type', + this.oas2MediaTypeResolver.resolveToConsume(operation) + ); } - protected createAcceptHeaders(pathObj: OpenAPIV2.OperationObject): Header[] { - return this.createHeaders('accept', pathObj.produces); + protected createAcceptHeaders( + operation: OpenAPIV2.OperationObject + ): Header[] { + return this.createHeaders( + 'accept', + this.oas2MediaTypeResolver.resolveToProduce(operation) + ); } protected convertHeaderParam( diff --git a/packages/oas/src/converter/parts/postdata/Oas2BodyConverter.ts b/packages/oas/src/converter/parts/postdata/Oas2BodyConverter.ts index 4dafaa8a..d563e159 100644 --- a/packages/oas/src/converter/parts/postdata/Oas2BodyConverter.ts +++ b/packages/oas/src/converter/parts/postdata/Oas2BodyConverter.ts @@ -1,11 +1,15 @@ import { BodyConverter } from './BodyConverter'; import type { Sampler } from '../../Sampler'; -import { filterLocationParams, getParameters, isOASV2 } from '../../../utils'; +import { filterLocationParams, getParameters } from '../../../utils'; +import { Oas2MediaTypesResolver } from '../Oas2MediaTypesResolver'; import type { OpenAPIV2, PostData } from '@har-sdk/core'; export class Oas2BodyConverter extends BodyConverter { + private readonly oas2MediaTypeResolver: Oas2MediaTypesResolver; + constructor(spec: OpenAPIV2.Document, sampler: Sampler) { super(spec, sampler); + this.oas2MediaTypeResolver = new Oas2MediaTypesResolver(spec); } public convert(path: string, method: string): PostData | null { @@ -35,17 +39,9 @@ export class Oas2BodyConverter extends BodyConverter { protected getContentType(path: string, method: string): string | undefined { const operation = this.spec.paths[path][method]; - let consumes: OpenAPIV2.MimeTypes; - - if (operation.consumes?.length) { - consumes = operation.consumes; - } else if (isOASV2(this.spec) && this.spec.consumes?.length) { - consumes = this.spec.consumes; - } - return this.sampler.sample({ type: 'array', - examples: consumes + examples: this.oas2MediaTypeResolver.resolveToConsume(operation) }); } diff --git a/packages/oas/tests/DefaultConverter.spec.ts b/packages/oas/tests/DefaultConverter.spec.ts index f633bd38..7a77d8c4 100644 --- a/packages/oas/tests/DefaultConverter.spec.ts +++ b/packages/oas/tests/DefaultConverter.spec.ts @@ -40,6 +40,29 @@ describe('DefaultConverter', () => { expected: 'empty-schema.swagger.result.json', message: 'should correctly handle empty schemas (swagger)' }, + { + input: 'consumes-produces-missing.swagger.yaml', + expected: 'consumes-produces-missing.swagger.result.json', + message: 'should correctly handle missing consumes/produces (swagger)' + }, + { + input: 'consumes-produces-override.swagger.yaml', + expected: 'consumes-produces-override.swagger.result.json', + message: + 'should correctly handle override consumes/produces to empty (swagger)' + }, + { + input: 'consumes-produces-root.swagger.yaml', + expected: 'consumes-produces-root.swagger.result.json', + message: + 'should correctly handle root level only consumes/produces (swagger)' + }, + { + input: 'consumes-produces-operation.swagger.yaml', + expected: 'consumes-produces-operation.swagger.result.json', + message: + 'should correctly handle operation level only consumes/produces (swagger)' + }, { input: 'empty-schema.oas.yaml', expected: 'empty-schema.oas.result.json', diff --git a/packages/oas/tests/fixtures/binary-body.swagger.result.json b/packages/oas/tests/fixtures/binary-body.swagger.result.json index 11e0d17e..05663900 100644 --- a/packages/oas/tests/fixtures/binary-body.swagger.result.json +++ b/packages/oas/tests/fixtures/binary-body.swagger.result.json @@ -6,6 +6,10 @@ { "name": "content-type", "value": "image/jpeg" + }, + { + "name": "accept", + "value": "*/*" } ], "headersSize": 0, @@ -25,6 +29,10 @@ { "name": "content-type", "value": "image/png" + }, + { + "name": "accept", + "value": "*/*" } ], "headersSize": 0, @@ -44,6 +52,10 @@ { "name": "content-type", "value": "image/ico" + }, + { + "name": "accept", + "value": "*/*" } ], "headersSize": 0, @@ -63,6 +75,10 @@ { "name": "content-type", "value": "multipart/form-data" + }, + { + "name": "accept", + "value": "*/*" } ], "headersSize": 0, diff --git a/packages/oas/tests/fixtures/consumes-produces-missing.swagger.result.json b/packages/oas/tests/fixtures/consumes-produces-missing.swagger.result.json new file mode 100644 index 00000000..b42c54dd --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-missing.swagger.result.json @@ -0,0 +1,25 @@ +[ + { + "queryString": [], + "url": "https://brokencrystals.com/api/v1/dummy1", + "method": "POST", + "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "*/*" + } + ], + "httpVersion": "HTTP/1.1", + "cookies": [], + "headersSize": 0, + "bodySize": 0, + "postData": { + "mimeType": "application/json", + "text": "{\"id\":42}" + } + } +] diff --git a/packages/oas/tests/fixtures/consumes-produces-missing.swagger.yaml b/packages/oas/tests/fixtures/consumes-produces-missing.swagger.yaml new file mode 100644 index 00000000..1c1bad04 --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-missing.swagger.yaml @@ -0,0 +1,26 @@ +swagger: '2.0' +info: + title: Future is Bright + version: 1.0.0 +host: brokencrystals.com +basePath: /api/v1 +schemes: + - https +paths: + '/dummy1': + post: + parameters: + - in: body + name: body + schema: + $ref: '#/definitions/requestBody' + responses: + 200: + description: successful operation + schema: {} +definitions: + requestBody: + type: object + properties: + id: + type: integer diff --git a/packages/oas/tests/fixtures/consumes-produces-operation.swagger.result.json b/packages/oas/tests/fixtures/consumes-produces-operation.swagger.result.json new file mode 100644 index 00000000..135610a1 --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-operation.swagger.result.json @@ -0,0 +1,25 @@ +[ + { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/xml" + }, + { + "name": "accept", + "value": "application/xml" + } + ], + "headersSize": 0, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/xml", + "text": "\n\n\t42\n" + }, + "queryString": [], + "url": "https://petstore.swagger.io/v2/dummy1" + } +] diff --git a/packages/oas/tests/fixtures/consumes-produces-operation.swagger.yaml b/packages/oas/tests/fixtures/consumes-produces-operation.swagger.yaml new file mode 100644 index 00000000..0cc026a9 --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-operation.swagger.yaml @@ -0,0 +1,30 @@ +swagger: '2.0' +info: + title: Swagger Petstore + version: 1.0.0 +host: petstore.swagger.io +basePath: /v2 +schemes: + - https +paths: + '/dummy1': + post: + consumes: + - application/xml + produces: + - application/xml + parameters: + - in: body + name: body + schema: + $ref: '#/definitions/requestBody' + responses: + 200: + description: successful operation + schema: {} +definitions: + requestBody: + type: object + properties: + id: + type: integer diff --git a/packages/oas/tests/fixtures/consumes-produces-override.swagger.result.json b/packages/oas/tests/fixtures/consumes-produces-override.swagger.result.json new file mode 100644 index 00000000..36b8678c --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-override.swagger.result.json @@ -0,0 +1,48 @@ +[ + { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "*/*" + } + ], + "headersSize": 0, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/json", + "text": "{\"id\":42}" + }, + "queryString": [], + "url": "https://petstore.swagger.io/v2/dummy1" + }, + { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "multipart/form-data" + }, + { + "name": "accept", + "value": "application/vnd.api+json" + } + ], + "headersSize": 0, + "httpVersion": "HTTP/1.1", + "method": "PUT", + "postData": { + "mimeType": "multipart/form-data; boundary=956888039105887155673143", + "text": "--956888039105887155673143\r\nContent-Disposition: form-data; name=\"id\"\r\n\r\n42\r\n--956888039105887155673143--" + }, + "queryString": [], + "url": "https://petstore.swagger.io/v2/dummy1" + } +] diff --git a/packages/oas/tests/fixtures/consumes-produces-override.swagger.yaml b/packages/oas/tests/fixtures/consumes-produces-override.swagger.yaml new file mode 100644 index 00000000..d29860a1 --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-override.swagger.yaml @@ -0,0 +1,48 @@ +swagger: '2.0' +info: + title: Swagger Petstore + version: 1.0.0 +host: petstore.swagger.io +basePath: /v2 +schemes: + - https +consumes: + - application/xml +produces: + - application/xml +paths: + '/dummy1': + post: + consumes: + - + produces: + - + parameters: + - in: body + name: body + schema: + $ref: '#/definitions/requestBody' + responses: + 200: + description: successful operation + schema: {} + put: + consumes: + - multipart/form-data + produces: + - application/vnd.api+json + parameters: + - in: body + name: body + schema: + $ref: '#/definitions/requestBody' + responses: + 200: + description: successful operation + schema: {} +definitions: + requestBody: + type: object + properties: + id: + type: integer diff --git a/packages/oas/tests/fixtures/consumes-produces-root.swagger.result.json b/packages/oas/tests/fixtures/consumes-produces-root.swagger.result.json new file mode 100644 index 00000000..135610a1 --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-root.swagger.result.json @@ -0,0 +1,25 @@ +[ + { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/xml" + }, + { + "name": "accept", + "value": "application/xml" + } + ], + "headersSize": 0, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/xml", + "text": "\n\n\t42\n" + }, + "queryString": [], + "url": "https://petstore.swagger.io/v2/dummy1" + } +] diff --git a/packages/oas/tests/fixtures/consumes-produces-root.swagger.yaml b/packages/oas/tests/fixtures/consumes-produces-root.swagger.yaml new file mode 100644 index 00000000..6c0b0846 --- /dev/null +++ b/packages/oas/tests/fixtures/consumes-produces-root.swagger.yaml @@ -0,0 +1,30 @@ +swagger: '2.0' +info: + title: Swagger Petstore + version: 1.0.0 +host: petstore.swagger.io +basePath: /v2 +schemes: + - https +consumes: + - application/xml +produces: + - application/xml +paths: + '/dummy1': + post: + parameters: + - in: body + name: body + schema: + $ref: '#/definitions/requestBody' + responses: + 200: + description: successful operation + schema: {} +definitions: + requestBody: + type: object + properties: + id: + type: integer diff --git a/packages/oas/tests/fixtures/github.swagger.result.json b/packages/oas/tests/fixtures/github.swagger.result.json index fdafed4d..cda19854 100644 --- a/packages/oas/tests/fixtures/github.swagger.result.json +++ b/packages/oas/tests/fixtures/github.swagger.result.json @@ -4,6 +4,10 @@ "url": "https://api.github.com/emojis", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -39,6 +43,10 @@ "url": "https://api.github.com/events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -74,6 +82,10 @@ "url": "https://api.github.com/feeds", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -114,6 +126,10 @@ "url": "https://api.github.com/gists?since=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -149,6 +165,14 @@ "url": "https://api.github.com/gists", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -193,6 +217,10 @@ "url": "https://api.github.com/gists/public?since=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -233,6 +261,10 @@ "url": "https://api.github.com/gists/starred?since=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -268,6 +300,14 @@ "url": "https://api.github.com/gists/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -303,6 +343,10 @@ "url": "https://api.github.com/gists/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -338,6 +382,14 @@ "url": "https://api.github.com/gists/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -377,6 +429,10 @@ "url": "https://api.github.com/gists/42/comments", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -412,6 +468,14 @@ "url": "https://api.github.com/gists/42/comments", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -451,6 +515,14 @@ "url": "https://api.github.com/gists/42/comments/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -486,6 +558,10 @@ "url": "https://api.github.com/gists/42/comments/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -521,6 +597,14 @@ "url": "https://api.github.com/gists/42/comments/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -560,6 +644,14 @@ "url": "https://api.github.com/gists/42/forks", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -595,6 +687,14 @@ "url": "https://api.github.com/gists/42/star", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -630,6 +730,10 @@ "url": "https://api.github.com/gists/42/star", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -665,6 +769,14 @@ "url": "https://api.github.com/gists/42/star", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -700,6 +812,10 @@ "url": "https://api.github.com/gitignore/templates", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -735,6 +851,10 @@ "url": "https://api.github.com/gitignore/templates/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -795,6 +915,10 @@ "url": "https://api.github.com/issues?direction=desc&filter=all&labels=lorem&since=lorem&sort=created&state=open", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -830,6 +954,10 @@ "url": "https://api.github.com/legacy/issues/search/lorem/lorem/open/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -882,6 +1010,10 @@ "url": "https://api.github.com/legacy/repos/search/lorem?language=lorem&order=desc&sort=updated&start_page=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -917,6 +1049,10 @@ "url": "https://api.github.com/legacy/user/email/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -965,6 +1101,10 @@ "url": "https://api.github.com/legacy/user/search/lorem?order=desc&sort=updated&start_page=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1001,8 +1141,12 @@ "method": "POST", "headers": [ { - "value": "text/html", - "name": "accept" + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "text/html" }, { "name": "x-github-media-type", @@ -1044,12 +1188,12 @@ "method": "POST", "headers": [ { - "value": "text/plain", - "name": "content-type" + "name": "content-type", + "value": "text/plain" }, { - "value": "text/html", - "name": "accept" + "name": "accept", + "value": "text/html" }, { "name": "x-github-media-type", @@ -1086,6 +1230,10 @@ "url": "https://api.github.com/meta", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1121,6 +1269,10 @@ "url": "https://api.github.com/networks/lorem/lorem/events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1169,6 +1321,10 @@ "url": "https://api.github.com/notifications?all=true&participating=true&since=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1204,6 +1360,14 @@ "url": "https://api.github.com/notifications", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1243,6 +1407,10 @@ "url": "https://api.github.com/notifications/threads/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1278,6 +1446,14 @@ "url": "https://api.github.com/notifications/threads/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1313,6 +1489,14 @@ "url": "https://api.github.com/notifications/threads/42/subscription", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1348,6 +1532,10 @@ "url": "https://api.github.com/notifications/threads/42/subscription", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1383,6 +1571,14 @@ "url": "https://api.github.com/notifications/threads/42/subscription", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1422,6 +1618,10 @@ "url": "https://api.github.com/orgs/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1457,6 +1657,14 @@ "url": "https://api.github.com/orgs/lorem", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1496,6 +1704,10 @@ "url": "https://api.github.com/orgs/lorem/events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1556,6 +1768,10 @@ "url": "https://api.github.com/orgs/lorem/issues?direction=desc&filter=all&labels=lorem&since=lorem&sort=created&state=open", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1591,6 +1807,10 @@ "url": "https://api.github.com/orgs/lorem/members", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1626,6 +1846,14 @@ "url": "https://api.github.com/orgs/lorem/members/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1661,6 +1889,10 @@ "url": "https://api.github.com/orgs/lorem/members/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1696,6 +1928,10 @@ "url": "https://api.github.com/orgs/lorem/public_members", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1731,6 +1967,14 @@ "url": "https://api.github.com/orgs/lorem/public_members/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1766,6 +2010,10 @@ "url": "https://api.github.com/orgs/lorem/public_members/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1801,6 +2049,14 @@ "url": "https://api.github.com/orgs/lorem/public_members/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1841,6 +2097,10 @@ "url": "https://api.github.com/orgs/lorem/repos?type=all", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1876,6 +2136,14 @@ "url": "https://api.github.com/orgs/lorem/repos", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1915,6 +2183,10 @@ "url": "https://api.github.com/orgs/lorem/teams", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1950,6 +2222,14 @@ "url": "https://api.github.com/orgs/lorem/teams", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -1989,6 +2269,10 @@ "url": "https://api.github.com/rate_limit", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2024,6 +2308,14 @@ "url": "https://api.github.com/repos/lorem/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2059,6 +2351,10 @@ "url": "https://api.github.com/repos/lorem/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2094,6 +2390,14 @@ "url": "https://api.github.com/repos/lorem/lorem", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2133,6 +2437,10 @@ "url": "https://api.github.com/repos/lorem/lorem/assignees", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2168,6 +2476,10 @@ "url": "https://api.github.com/repos/lorem/lorem/assignees/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2203,6 +2515,10 @@ "url": "https://api.github.com/repos/lorem/lorem/branches", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2238,6 +2554,10 @@ "url": "https://api.github.com/repos/lorem/lorem/branches/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2273,6 +2593,10 @@ "url": "https://api.github.com/repos/lorem/lorem/collaborators", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2308,6 +2632,14 @@ "url": "https://api.github.com/repos/lorem/lorem/collaborators/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2343,6 +2675,10 @@ "url": "https://api.github.com/repos/lorem/lorem/collaborators/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2378,6 +2714,14 @@ "url": "https://api.github.com/repos/lorem/lorem/collaborators/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2413,6 +2757,10 @@ "url": "https://api.github.com/repos/lorem/lorem/comments", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2448,6 +2796,14 @@ "url": "https://api.github.com/repos/lorem/lorem/comments/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2483,6 +2839,10 @@ "url": "https://api.github.com/repos/lorem/lorem/comments/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2518,6 +2878,14 @@ "url": "https://api.github.com/repos/lorem/lorem/comments/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2578,6 +2946,10 @@ "url": "https://api.github.com/repos/lorem/lorem/commits?author=lorem&path=lorem&sha=lorem&since=lorem&until=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2614,7 +2986,11 @@ "method": "GET", "headers": [ { - "name": "x-github-media-type", + "name": "accept", + "value": "application/json" + }, + { + "name": "x-github-media-type", "value": "lorem" }, { @@ -2648,6 +3024,10 @@ "url": "https://api.github.com/repos/lorem/lorem/commits/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2683,6 +3063,10 @@ "url": "https://api.github.com/repos/lorem/lorem/commits/lorem/comments", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2718,6 +3102,14 @@ "url": "https://api.github.com/repos/lorem/lorem/commits/lorem/comments", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2757,6 +3149,10 @@ "url": "https://api.github.com/repos/lorem/lorem/compare/lorem...lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2792,6 +3188,14 @@ "url": "https://api.github.com/repos/lorem/lorem/contents/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2840,6 +3244,10 @@ "url": "https://api.github.com/repos/lorem/lorem/contents/lorem?path=lorem&ref=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2875,6 +3283,14 @@ "url": "https://api.github.com/repos/lorem/lorem/contents/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2919,6 +3335,10 @@ "url": "https://api.github.com/repos/lorem/lorem/contributors?anon=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2954,6 +3374,10 @@ "url": "https://api.github.com/repos/lorem/lorem/deployments", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -2989,6 +3413,14 @@ "url": "https://api.github.com/repos/lorem/lorem/deployments", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3028,6 +3460,10 @@ "url": "https://api.github.com/repos/lorem/lorem/deployments/42/statuses", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3063,6 +3499,14 @@ "url": "https://api.github.com/repos/lorem/lorem/deployments/42/statuses", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3102,6 +3546,10 @@ "url": "https://api.github.com/repos/lorem/lorem/downloads", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3137,6 +3585,14 @@ "url": "https://api.github.com/repos/lorem/lorem/downloads/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3172,6 +3628,10 @@ "url": "https://api.github.com/repos/lorem/lorem/downloads/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3207,6 +3667,10 @@ "url": "https://api.github.com/repos/lorem/lorem/events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3247,6 +3711,10 @@ "url": "https://api.github.com/repos/lorem/lorem/forks?sort=newes", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3282,6 +3750,14 @@ "url": "https://api.github.com/repos/lorem/lorem/forks", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3321,6 +3797,14 @@ "url": "https://api.github.com/repos/lorem/lorem/git/blobs", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3360,6 +3844,10 @@ "url": "https://api.github.com/repos/lorem/lorem/git/blobs/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3395,6 +3883,14 @@ "url": "https://api.github.com/repos/lorem/lorem/git/commits", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3434,6 +3930,10 @@ "url": "https://api.github.com/repos/lorem/lorem/git/commits/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3469,6 +3969,10 @@ "url": "https://api.github.com/repos/lorem/lorem/git/refs", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3504,6 +4008,14 @@ "url": "https://api.github.com/repos/lorem/lorem/git/refs", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3543,6 +4055,14 @@ "url": "https://api.github.com/repos/lorem/lorem/git/refs/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3578,6 +4098,10 @@ "url": "https://api.github.com/repos/lorem/lorem/git/refs/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3613,6 +4137,14 @@ "url": "https://api.github.com/repos/lorem/lorem/git/refs/lorem", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3652,6 +4184,14 @@ "url": "https://api.github.com/repos/lorem/lorem/git/tags", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3691,6 +4231,10 @@ "url": "https://api.github.com/repos/lorem/lorem/git/tags/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3726,6 +4270,14 @@ "url": "https://api.github.com/repos/lorem/lorem/git/trees", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3770,6 +4322,10 @@ "url": "https://api.github.com/repos/lorem/lorem/git/trees/lorem?recursive=42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3805,6 +4361,10 @@ "url": "https://api.github.com/repos/lorem/lorem/hooks", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3840,6 +4400,14 @@ "url": "https://api.github.com/repos/lorem/lorem/hooks", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3879,6 +4447,14 @@ "url": "https://api.github.com/repos/lorem/lorem/hooks/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3914,6 +4490,10 @@ "url": "https://api.github.com/repos/lorem/lorem/hooks/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3949,6 +4529,14 @@ "url": "https://api.github.com/repos/lorem/lorem/hooks/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -3988,6 +4576,14 @@ "url": "https://api.github.com/repos/lorem/lorem/hooks/42/tests", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4048,6 +4644,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues?direction=desc&filter=all&labels=lorem&since=lorem&sort=created&state=open", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4083,6 +4683,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4135,6 +4743,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/comments?direction=lorem&since=lorem&sort=created", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4170,6 +4782,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/comments/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4205,6 +4825,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/comments/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4240,6 +4864,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/comments/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4279,6 +4911,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4314,6 +4950,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/events/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4349,6 +4989,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4384,6 +5028,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4423,6 +5075,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/comments", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4458,6 +5114,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/comments", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4497,6 +5161,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4532,6 +5200,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/labels", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4567,6 +5243,10 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/labels", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4602,6 +5282,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/labels", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4641,6 +5329,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/labels", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4680,6 +5376,14 @@ "url": "https://api.github.com/repos/lorem/lorem/issues/42/labels/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4715,6 +5419,10 @@ "url": "https://api.github.com/repos/lorem/lorem/keys", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4750,6 +5458,14 @@ "url": "https://api.github.com/repos/lorem/lorem/keys", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4789,6 +5505,14 @@ "url": "https://api.github.com/repos/lorem/lorem/keys/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4824,6 +5548,10 @@ "url": "https://api.github.com/repos/lorem/lorem/keys/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4859,6 +5587,10 @@ "url": "https://api.github.com/repos/lorem/lorem/labels", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4894,6 +5626,14 @@ "url": "https://api.github.com/repos/lorem/lorem/labels", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4933,6 +5673,14 @@ "url": "https://api.github.com/repos/lorem/lorem/labels/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -4968,6 +5716,10 @@ "url": "https://api.github.com/repos/lorem/lorem/labels/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5003,6 +5755,14 @@ "url": "https://api.github.com/repos/lorem/lorem/labels/lorem", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5042,6 +5802,10 @@ "url": "https://api.github.com/repos/lorem/lorem/languages", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5077,6 +5841,14 @@ "url": "https://api.github.com/repos/lorem/lorem/merges", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5129,6 +5901,10 @@ "url": "https://api.github.com/repos/lorem/lorem/milestones?direction=lorem&sort=due_date&state=open", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5164,6 +5940,14 @@ "url": "https://api.github.com/repos/lorem/lorem/milestones", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5203,6 +5987,14 @@ "url": "https://api.github.com/repos/lorem/lorem/milestones/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5238,6 +6030,10 @@ "url": "https://api.github.com/repos/lorem/lorem/milestones/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5273,6 +6069,14 @@ "url": "https://api.github.com/repos/lorem/lorem/milestones/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5312,6 +6116,10 @@ "url": "https://api.github.com/repos/lorem/lorem/milestones/42/labels", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5360,6 +6168,10 @@ "url": "https://api.github.com/repos/lorem/lorem/notifications?all=true&participating=true&since=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5395,6 +6207,14 @@ "url": "https://api.github.com/repos/lorem/lorem/notifications", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5447,6 +6267,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls?base=lorem&head=lorem&state=open", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5482,6 +6306,14 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5534,6 +6366,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/comments?direction=lorem&since=lorem&sort=created", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5569,6 +6405,14 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/comments/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5604,6 +6448,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/comments/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5639,6 +6487,14 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/comments/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5678,6 +6534,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5713,6 +6573,14 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5752,6 +6620,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42/comments", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5787,6 +6659,14 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42/comments", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5826,6 +6706,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42/commits", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5861,6 +6745,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42/files", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5896,6 +6784,10 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42/merge", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5931,6 +6823,14 @@ "url": "https://api.github.com/repos/lorem/lorem/pulls/42/merge", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -5975,6 +6875,10 @@ "url": "https://api.github.com/repos/lorem/lorem/readme?ref=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6010,6 +6914,10 @@ "url": "https://api.github.com/repos/lorem/lorem/releases", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6045,6 +6953,14 @@ "url": "https://api.github.com/repos/lorem/lorem/releases", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6084,6 +7000,14 @@ "url": "https://api.github.com/repos/lorem/lorem/releases/assets/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6119,6 +7043,10 @@ "url": "https://api.github.com/repos/lorem/lorem/releases/assets/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6154,6 +7082,14 @@ "url": "https://api.github.com/repos/lorem/lorem/releases/assets/lorem", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6193,6 +7129,14 @@ "url": "https://api.github.com/repos/lorem/lorem/releases/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6228,6 +7172,10 @@ "url": "https://api.github.com/repos/lorem/lorem/releases/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6263,6 +7211,14 @@ "url": "https://api.github.com/repos/lorem/lorem/releases/lorem", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6302,6 +7258,10 @@ "url": "https://api.github.com/repos/lorem/lorem/releases/lorem/assets", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6337,6 +7297,10 @@ "url": "https://api.github.com/repos/lorem/lorem/stargazers", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6372,6 +7336,10 @@ "url": "https://api.github.com/repos/lorem/lorem/stats/code_frequency", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6407,6 +7375,10 @@ "url": "https://api.github.com/repos/lorem/lorem/stats/commit_activity", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6442,6 +7414,10 @@ "url": "https://api.github.com/repos/lorem/lorem/stats/contributors", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6477,6 +7453,10 @@ "url": "https://api.github.com/repos/lorem/lorem/stats/participation", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6512,6 +7492,10 @@ "url": "https://api.github.com/repos/lorem/lorem/stats/punch_card", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6547,6 +7531,10 @@ "url": "https://api.github.com/repos/lorem/lorem/statuses/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6582,6 +7570,14 @@ "url": "https://api.github.com/repos/lorem/lorem/statuses/lorem", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6621,6 +7617,10 @@ "url": "https://api.github.com/repos/lorem/lorem/subscribers", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6656,6 +7656,14 @@ "url": "https://api.github.com/repos/lorem/lorem/subscription", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6691,6 +7699,10 @@ "url": "https://api.github.com/repos/lorem/lorem/subscription", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6726,6 +7738,14 @@ "url": "https://api.github.com/repos/lorem/lorem/subscription", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6765,6 +7785,10 @@ "url": "https://api.github.com/repos/lorem/lorem/tags", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6800,6 +7824,10 @@ "url": "https://api.github.com/repos/lorem/lorem/teams", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6835,6 +7863,10 @@ "url": "https://api.github.com/repos/lorem/lorem/watchers", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6870,6 +7902,10 @@ "url": "https://api.github.com/repos/lorem/lorem/tarball/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6910,6 +7946,10 @@ "url": "https://api.github.com/repositories?since=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -6958,6 +7998,10 @@ "url": "https://api.github.com/search/code?order=desc&q=lorem&sort=indexed", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7006,6 +8050,10 @@ "url": "https://api.github.com/search/issues?order=desc&q=lorem&sort=updated", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7054,6 +8102,10 @@ "url": "https://api.github.com/search/repositories?order=desc&q=lorem&sort=stars", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7102,6 +8154,10 @@ "url": "https://api.github.com/search/users?order=desc&q=lorem&sort=followers", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7137,6 +8193,14 @@ "url": "https://api.github.com/teams/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7172,6 +8236,10 @@ "url": "https://api.github.com/teams/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7207,6 +8275,14 @@ "url": "https://api.github.com/teams/42", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7246,6 +8322,10 @@ "url": "https://api.github.com/teams/42/members", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7281,6 +8361,14 @@ "url": "https://api.github.com/teams/42/members/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7316,6 +8404,10 @@ "url": "https://api.github.com/teams/42/members/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7351,6 +8443,14 @@ "url": "https://api.github.com/teams/42/members/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7386,6 +8486,14 @@ "url": "https://api.github.com/teams/42/memberships/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7421,6 +8529,10 @@ "url": "https://api.github.com/teams/42/memberships/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7456,6 +8568,14 @@ "url": "https://api.github.com/teams/42/memberships/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7491,6 +8611,10 @@ "url": "https://api.github.com/teams/42/repos", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7526,6 +8650,14 @@ "url": "https://api.github.com/teams/42/repos/lorem/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7561,6 +8693,14 @@ "url": "https://api.github.com/teams/42/repos/lorem/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7596,6 +8736,10 @@ "url": "https://api.github.com/teams/42/repos/lorem/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7631,6 +8775,10 @@ "url": "https://api.github.com/user", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7666,6 +8814,14 @@ "url": "https://api.github.com/user", "method": "PATCH", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7705,6 +8861,14 @@ "url": "https://api.github.com/user/emails", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7745,8 +8909,8 @@ "method": "GET", "headers": [ { - "value": "application/vnd.github.v3", - "name": "accept" + "name": "accept", + "value": "application/vnd.github.v3" }, { "name": "x-github-media-type", @@ -7783,6 +8947,14 @@ "url": "https://api.github.com/user/emails", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7822,6 +8994,10 @@ "url": "https://api.github.com/user/followers", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7857,6 +9033,10 @@ "url": "https://api.github.com/user/following", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7892,6 +9072,14 @@ "url": "https://api.github.com/user/following/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7927,6 +9115,10 @@ "url": "https://api.github.com/user/following/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -7962,6 +9154,14 @@ "url": "https://api.github.com/user/following/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8022,6 +9222,10 @@ "url": "https://api.github.com/user/issues?direction=desc&filter=all&labels=lorem&since=lorem&sort=created&state=open", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8057,6 +9261,10 @@ "url": "https://api.github.com/user/keys", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8092,6 +9300,14 @@ "url": "https://api.github.com/user/keys", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8131,6 +9347,14 @@ "url": "https://api.github.com/user/keys/42", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8166,6 +9390,10 @@ "url": "https://api.github.com/user/keys/42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8201,6 +9429,10 @@ "url": "https://api.github.com/user/orgs", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8241,6 +9473,10 @@ "url": "https://api.github.com/user/repos?type=all", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8276,6 +9512,14 @@ "url": "https://api.github.com/user/repos", "method": "POST", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8324,6 +9568,10 @@ "url": "https://api.github.com/user/starred?direction=lorem&sort=created", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8359,6 +9607,14 @@ "url": "https://api.github.com/user/starred/lorem/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8394,6 +9650,10 @@ "url": "https://api.github.com/user/starred/lorem/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8429,6 +9689,14 @@ "url": "https://api.github.com/user/starred/lorem/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8464,6 +9732,10 @@ "url": "https://api.github.com/user/subscriptions", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8499,6 +9771,14 @@ "url": "https://api.github.com/user/subscriptions/lorem/lorem", "method": "DELETE", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8534,6 +9814,10 @@ "url": "https://api.github.com/user/subscriptions/lorem/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8569,6 +9853,14 @@ "url": "https://api.github.com/user/subscriptions/lorem/lorem", "method": "PUT", "headers": [ + { + "name": "content-type", + "value": "application/json" + }, + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8604,6 +9896,10 @@ "url": "https://api.github.com/user/teams", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8644,6 +9940,10 @@ "url": "https://api.github.com/users?since=42", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8679,6 +9979,10 @@ "url": "https://api.github.com/users/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8714,6 +10018,10 @@ "url": "https://api.github.com/users/lorem/events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8749,6 +10057,10 @@ "url": "https://api.github.com/users/lorem/events/orgs/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8784,6 +10096,10 @@ "url": "https://api.github.com/users/lorem/followers", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8819,6 +10135,10 @@ "url": "https://api.github.com/users/lorem/following/lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8859,6 +10179,10 @@ "url": "https://api.github.com/users/lorem/gists?since=lorem", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8894,6 +10218,10 @@ "url": "https://api.github.com/users/lorem/keys", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8929,6 +10257,10 @@ "url": "https://api.github.com/users/lorem/orgs", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8964,6 +10296,10 @@ "url": "https://api.github.com/users/lorem/received_events", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -8999,6 +10335,10 @@ "url": "https://api.github.com/users/lorem/received_events/public", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -9039,6 +10379,10 @@ "url": "https://api.github.com/users/lorem/repos?type=all", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -9074,6 +10418,10 @@ "url": "https://api.github.com/users/lorem/starred", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" @@ -9109,6 +10457,10 @@ "url": "https://api.github.com/users/lorem/subscriptions", "method": "GET", "headers": [ + { + "name": "accept", + "value": "application/json" + }, { "name": "x-github-media-type", "value": "lorem" diff --git a/packages/oas/tests/fixtures/params-form-data.swagger.result.json b/packages/oas/tests/fixtures/params-form-data.swagger.result.json index b9c91e13..4c50fc72 100644 --- a/packages/oas/tests/fixtures/params-form-data.swagger.result.json +++ b/packages/oas/tests/fixtures/params-form-data.swagger.result.json @@ -6,6 +6,10 @@ { "name": "content-type", "value": "multipart/form-data" + }, + { + "name": "accept", + "value": "application/json" } ], "postData": { diff --git a/packages/oas/tests/fixtures/params-header.swagger.result.json b/packages/oas/tests/fixtures/params-header.swagger.result.json index 2c5fec31..278f0a62 100644 --- a/packages/oas/tests/fixtures/params-header.swagger.result.json +++ b/packages/oas/tests/fixtures/params-header.swagger.result.json @@ -3,6 +3,10 @@ "bodySize": 0, "cookies": [], "headers": [ + { + "name": "accept", + "value": "*/*" + }, { "name": "x-numeric", "value": "42" diff --git a/packages/oas/tests/fixtures/params-path.swagger.result.json b/packages/oas/tests/fixtures/params-path.swagger.result.json index 53817ecc..73b8e3c6 100644 --- a/packages/oas/tests/fixtures/params-path.swagger.result.json +++ b/packages/oas/tests/fixtures/params-path.swagger.result.json @@ -2,7 +2,12 @@ { "bodySize": 0, "cookies": [], - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "headersSize": 0, "httpVersion": "HTTP/1.1", "method": "GET", @@ -12,7 +17,12 @@ { "bodySize": 0, "cookies": [], - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "headersSize": 0, "httpVersion": "HTTP/1.1", "method": "GET", @@ -22,7 +32,12 @@ { "bodySize": 0, "cookies": [], - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "headersSize": 0, "httpVersion": "HTTP/1.1", "method": "GET", @@ -32,7 +47,12 @@ { "bodySize": 0, "cookies": [], - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "headersSize": 0, "httpVersion": "HTTP/1.1", "method": "GET", @@ -42,7 +62,12 @@ { "bodySize": 0, "cookies": [], - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "headersSize": 0, "httpVersion": "HTTP/1.1", "method": "GET", diff --git a/packages/oas/tests/fixtures/params-query.swagger.result.json b/packages/oas/tests/fixtures/params-query.swagger.result.json index e9ef09d4..b749b455 100644 --- a/packages/oas/tests/fixtures/params-query.swagger.result.json +++ b/packages/oas/tests/fixtures/params-query.swagger.result.json @@ -8,7 +8,12 @@ ], "url": "http://petstore.swagger.io/v1/defaultArrayParam?p=lorem%2Clorem", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, @@ -23,7 +28,12 @@ ], "url": "http://petstore.swagger.io/v1/csvArrayParam?p=lorem%2Clorem", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, @@ -38,7 +48,12 @@ ], "url": "http://petstore.swagger.io/v1/ssvArrayParam?p=lorem+lorem", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, @@ -53,7 +68,12 @@ ], "url": "http://petstore.swagger.io/v1/tsvArrayParam?p=lorem%09lorem", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, @@ -68,7 +88,12 @@ ], "url": "http://petstore.swagger.io/v1/pipesArrayParam?p=lorem%7Clorem", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, @@ -87,7 +112,12 @@ ], "url": "http://petstore.swagger.io/v1/multiArrayParam?p=lorem&p=lorem", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, @@ -102,7 +132,12 @@ ], "url": "http://petstore.swagger.io/v1/enumArrayParam?p=a%2Ca", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, diff --git a/packages/oas/tests/fixtures/scheme-security.swagger.result.json b/packages/oas/tests/fixtures/scheme-security.swagger.result.json index eeec5c3f..6e5b5610 100644 --- a/packages/oas/tests/fixtures/scheme-security.swagger.result.json +++ b/packages/oas/tests/fixtures/scheme-security.swagger.result.json @@ -3,7 +3,12 @@ "queryString": [], "url": "http://petstore.swagger.io/v1/pets/security-is-not-exists", "method": "GET", - "headers": [], + "headers": [ + { + "name": "accept", + "value": "*/*" + } + ], "httpVersion": "HTTP/1.1", "cookies": [], "headersSize": 0, @@ -13,6 +18,10 @@ "bodySize": 0, "cookies": [], "headers": [ + { + "name": "accept", + "value": "*/*" + }, { "name": "authorization", "value": "Basic ZHVtbXkgYmluYXJ5IHNhbXBsZQA=" @@ -32,6 +41,10 @@ "bodySize": 0, "cookies": [], "headers": [ + { + "name": "accept", + "value": "*/*" + }, { "name": "x-api-key", "value": "ZHVtbXkgYmluYXJ5IHNhbXBsZQA=" @@ -51,6 +64,10 @@ "bodySize": 0, "cookies": [], "headers": [ + { + "name": "accept", + "value": "*/*" + }, { "name": "x-api-key", "value": "ZHVtbXkgYmluYXJ5IHNhbXBsZQA=" @@ -66,6 +83,10 @@ "bodySize": 0, "cookies": [], "headers": [ + { + "name": "accept", + "value": "*/*" + }, { "name": "x-api-key", "value": "ZHVtbXkgYmluYXJ5IHNhbXBsZQA=" diff --git a/packages/oas/tests/fixtures/xml-models.swagger.result.json b/packages/oas/tests/fixtures/xml-models.swagger.result.json index 9d8e99c2..d19e88ad 100644 --- a/packages/oas/tests/fixtures/xml-models.swagger.result.json +++ b/packages/oas/tests/fixtures/xml-models.swagger.result.json @@ -6,6 +6,10 @@ { "name": "content-type", "value": "application/xml" + }, + { + "name": "accept", + "value": "*/*" } ], "headersSize": 0,