Skip to content

Commit

Permalink
Fix code samples
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Mar 22, 2017
1 parent 520edd1 commit 69096d1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,19 +247,16 @@ exports.swaggerInlineExample = function(_lang) {
'parameters:',
' - (path) petId=2* {Integer} The pet ID',
' - (query) limit {Integer:int32} The number of resources to return',
'responses:',
' 200:',
' description: It works!',
];

var languages = {
'js': ['/*', ' * ', '*/', 'route.get("/pet/:petId", pet.show);'],
'java': ['/*', ' * ', '*/', 'public String getPet(id) {'],
'php': ['/*', ' * ', '*/', 'function showPet($id) {'],
'js': ['/*', ' * ', ' */', 'route.get("/pet/:petId", pet.show);'],
'java': ['/*', ' * ', ' */', 'public String getPet(id) {'],
'php': ['/*', ' * ', ' */', 'function showPet($id) {'],
'coffee': ['###', '', '###', "route.get '/pet/:petId', pet.show"],
'rb': ['=begin', '', '=end', "get '/pet/:petId' do"],
'py': ['"""', '', '"""', "def getPet(id):"],
'go': ['/*', ' * ', '*/', 'func getPet(id) {'],
'go': ['/*', ' * ', ' */', 'func getPet(id) {'],
};

_lang = _lang.toLowerCase();
Expand Down

0 comments on commit 69096d1

Please sign in to comment.