Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ module.exports = {
{{#operation}}
{{operationId}}: {
key: '{{operationId}}',
noun: '{{baseName}}',
noun: '{{#tags}}{{name}}{{/tags}}',
display: {
label: '{{operationId}}',
label: '{{summary}}',
description: '{{#notes}}{{.}}{{/notes}}',
hidden: false,
},
Expand Down
32 changes: 16 additions & 16 deletions samples/client/petstore/zapier/apis/PetApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const FormData = require('form-data');
module.exports = {
addPet: {
key: 'addPet',
noun: 'Pet',
noun: 'pet',
display: {
label: 'addPet',
label: 'Add a new pet to the store',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -47,9 +47,9 @@ module.exports = {
},
deletePet: {
key: 'deletePet',
noun: 'Pet',
noun: 'pet',
display: {
label: 'deletePet',
label: 'Deletes a pet',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -95,9 +95,9 @@ module.exports = {
},
findPetsByStatus: {
key: 'findPetsByStatus',
noun: 'Pet',
noun: 'pet',
display: {
label: 'findPetsByStatus',
label: 'Finds Pets by status',
description: 'Multiple status values can be provided with comma separated strings',
hidden: false,
},
Expand Down Expand Up @@ -138,9 +138,9 @@ module.exports = {
},
findPetsByTags: {
key: 'findPetsByTags',
noun: 'Pet',
noun: 'pet',
display: {
label: 'findPetsByTags',
label: 'Finds Pets by tags',
description: 'Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.',
hidden: false,
},
Expand Down Expand Up @@ -181,9 +181,9 @@ module.exports = {
},
getPetById: {
key: 'getPetById',
noun: 'Pet',
noun: 'pet',
display: {
label: 'getPetById',
label: 'Find pet by ID',
description: 'Returns a single pet',
hidden: false,
},
Expand Down Expand Up @@ -225,9 +225,9 @@ module.exports = {
},
updatePet: {
key: 'updatePet',
noun: 'Pet',
noun: 'pet',
display: {
label: 'updatePet',
label: 'Update an existing pet',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -265,9 +265,9 @@ module.exports = {
},
updatePetWithForm: {
key: 'updatePetWithForm',
noun: 'Pet',
noun: 'pet',
display: {
label: 'updatePetWithForm',
label: 'Updates a pet in the store with form data',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -318,9 +318,9 @@ module.exports = {
},
uploadFile: {
key: 'uploadFile',
noun: 'Pet',
noun: 'pet',
display: {
label: 'uploadFile',
label: 'uploads an image',
description: '',
hidden: false,
},
Expand Down
16 changes: 8 additions & 8 deletions samples/client/petstore/zapier/apis/StoreApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const utils = require('../utils/utils');
module.exports = {
deleteOrder: {
key: 'deleteOrder',
noun: 'Store',
noun: 'store',
display: {
label: 'deleteOrder',
label: 'Delete purchase order by ID',
description: 'For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors',
hidden: false,
},
Expand Down Expand Up @@ -48,9 +48,9 @@ module.exports = {
},
getInventory: {
key: 'getInventory',
noun: 'Store',
noun: 'store',
display: {
label: 'getInventory',
label: 'Returns pet inventories by status',
description: 'Returns a map of status codes to quantities',
hidden: false,
},
Expand Down Expand Up @@ -85,9 +85,9 @@ module.exports = {
},
getOrderById: {
key: 'getOrderById',
noun: 'Store',
noun: 'store',
display: {
label: 'getOrderById',
label: 'Find purchase order by ID',
description: 'For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions',
hidden: false,
},
Expand Down Expand Up @@ -129,9 +129,9 @@ module.exports = {
},
placeOrder: {
key: 'placeOrder',
noun: 'Store',
noun: 'store',
display: {
label: 'placeOrder',
label: 'Place an order for a pet',
description: '',
hidden: false,
},
Expand Down
32 changes: 16 additions & 16 deletions samples/client/petstore/zapier/apis/UserApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const utils = require('../utils/utils');
module.exports = {
createUser: {
key: 'createUser',
noun: 'User',
noun: 'user',
display: {
label: 'createUser',
label: 'Create user',
description: 'This can only be done by the logged in user.',
hidden: false,
},
Expand Down Expand Up @@ -44,9 +44,9 @@ module.exports = {
},
createUsersWithArrayInput: {
key: 'createUsersWithArrayInput',
noun: 'User',
noun: 'user',
display: {
label: 'createUsersWithArrayInput',
label: 'Creates list of users with given input array',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -87,9 +87,9 @@ module.exports = {
},
createUsersWithListInput: {
key: 'createUsersWithListInput',
noun: 'User',
noun: 'user',
display: {
label: 'createUsersWithListInput',
label: 'Creates list of users with given input array',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -130,9 +130,9 @@ module.exports = {
},
deleteUser: {
key: 'deleteUser',
noun: 'User',
noun: 'user',
display: {
label: 'deleteUser',
label: 'Delete user',
description: 'This can only be done by the logged in user.',
hidden: false,
},
Expand Down Expand Up @@ -173,9 +173,9 @@ module.exports = {
},
getUserByName: {
key: 'getUserByName',
noun: 'User',
noun: 'user',
display: {
label: 'getUserByName',
label: 'Get user by user name',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -217,9 +217,9 @@ module.exports = {
},
loginUser: {
key: 'loginUser',
noun: 'User',
noun: 'user',
display: {
label: 'loginUser',
label: 'Logs user into the system',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -268,9 +268,9 @@ module.exports = {
},
logoutUser: {
key: 'logoutUser',
noun: 'User',
noun: 'user',
display: {
label: 'logoutUser',
label: 'Logs out current logged in user session',
description: '',
hidden: false,
},
Expand Down Expand Up @@ -305,9 +305,9 @@ module.exports = {
},
updateUser: {
key: 'updateUser',
noun: 'User',
noun: 'user',
display: {
label: 'updateUser',
label: 'Updated user',
description: 'This can only be done by the logged in user.',
hidden: false,
},
Expand Down