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

85 lines
1.8 KiB
Plaintext
Raw Normal View History

<Location "/v2/user">
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 valid-user
</Limit>
</Location>
<Location "/v2/user/createWithArray">
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 valid-user
</Limit>
</Location>
<Location "/v2/user/createWithList">
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 valid-user
</Limit>
</Location>
<Location "/v2/user/*">
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 valid-user
</Limit>
<Limit GET>
Require valid-user
</Limit>
<Limit PUT>
Require valid-user
</Limit>
</Location>
<Location "/v2/user/login">
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 valid-user
</Limit>
</Location>
<Location "/v2/user/logout">
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 valid-user
</Limit>
</Location>