ok24601 / etoro-api

etoro trading REST API
ISC License
100 stars 48 forks source link

no mapping for Get /etoro-api/swagger-ui.html #39

Open MaxWvM opened 3 years ago

MaxWvM commented 3 years ago

when trying the 1.4 update i found that the api has no mapping JPY, 100256=DASHGBP, 100257=USDXUSD, 100263=GOLDBTC, 100269=BTCGRAM, 100270=GRAM, 100271=ETHGRAM, 100272=GRAMEUR} 2021-03-15 11:52:57.496 INFO 3812 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'messageBrokerTaskScheduler' 2021-03-15 11:52:57.553 INFO 3812 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'brokerChannelExecutor' 2021-03-15 11:52:57.612 INFO 3812 --- [ main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)] 2021-03-15 11:52:57.694 INFO 3812 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed 2021-03-15 11:52:57.704 INFO 3812 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s) 2021-03-15 11:52:57.760 INFO 3812 --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references 2021-03-15 11:52:58.440 INFO 3812 --- [ main] o.s.m.s.b.SimpleBrokerMessageHandler : Starting... 2021-03-15 11:52:58.441 INFO 3812 --- [ main] o.s.m.s.b.SimpleBrokerMessageHandler : BrokerAvailabilityEvent[available=true, SimpleBrokerMessageHandler [DefaultSubscriptionRegistry[cache[0 destination(s)], registry[0 sessions]]]] 2021-03-15 11:52:58.443 INFO 3812 --- [ main] o.s.m.s.b.SimpleBrokerMessageHandler : Started. 2021-03-15 11:52:58.483 INFO 3812 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8088 (http) with context path '/etoro-api' 2021-03-15 11:52:58.488 INFO 3812 --- [ main] ok.work.etoroapi.EtoroApiApplicationKt : Started EtoroApiApplicationKt in 17.334 seconds (JVM running for 17.966) 2021-03-15 11:53:17.326 INFO 3812 --- [nio-8088-exec-1] o.a.c.c.C.[.[localhost].[/etoro-api] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2021-03-15 11:53:17.327 INFO 3812 --- [nio-8088-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2021-03-15 11:53:17.345 INFO 3812 --- [nio-8088-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 11 ms 2021-03-15 11:53:17.374 WARN 3812 --- [nio-8088-exec-1] o.s.web.servlet.PageNotFound : No mapping for GET /etoro-api/swagger-ui.html 2021-03-15 11:53:57.553 INFO 3812 --- [MessageBroker-1] o.s.w.s.c.WebSocketMessageBrokerStats : WebSocketSession[0 current WS(0)-HttpStream(0)-HttpPoll(0), 0 total, 0 closed abnormally (0 connect failure, 0 send limit, 0 transport error)], stompSubProtocol[processed CONNECT(0)-CONNECTED(0)-DISCONNECT(0)], stompBrokerRelay[null], inboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], outboundChannel[pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0], sockJsScheduler[pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 0]

mzeeshanilyas commented 3 years ago

Remove @EnableWebMvc annotation from file CorsConfig Location : \src\main\kotlin\ok\work\etoroapi\config\CorsConfig.kt