Tout ce que vous devez savoir sur les sièges pour douche senior
Prendre une douche peut devenir un défi pour les personnes âgées ou à mobilité réduite. C'est pourquoi les sièges pour douche senior sont devenus un accessoire indispensable pour assurer leur sécurité et leur confort. Dans cet article, nous vous guide
{ "author_login": "noahdietz", "type": "pr_timeline", "title": "feat: generate apiary blueprint from proto protos", "url": "https://github.com/googleapis/gapic-generator-typescript/pull/590"
}
{ "type": "file", "path": "typescript/test/unit/apiary/blueprint.ts"
}
1 // Copyright 2021 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 15 import * as assert from 'assert';
16 import * as blueprint from '../../../src/apiary/blueprint';
17 18 describe('blueprint', () => {
19 it('should generate a blueprint', () => {
20 const bp = blueprint.generateBlueprint({
21 info: {
22 title: 'Test API',
23 version: '0.1.0',
24 description: 'This is a test API',
25 },
26 resources: {
27 products: {
28 methods: {
29 list: {
30 path: '/products',
31 description: 'Lists all products',
32 method: 'GET',
33 request: {
34 body: false,
35 queryParams: ['name', 'category'],
36 },
37 response: {
38 body: {
39 type: 'object',
40 properties: {
41 products: {
42 type: 'array',
43 items: {
44 type: 'object',
45 properties: {
46 id: {type: 'string'},
47 name: {type: 'string'},
48 category: {type: 'string'},
49 price: {type: 'number'},
50 },
51 },
52 },
53 },
54 },
55 },
56 },
57 },
58 },
59 },
60 });
61 assert.deepStrictEqual(bp, {
62 format: 'v10',
63 named: 'Test API',
64 version: '0.1.0',
65 metadata: {
66 description: 'This is a test API',
67 },
68 routes: [
69 {
70 name: 'List products',
71 description: 'Lists all products',
72 authenticated: false,
73 method: 'GET',
74 uri: '/products',
75 parameters: {
76 query: ['name', 'category'],
77 },
78 requests: [
79 {
80 body: {
81 schema: {},
82 example: {},
83 },
84 },
85 ],
86 responses: [
87 {
88 status: 200,
89 body: {
90 schema: {
91 properties: {
92 products: 'array