forked from loafle/openapi-generator-original
Zapier generator api template improvement (#16121)
* minor zapier api template fixes * updated samples * added zapier validation action * readded zapier beta tags * fixed zapier validation action * updated samples * improved zapier api names * updated samples * fixed zapier noun and label
This commit is contained in:
parent
28e822d870
commit
178b8a7737
@ -15,9 +15,9 @@ module.exports = {
|
|||||||
{{#operation}}
|
{{#operation}}
|
||||||
{{operationId}}: {
|
{{operationId}}: {
|
||||||
key: '{{operationId}}',
|
key: '{{operationId}}',
|
||||||
noun: '{{baseName}}',
|
noun: '{{#tags}}{{name}}{{/tags}}',
|
||||||
display: {
|
display: {
|
||||||
label: '{{operationId}}',
|
label: '{{summary}}',
|
||||||
description: '{{#notes}}{{.}}{{/notes}}',
|
description: '{{#notes}}{{.}}{{/notes}}',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
|
@ -7,9 +7,9 @@ const FormData = require('form-data');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
addPet: {
|
addPet: {
|
||||||
key: 'addPet',
|
key: 'addPet',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'addPet',
|
label: 'Add a new pet to the store',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -47,9 +47,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
deletePet: {
|
deletePet: {
|
||||||
key: 'deletePet',
|
key: 'deletePet',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'deletePet',
|
label: 'Deletes a pet',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -95,9 +95,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
findPetsByStatus: {
|
findPetsByStatus: {
|
||||||
key: 'findPetsByStatus',
|
key: 'findPetsByStatus',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'findPetsByStatus',
|
label: 'Finds Pets by status',
|
||||||
description: 'Multiple status values can be provided with comma separated strings',
|
description: 'Multiple status values can be provided with comma separated strings',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -138,9 +138,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
findPetsByTags: {
|
findPetsByTags: {
|
||||||
key: 'findPetsByTags',
|
key: 'findPetsByTags',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'findPetsByTags',
|
label: 'Finds Pets by tags',
|
||||||
description: 'Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.',
|
description: 'Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -181,9 +181,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
getPetById: {
|
getPetById: {
|
||||||
key: 'getPetById',
|
key: 'getPetById',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'getPetById',
|
label: 'Find pet by ID',
|
||||||
description: 'Returns a single pet',
|
description: 'Returns a single pet',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -225,9 +225,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
updatePet: {
|
updatePet: {
|
||||||
key: 'updatePet',
|
key: 'updatePet',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'updatePet',
|
label: 'Update an existing pet',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -265,9 +265,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
updatePetWithForm: {
|
updatePetWithForm: {
|
||||||
key: 'updatePetWithForm',
|
key: 'updatePetWithForm',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'updatePetWithForm',
|
label: 'Updates a pet in the store with form data',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -318,9 +318,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
uploadFile: {
|
uploadFile: {
|
||||||
key: 'uploadFile',
|
key: 'uploadFile',
|
||||||
noun: 'Pet',
|
noun: 'pet',
|
||||||
display: {
|
display: {
|
||||||
label: 'uploadFile',
|
label: 'uploads an image',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
|
@ -5,9 +5,9 @@ const utils = require('../utils/utils');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
deleteOrder: {
|
deleteOrder: {
|
||||||
key: 'deleteOrder',
|
key: 'deleteOrder',
|
||||||
noun: 'Store',
|
noun: 'store',
|
||||||
display: {
|
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',
|
description: 'For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -48,9 +48,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
getInventory: {
|
getInventory: {
|
||||||
key: 'getInventory',
|
key: 'getInventory',
|
||||||
noun: 'Store',
|
noun: 'store',
|
||||||
display: {
|
display: {
|
||||||
label: 'getInventory',
|
label: 'Returns pet inventories by status',
|
||||||
description: 'Returns a map of status codes to quantities',
|
description: 'Returns a map of status codes to quantities',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -85,9 +85,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
getOrderById: {
|
getOrderById: {
|
||||||
key: 'getOrderById',
|
key: 'getOrderById',
|
||||||
noun: 'Store',
|
noun: 'store',
|
||||||
display: {
|
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',
|
description: 'For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -129,9 +129,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
placeOrder: {
|
placeOrder: {
|
||||||
key: 'placeOrder',
|
key: 'placeOrder',
|
||||||
noun: 'Store',
|
noun: 'store',
|
||||||
display: {
|
display: {
|
||||||
label: 'placeOrder',
|
label: 'Place an order for a pet',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
|
@ -5,9 +5,9 @@ const utils = require('../utils/utils');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
createUser: {
|
createUser: {
|
||||||
key: 'createUser',
|
key: 'createUser',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'createUser',
|
label: 'Create user',
|
||||||
description: 'This can only be done by the logged in user.',
|
description: 'This can only be done by the logged in user.',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -44,9 +44,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
createUsersWithArrayInput: {
|
createUsersWithArrayInput: {
|
||||||
key: 'createUsersWithArrayInput',
|
key: 'createUsersWithArrayInput',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'createUsersWithArrayInput',
|
label: 'Creates list of users with given input array',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -87,9 +87,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
createUsersWithListInput: {
|
createUsersWithListInput: {
|
||||||
key: 'createUsersWithListInput',
|
key: 'createUsersWithListInput',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'createUsersWithListInput',
|
label: 'Creates list of users with given input array',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -130,9 +130,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
deleteUser: {
|
deleteUser: {
|
||||||
key: 'deleteUser',
|
key: 'deleteUser',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'deleteUser',
|
label: 'Delete user',
|
||||||
description: 'This can only be done by the logged in user.',
|
description: 'This can only be done by the logged in user.',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -173,9 +173,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
getUserByName: {
|
getUserByName: {
|
||||||
key: 'getUserByName',
|
key: 'getUserByName',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'getUserByName',
|
label: 'Get user by user name',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -217,9 +217,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
loginUser: {
|
loginUser: {
|
||||||
key: 'loginUser',
|
key: 'loginUser',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'loginUser',
|
label: 'Logs user into the system',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -268,9 +268,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
logoutUser: {
|
logoutUser: {
|
||||||
key: 'logoutUser',
|
key: 'logoutUser',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'logoutUser',
|
label: 'Logs out current logged in user session',
|
||||||
description: '',
|
description: '',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
@ -305,9 +305,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
updateUser: {
|
updateUser: {
|
||||||
key: 'updateUser',
|
key: 'updateUser',
|
||||||
noun: 'User',
|
noun: 'user',
|
||||||
display: {
|
display: {
|
||||||
label: 'updateUser',
|
label: 'Updated user',
|
||||||
description: 'This can only be done by the logged in user.',
|
description: 'This can only be done by the logged in user.',
|
||||||
hidden: false,
|
hidden: false,
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user