Created by: ybelenko
Just found more enhanced .htaccess
in Slim 4 skeleton.
Ref: https://github.com/slimphp/Slim-Skeleton/blob/037cfa2b6885301fc32a5b18a00a251a534aac81/public/.htaccess
Also checked it locally(HTTP 501 response is totally fine and expected with fresh build):
$ curl --request GET \
> --url http://phpslim4.test/v2/pet/5 \
> --header 'api_key: apiKey' \
> --header 'x-openapiserver-mock: ping' \
> --header 'Accept: application/json'
{
"message": "501 Not Implemented",
"exception": [
{
"type": "Slim\\Exception\\HttpNotImplementedException",
"code": 501,
"message": "How about extending AbstractPetApi by OpenAPIServer\\Api\\PetApi class implementing getPetById as a GET method?",
"file": "/Users/ybelenko/Sites/openapi-generator/samples/server/petstore/php-slim4/lib/App/RegisterRoutes.php",
"line": 844
}
]
}
cc @jebentier, @dkarlovi, @mandrean, @jfastnacht, @renepardon
PR checklist
-
Read the contribution guidelines. -
Pull Request title clearly describes the work in the pull request and Pull Request description provides details about how to validate the work. Missing information here may result in delayed response from the community. -
Run the following to build the project and update samples: ./mvnw clean package ./bin/generate-samples.sh ./bin/utils/export_docs_generators.sh
./bin/generate-samples.sh bin/configs/java*
. For Windows users, please run the script in Git BASH. -
File the PR against the correct branch: master
(5.3.0),6.0.x
-
If your PR is targeting a particular programming language, @mention the technical committee members, so they are more likely to review the pull request.