openapi-generator/samples/config/petstore/apache2/PetApi.conf

79 lines
1.7 KiB
Plaintext
Raw Normal View History

<Location "/v2/pet">
AuthBasicProvider file
AuthUserFile "/var/www/html/htpwd"
AuthGroupFile "/var/www/html/groups"
AuthType basic
AuthName "api"
<LimitExcept GET POST PUT DELETE>
Require valid-user
</LimitExcept>
<Limit POST>
Require group write:pets
Require group read:pets
</Limit>
<Limit PUT>
Require group write:pets
Require group read:pets
</Limit>
</Location>
<Location "/v2/pet/*">
AuthBasicProvider file
AuthUserFile "/var/www/html/htpwd"
AuthGroupFile "/var/www/html/groups"
AuthType basic
AuthName "api"
<LimitExcept GET POST PUT DELETE>
Require valid-user
</LimitExcept>
<Limit DELETE>
Require group write:pets
Require group read:pets
</Limit>
<Limit POST>
Require group write:pets
Require group read:pets
</Limit>
</Location>
<Location "/v2/pet/findByStatus">
AuthBasicProvider file
AuthUserFile "/var/www/html/htpwd"
AuthGroupFile "/var/www/html/groups"
AuthType basic
AuthName "api"
<LimitExcept GET POST PUT DELETE>
Require valid-user
</LimitExcept>
<Limit GET>
Require group write:pets
Require group read:pets
</Limit>
</Location>
<Location "/v2/pet/findByTags">
AuthBasicProvider file
AuthUserFile "/var/www/html/htpwd"
AuthGroupFile "/var/www/html/groups"
AuthType basic
AuthName "api"
<LimitExcept GET POST PUT DELETE>
Require valid-user
</LimitExcept>
<Limit GET>
Require group write:pets
Require group read:pets
</Limit>
</Location>
<Location "/v2/pet/*/uploadImage">
AuthBasicProvider file
AuthUserFile "/var/www/html/htpwd"
AuthGroupFile "/var/www/html/groups"
AuthType basic
AuthName "api"
<LimitExcept GET POST PUT DELETE>
Require valid-user
</LimitExcept>
<Limit POST>
Require group write:pets
Require group read:pets
</Limit>
</Location>