diff --git a/test/snapshots/blueprint.test.ts.md b/test/snapshots/blueprint.test.ts.md index ac832ab..c462fc1 100644 --- a/test/snapshots/blueprint.test.ts.md +++ b/test/snapshots/blueprint.test.ts.md @@ -1031,6 +1031,164 @@ Generated by [AVA](https://avajs.dev). path: '/transport/air/planes', subroutes: [], }, + { + endpoints: [ + { + codeSamples: [ + { + code: { + javascript: { + request: 'await seam.deprecated.undocumented.endpoint()', + request_syntax: 'javascript', + response: 'void', + response_syntax: 'javascript', + title: 'JavaScript', + }, + php: { + request: `deprecated->undocumented->endpoint()`, + request_syntax: 'php', + response: 'null', + response_syntax: 'php', + title: 'PHP', + }, + python: { + request: 'seam.deprecated.undocumented.endpoint()', + request_syntax: 'python', + response: 'None', + response_syntax: 'python', + title: 'Python', + }, + ruby: { + request: 'seam.deprecated.undocumented.endpoint()', + request_syntax: 'ruby', + response: 'nil', + response_syntax: 'ruby', + title: 'Ruby', + }, + seam_cli: { + request: 'seam deprecated undocumented endpoint ', + request_syntax: 'bash', + response: 'void', + response_syntax: 'json', + title: 'Seam CLI', + }, + }, + description: 'This is a deprecated and undocumented endpoint', + request: { + parameters: {}, + path: '/deprecated/undocumented/endpoint', + }, + response: { + body: {}, + }, + title: 'Deprecated and undocumented endpoint', + }, + ], + deprecationMessage: '', + description: '', + isDeprecated: true, + isUndocumented: true, + name: 'endpoint', + path: '/deprecated/undocumented/endpoint', + request: { + methods: [ + 'GET', + ], + parameters: [], + preferredMethod: 'GET', + semanticMethod: 'GET', + }, + response: { + description: 'Deprecated and undocumented endpoint', + responseType: 'void', + }, + title: 'Deprecated and undocumented endpoint', + }, + { + codeSamples: [ + { + code: { + javascript: { + request: 'await seam.deprecated.undocumented.endpoint()', + request_syntax: 'javascript', + response: 'void', + response_syntax: 'javascript', + title: 'JavaScript', + }, + php: { + request: `deprecated->undocumented->endpoint()`, + request_syntax: 'php', + response: 'null', + response_syntax: 'php', + title: 'PHP', + }, + python: { + request: 'seam.deprecated.undocumented.endpoint()', + request_syntax: 'python', + response: 'None', + response_syntax: 'python', + title: 'Python', + }, + ruby: { + request: 'seam.deprecated.undocumented.endpoint()', + request_syntax: 'ruby', + response: 'nil', + response_syntax: 'ruby', + title: 'Ruby', + }, + seam_cli: { + request: 'seam deprecated undocumented endpoint ', + request_syntax: 'bash', + response: 'void', + response_syntax: 'json', + title: 'Seam CLI', + }, + }, + description: 'This is a deprecated and undocumented endpoint', + request: { + parameters: {}, + path: '/deprecated/undocumented/endpoint', + }, + response: { + body: {}, + }, + title: 'Deprecated and undocumented endpoint', + }, + ], + deprecationMessage: '', + description: '', + isDeprecated: true, + isUndocumented: true, + name: 'endpoint', + path: '/deprecated/undocumented/endpoint', + request: { + methods: [ + 'GET', + ], + parameters: [], + preferredMethod: 'GET', + semanticMethod: 'GET', + }, + response: { + description: 'Deprecated and undocumented endpoint', + responseType: 'void', + }, + title: 'Deprecated and undocumented endpoint', + }, + ], + isDeprecated: true, + isUndocumented: true, + name: 'undocumented', + namespace: { + isDeprecated: false, + isUndocumented: false, + path: '/deprecated', + }, + path: '/deprecated/undocumented', + subroutes: [], + }, ], title: 'Foo', } @@ -2162,6 +2320,184 @@ Generated by [AVA](https://avajs.dev). path: '/transport/air/planes', subroutes: [], }, + { + endpoints: [ + { + codeSamples: [ + { + code: { + javascript: { + request: `// javascript␊ + await seam.deprecated.undocumented.endpoint()`, + request_syntax: 'javascript', + response: `// javascript␊ + void`, + response_syntax: 'javascript', + title: 'JavaScript', + }, + php: { + request: `// php␊ + deprecated->undocumented->endpoint()`, + request_syntax: 'php', + response: `// php␊ + null`, + response_syntax: 'php', + title: 'PHP', + }, + python: { + request: `// python␊ + seam.deprecated.undocumented.endpoint()`, + request_syntax: 'python', + response: `// python␊ + None`, + response_syntax: 'python', + title: 'Python', + }, + ruby: { + request: `// ruby␊ + seam.deprecated.undocumented.endpoint()`, + request_syntax: 'ruby', + response: `// ruby␊ + nil`, + response_syntax: 'ruby', + title: 'Ruby', + }, + seam_cli: { + request: `// bash␊ + seam deprecated undocumented endpoint `, + request_syntax: 'bash', + response: `// json␊ + void`, + response_syntax: 'json', + title: 'Seam CLI', + }, + }, + description: 'This is a deprecated and undocumented endpoint', + request: { + parameters: {}, + path: '/deprecated/undocumented/endpoint', + }, + response: { + body: {}, + }, + title: 'Deprecated and undocumented endpoint', + }, + ], + deprecationMessage: '', + description: '', + isDeprecated: true, + isUndocumented: true, + name: 'endpoint', + path: '/deprecated/undocumented/endpoint', + request: { + methods: [ + 'GET', + ], + parameters: [], + preferredMethod: 'GET', + semanticMethod: 'GET', + }, + response: { + description: 'Deprecated and undocumented endpoint', + responseType: 'void', + }, + title: 'Deprecated and undocumented endpoint', + }, + { + codeSamples: [ + { + code: { + javascript: { + request: `// javascript␊ + await seam.deprecated.undocumented.endpoint()`, + request_syntax: 'javascript', + response: `// javascript␊ + void`, + response_syntax: 'javascript', + title: 'JavaScript', + }, + php: { + request: `// php␊ + deprecated->undocumented->endpoint()`, + request_syntax: 'php', + response: `// php␊ + null`, + response_syntax: 'php', + title: 'PHP', + }, + python: { + request: `// python␊ + seam.deprecated.undocumented.endpoint()`, + request_syntax: 'python', + response: `// python␊ + None`, + response_syntax: 'python', + title: 'Python', + }, + ruby: { + request: `// ruby␊ + seam.deprecated.undocumented.endpoint()`, + request_syntax: 'ruby', + response: `// ruby␊ + nil`, + response_syntax: 'ruby', + title: 'Ruby', + }, + seam_cli: { + request: `// bash␊ + seam deprecated undocumented endpoint `, + request_syntax: 'bash', + response: `// json␊ + void`, + response_syntax: 'json', + title: 'Seam CLI', + }, + }, + description: 'This is a deprecated and undocumented endpoint', + request: { + parameters: {}, + path: '/deprecated/undocumented/endpoint', + }, + response: { + body: {}, + }, + title: 'Deprecated and undocumented endpoint', + }, + ], + deprecationMessage: '', + description: '', + isDeprecated: true, + isUndocumented: true, + name: 'endpoint', + path: '/deprecated/undocumented/endpoint', + request: { + methods: [ + 'GET', + ], + parameters: [], + preferredMethod: 'GET', + semanticMethod: 'GET', + }, + response: { + description: 'Deprecated and undocumented endpoint', + responseType: 'void', + }, + title: 'Deprecated and undocumented endpoint', + }, + ], + isDeprecated: true, + isUndocumented: true, + name: 'undocumented', + namespace: { + isDeprecated: false, + isUndocumented: false, + path: '/deprecated', + }, + path: '/deprecated/undocumented', + subroutes: [], + }, ], title: 'Foo', } diff --git a/test/snapshots/blueprint.test.ts.snap b/test/snapshots/blueprint.test.ts.snap index bdb0ce5..054305f 100644 Binary files a/test/snapshots/blueprint.test.ts.snap and b/test/snapshots/blueprint.test.ts.snap differ