-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Swagger 2 #1
base: master
Are you sure you want to change the base?
Conversation
The purpose suggests you are trying to add Swagger to the OneBusAway RESTFul API (a noble cause!) but the implementation is on the transit-data-federation, which is an internal API that likely doesn't require documentation. I suggest you repeat these steps for onebusaway-api-webapp and try again. Then, if its still not working, post details of what isn't working and perhaps I can help. |
Hi, @sheldonabrown I attempted to integrate Swagger into another module, 'oba-api-webapp,' and encountered issues during the Spring initialization process of a new servlet that I created for Swagger2: 2024-01-23 08:15:26,460 INFO [FrameworkServlet.java:525] : Initializing Servlet 'swagger' |
However, when I removed the modifications from web.xml and swagger-servlet.xml and run api-webapp, I encountered communication in the browser : I searched for a solution on how to fix this, and people suggested that the problem might be related to Spring Security, but , I don't see any Spring Security configuration in OBA. @sheldonabrown Where we can add somthing like this:
|
The OBA API uses the ApiKeyInterceptor to enforce security. It can be disabled, or perhaps you can configure swagger to add an API key? |
I am attempting to integrate Swagger2 following the instructions outlined in the following link: https://www.baeldung.com/swagger-2-documentation-for-spring-rest-api. However, I am encountering some issues; it doesn't seem to be working.
As an experiment, I attempted the same steps with the "oba-api-webapp" module.