-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
php generator option rrepository baseURL in readme file
- Loading branch information
1 parent
466f53b
commit b35f10c
Showing
10 changed files
with
279 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
modules/swagger-codegen/src/test/resources/2_0/readme149.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
swagger: '2.0' | ||
info: | ||
description: This is a simple API | ||
version: 1.0.0 | ||
title: Simple Inventory API | ||
contact: | ||
email: you@your-company.com | ||
license: | ||
name: Apache 2.0 | ||
url: 'http://www.apache.org/licenses/LICENSE-2.0.html' | ||
tags: | ||
- name: admins | ||
description: Secured Admin-only calls | ||
- name: developers | ||
description: Operations available to regular developers | ||
paths: | ||
/inventory: | ||
get: | ||
tags: | ||
- developers | ||
summary: searches inventory | ||
operationId: searchInventory | ||
description: | | ||
By passing in the appropriate options, you can search for | ||
available inventory in the system | ||
produces: | ||
- application/json | ||
parameters: | ||
- in: query | ||
name: searchString | ||
description: pass an optional search string for looking up inventory | ||
required: false | ||
type: string | ||
- in: query | ||
name: skip | ||
description: number of records to skip for pagination | ||
type: integer | ||
format: int32 | ||
minimum: 0 | ||
- in: query | ||
name: limit | ||
description: maximum number of records to return | ||
type: integer | ||
format: int32 | ||
minimum: 0 | ||
maximum: 50 | ||
responses: | ||
'200': | ||
description: search results matching criteria | ||
schema: | ||
type: array | ||
items: | ||
$ref: '#/definitions/InventoryItem' | ||
'400': | ||
description: bad input parameter | ||
post: | ||
tags: | ||
- admins | ||
summary: adds an inventory item | ||
operationId: addInventory | ||
description: Adds an item to the system | ||
consumes: | ||
- application/json | ||
produces: | ||
- application/json | ||
parameters: | ||
- in: body | ||
name: inventoryItem | ||
description: Inventory item to add | ||
schema: | ||
$ref: '#/definitions/InventoryItem' | ||
responses: | ||
'201': | ||
description: item created | ||
'400': | ||
description: 'invalid input, object invalid' | ||
'409': | ||
description: an existing item already exists | ||
definitions: | ||
InventoryItem: | ||
type: object | ||
required: | ||
- id | ||
- name | ||
- manufacturer | ||
- releaseDate | ||
properties: | ||
id: | ||
type: string | ||
format: uuid | ||
example: d290f1ee-6c54-4b01-90e6-d701748f0851 | ||
name: | ||
type: string | ||
example: Widget Adapter | ||
releaseDate: | ||
type: string | ||
format: date-time | ||
example: '2016-08-29T09:12:33.001Z' | ||
manufacturer: | ||
$ref: '#/definitions/Manufacturer' | ||
Manufacturer: | ||
required: | ||
- name | ||
properties: | ||
name: | ||
type: string | ||
example: ACME Corporation | ||
homePage: | ||
type: string | ||
format: url | ||
example: 'https://www.acme-corp.com' | ||
phone: | ||
type: string | ||
example: 408-867-5309 |
Oops, something went wrong.