-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Apache Config Generator for HTTP Basic Authentication #5800
Conversation
- Added Restbed Generator
remove unused folder
Getting latest commits from original
- Added Json processing functions to model - Removed unnused code from restbed codegen class - Added response header processing to api template
Changed it to respect alphabetical order
Made the string joining java 7 compatible
Added samples
Update from master
updating master
added missing apache2 config gen in services file
To see that everything works correctly i temporarily chose isOAuth instead of isBasic, to see if the idea works. In the final version, this will be changed to isBasic in the template. |
|
||
@Override | ||
public CodegenType getTag() { | ||
return CodegenType.OTHER; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about introducing a new type "CONFIG" instead of using OTHER?
import io.swagger.codegen.DefaultCodegen; | ||
import io.swagger.codegen.SupportingFile; | ||
|
||
public class Apache2Confgen extends DefaultCodegen implements CodegenConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about naming the class as "Apache2ConfigCodegen" to make it consistent with other generators (clients, servers, documentations)?
@stkrwork thanks for the PR. I wonder if you can add the samples under "samples/config/petstore/apache2" so that we can get an idea of what the output looks like. |
The samples are currently generated without the additional properties set. |
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
and./bin/security/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates)2.3.0
branch for breaking (non-backward compatible) changes.Description of the PR
This is a work in progress implementation for an Apache Configuration Generation for protecting paths in an api. It only generates the location component of the apache configuration, not the whole configuration