Skip to content

Commit

Permalink
Update Swagger and run Generate for added 'tours' property in Media o…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
Freddie Millman committed Oct 4, 2019
1 parent 398729c commit b04a647
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/Models/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ class Media extends SwaggerModel
*/
protected $floorplans;

/**
* Zero or more 360 tour URLs to an external service. Any 360 tour source can be supplied
* and used as a link
*
* @var string[]
*/
protected $tours;


/**
* @return Photo[]
Expand Down Expand Up @@ -136,4 +144,39 @@ public function addFloorplan($floorplan)

return $this;
}


/**
* @return string[]
*/
public function getTours()
{
return $this->tours;
}


/**
* @param string[] $tours
*
* @return $this
*/
public function setTours(array $tours)
{
$this->tours = $tours;

return $this;
}


/**
* @param string $tour
*
* @return $this
*/
public function addTour($tour)
{
$this->tours[] = $tour;

return $this;
}
}
7 changes: 7 additions & 0 deletions swagger/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,13 @@ definitions:
These will be downloaded and stored on StuRents' system
items:
type: string
tours:
type: array
description: |
Zero or more 360 tour URLs to an external service. Any 360 tour source can be supplied
and used as a link
items:
type: string
Photo:
type: object
properties:
Expand Down

0 comments on commit b04a647

Please sign in to comment.