Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace OpenApi\Examples\SwaggerSpec\PetstoreSimple; use OpenApi\Annotations as ..
Decoded Output download
<?php
namespace OpenApi\Examples\SwaggerSpec\PetstoreSimple;
use OpenApi\Annotations as OA;
class SimplePetsController
{
/**
* @OA\Get(
* path="/pets",
* description="Returns all pets from the system that the user has access to",
* operationId="findPets",
* tags={"store"},
* @OA\Parameter(
* name="tags",
* in="query",
* description="tags to filter by",
* required=false,
* @OA\Schema(
* type="array",
* @OA\Items(type="string"),
* ),
* style="form"
* ),
* @OA\Parameter(
* name="limit",
* in="query",
* description="maximum number of results to return",
* required=false,
* @OA\Schema(
* type="integer",
* format="int32"
* )
* ),
* @OA\Response(
* response=200,
* description="pet response",
* @OA\JsonContent(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* @OA\XmlContent(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* ),
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\JsonContent(ref="#/components/schemas/ErrorModel"),
* @OA\XmlContent(ref="#/components/schemas/ErrorModel"),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* )
* )
* )
*/
public function findPets()
{
}
/**
* @OA\Get(
* path="/pets/{id}",
* description="Returns a user based on a single ID, if the user does not have access to the pet",
* operationId="findPetById",
* tags={"store"},
* @OA\Parameter(
* description="ID of pet to fetch",
* in="path",
* name="id",
* required=true,
* @OA\Schema(
* type="integer",
* format="int64",
* )
* ),
* @OA\Response(
* response=200,
* description="pet response",
* @OA\JsonContent(ref="#/components/schemas/Pet"),
* @OA\MediaType(
* mediaType="application/xml",
* @OA\Schema(ref="#/components/schemas/Pet")
* ),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(ref="#/components/schemas/Pet")
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(ref="#/components/schemas/Pet")
* ),
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\JsonContent(ref="#/components/schemas/ErrorModel"),
* @OA\MediaType(
* mediaType="application/xml",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* )
* )
*/
public function findPetById()
{
}
/**
* @OA\Post(
* path="/pets",
* operationId="addPet",
* description="Creates a new pet in the store. Duplicates are allowed",
* tags={"store"},
* @OA\RequestBody(
* description="Pet to add to the store",
* required=true,
* @OA\MediaType(
* mediaType="multipart/form-data",
* @OA\Schema(ref="#/components/schemas/NewPet")
* )
* ),
* @OA\Response(
* response=200,
* description="pet response",
* @OA\JsonContent(ref="#/components/schemas/Pet")
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\JsonContent(ref="#/components/schemas/ErrorModel")
* )
* )
*/
public function addPet()
{
}
/**
* @OA\Delete(
* path="/pets/{id}",
* description="deletes a single pet based on the ID supplied",
* operationId="deletePet",
* tags={"store"},
* @OA\Parameter(
* description="ID of pet to delete",
* in="path",
* name="id",
* required=true,
* @OA\Schema(
* format="int64",
* type="integer"
* )
* ),
* @OA\Response(
* response=204,
* description="pet deleted"
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* )
* )
*/
public function deletePet()
{
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace OpenApi\Examples\SwaggerSpec\PetstoreSimple;
use OpenApi\Annotations as OA;
class SimplePetsController
{
/**
* @OA\Get(
* path="/pets",
* description="Returns all pets from the system that the user has access to",
* operationId="findPets",
* tags={"store"},
* @OA\Parameter(
* name="tags",
* in="query",
* description="tags to filter by",
* required=false,
* @OA\Schema(
* type="array",
* @OA\Items(type="string"),
* ),
* style="form"
* ),
* @OA\Parameter(
* name="limit",
* in="query",
* description="maximum number of results to return",
* required=false,
* @OA\Schema(
* type="integer",
* format="int32"
* )
* ),
* @OA\Response(
* response=200,
* description="pet response",
* @OA\JsonContent(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* @OA\XmlContent(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(
* type="array",
* @OA\Items(ref="#/components/schemas/Pet")
* ),
* ),
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\JsonContent(ref="#/components/schemas/ErrorModel"),
* @OA\XmlContent(ref="#/components/schemas/ErrorModel"),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* )
* )
* )
*/
public function findPets()
{
}
/**
* @OA\Get(
* path="/pets/{id}",
* description="Returns a user based on a single ID, if the user does not have access to the pet",
* operationId="findPetById",
* tags={"store"},
* @OA\Parameter(
* description="ID of pet to fetch",
* in="path",
* name="id",
* required=true,
* @OA\Schema(
* type="integer",
* format="int64",
* )
* ),
* @OA\Response(
* response=200,
* description="pet response",
* @OA\JsonContent(ref="#/components/schemas/Pet"),
* @OA\MediaType(
* mediaType="application/xml",
* @OA\Schema(ref="#/components/schemas/Pet")
* ),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(ref="#/components/schemas/Pet")
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(ref="#/components/schemas/Pet")
* ),
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\JsonContent(ref="#/components/schemas/ErrorModel"),
* @OA\MediaType(
* mediaType="application/xml",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* @OA\MediaType(
* mediaType="text/xml",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* @OA\MediaType(
* mediaType="text/html",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* ),
* )
* )
*/
public function findPetById()
{
}
/**
* @OA\Post(
* path="/pets",
* operationId="addPet",
* description="Creates a new pet in the store. Duplicates are allowed",
* tags={"store"},
* @OA\RequestBody(
* description="Pet to add to the store",
* required=true,
* @OA\MediaType(
* mediaType="multipart/form-data",
* @OA\Schema(ref="#/components/schemas/NewPet")
* )
* ),
* @OA\Response(
* response=200,
* description="pet response",
* @OA\JsonContent(ref="#/components/schemas/Pet")
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\JsonContent(ref="#/components/schemas/ErrorModel")
* )
* )
*/
public function addPet()
{
}
/**
* @OA\Delete(
* path="/pets/{id}",
* description="deletes a single pet based on the ID supplied",
* operationId="deletePet",
* tags={"store"},
* @OA\Parameter(
* description="ID of pet to delete",
* in="path",
* name="id",
* required=true,
* @OA\Schema(
* format="int64",
* type="integer"
* )
* ),
* @OA\Response(
* response=204,
* description="pet deleted"
* ),
* @OA\Response(
* response="default",
* description="unexpected error",
* @OA\Schema(ref="#/components/schemas/ErrorModel")
* )
* )
*/
public function deletePet()
{
}
}
Function Calls
None |
Stats
MD5 | f931fa8ed05807a6871aeef06bf8ac8b |
Eval Count | 0 |
Decode Time | 118 ms |