chore: improve demo

This commit is contained in:
Alex Varchuk 2021-05-26 19:33:47 +03:00
parent 6acdba5f7b
commit d525e6d289
3 changed files with 19 additions and 11 deletions

View File

@ -61,6 +61,8 @@ externalDocs:
tags: tags:
- name: pet - name: pet
description: Everything about your Pets description: Everything about your Pets
- name: webhooks
description: Everything about your Webhooks
- name: store - name: store
description: Access to Petstore orders description: Access to Petstore orders
- name: user - name: user
@ -78,6 +80,7 @@ x-tagGroups:
tags: tags:
- pet - pet
- store - store
- webhooks
- name: User Management - name: User Management
tags: tags:
- user - user
@ -896,13 +899,13 @@ paths:
description: successful operation description: successful operation
components: components:
pathItems: pathItems:
catsWebhook: webhooks:
put: put:
summary: Get a cat details after update summary: Get a cat details after update
description: Get a cat details after update description: Get a cat details after update
operationId: updatedCat operationId: updatedCat
tags: tags:
- pet - webhooks
requestBody: requestBody:
description: Information about cat in the system description: Information about cat in the system
content: content:
@ -917,7 +920,7 @@ components:
description: Info about new cat description: Info about new cat
operationId: createdCat operationId: createdCat
tags: tags:
- pet - webhooks
requestBody: requestBody:
description: Information about cat in the system description: Information about cat in the system
content: content:
@ -1231,7 +1234,7 @@ webhooks:
description: Information about a new pet in the systems description: Information about a new pet in the systems
operationId: newPet operationId: newPet
tags: tags:
- pet - webhooks
requestBody: requestBody:
content: content:
application/json: application/json:
@ -1241,6 +1244,6 @@ webhooks:
"200": "200":
description: Return a 200 status to indicate that the data was received successfully description: Return a 200 status to indicate that the data was received successfully
myWebhook: myWebhook:
$ref: '#/components/pathItems/catsWebhook' $ref: '#/components/pathItems/webhooks'
description: Overriding description description: Overriding description
summary: Overriding summary summary: Overriding summary

View File

@ -6,7 +6,7 @@ describe('Menu', () => {
it('should have valid items count', () => { it('should have valid items count', () => {
cy.get('.menu-content') cy.get('.menu-content')
.find('li') .find('li')
.should('have.length', 36); .should('have.length', 37);
}); });
it('should sync active menu items while scroll', () => { it('should sync active menu items while scroll', () => {

View File

@ -14,7 +14,7 @@ Object {
}, },
}, },
"pathItems": Object { "pathItems": Object {
"catsWebhook": Object { "webhooks": Object {
"post": Object { "post": Object {
"description": "Info about new cat", "description": "Info about new cat",
"operationId": "createdCat", "operationId": "createdCat",
@ -35,7 +35,7 @@ Object {
}, },
"summary": "Create new cat", "summary": "Create new cat",
"tags": Array [ "tags": Array [
"pet", "webhooks",
], ],
}, },
"put": Object { "put": Object {
@ -58,7 +58,7 @@ Object {
}, },
"summary": "Get a cat details after update", "summary": "Get a cat details after update",
"tags": Array [ "tags": Array [
"pet", "webhooks",
], ],
}, },
}, },
@ -1784,6 +1784,10 @@ culpa qui officia deserunt mollit anim id est laborum.
"description": "Everything about your Pets", "description": "Everything about your Pets",
"name": "pet", "name": "pet",
}, },
Object {
"description": "Everything about your Webhooks",
"name": "webhooks",
},
Object { Object {
"description": "Access to Petstore orders", "description": "Access to Petstore orders",
"name": "store", "name": "store",
@ -1807,7 +1811,7 @@ culpa qui officia deserunt mollit anim id est laborum.
], ],
"webhooks": Object { "webhooks": Object {
"myWebhook": Object { "myWebhook": Object {
"$ref": "#/components/pathItems/catsWebhook", "$ref": "#/components/pathItems/webhooks",
"description": "Overriding description", "description": "Overriding description",
"summary": "Overriding summary", "summary": "Overriding summary",
}, },
@ -1831,7 +1835,7 @@ culpa qui officia deserunt mollit anim id est laborum.
}, },
"summary": "New pet", "summary": "New pet",
"tags": Array [ "tags": Array [
"pet", "webhooks",
], ],
}, },
}, },
@ -1842,6 +1846,7 @@ culpa qui officia deserunt mollit anim id est laborum.
"tags": Array [ "tags": Array [
"pet", "pet",
"store", "store",
"webhooks",
], ],
}, },
Object { Object {