Please note that route definitions may contain arbitrary code including 
calling methods that produce route fragments.
The only way to introspect the definitions is by using macros, but still I 
don't think it's possible to do correctly it in all cases.

Cheers,
Rafał

W dniu środa, 6 lipca 2016 07:51:34 UTC+2 użytkownik Yadukrishnan K napisał:
>
> Thanks.
>
> I had already read about the akka-http support for swagger. But was 
> wondering, if akka-http itself provide any methods to get the defined 
> api's. 
>
> On Monday, July 4, 2016 at 8:33:53 AM UTC+5:30, Siva Kommuri wrote:
>>
>> Hmm, by introspection - not sure. 
>>
>> You may want to look at swagger support for akka http. The definitions 
>> are explicit though. 
>>
>> Best wishes,
>> Siva on 6+
>>
>> On Jun 29, 2016, at 11:44 PM, Yadukrishnan K <yada...@gmail.com> wrote:
>>
>> Thats just akka-http example right. What I want is to get all the defined 
>> urls/services at runtime so that I can make a registry of all the services 
>> I have.
>>
>> On Thursday, June 30, 2016 at 11:29:48 AM UTC+5:30, Siva Kommuri wrote:
>>>
>>> Yes, please see: 
>>> http://doc.akka.io/docs/akka/2.4.7/scala/http/routing-dsl/index.html#long-example
>>>  
>>>
>>>
>>> On June 29, 2016 at 2:35:39 AM, K Yadukrishnan (yada...@gmail.com) 
>>> wrote:
>>>
>>> This may be a very stupid question.
>>>
>>> Is it possible to get all the defined rest services urls in a akka-http 
>>> based application ?
>>>
>>> For eg: Assume that I have Employee Rest, Department Rest, Company Rest 
>>> etc defined, each with say 5 types of urls.
>>>
>>> GET /employees
>>> GET /employees/{id}
>>> POST /employees
>>> GET /departments
>>> GET /departments/{id}
>>>
>>> etc
>>> etc
>>>
>>> In another application(say reporting-engine), I want to list out all the 
>>> possible rest url's for use. So the client can use all the available rest 
>>> services and build the required reports.
>>>
>>> Is there anyway in akka-http, that I can get all the defined urls and 
>>> their Methods ?
>>> --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: 
>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>> >>>>>>>>>> Search the archives: 
>>> https://groups.google.com/group/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google 
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> -- 
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to akka-user+...@googlegroups.com.
>> To post to this group, send email to akka...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to