authentication in nodejs

2018-02-13 Thread Ramya
how to configure the username and password for authentication?

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Swagger js codegen on how to generate models

2018-02-09 Thread Ramya kadimetla
Hi Vijay,

I am using swagger-ant-task.0.0.2 jar for generating swagger.json file for
ant project.

Thanks & Regards,
Ramya

On Thu, Feb 8, 2018 at 10:47 PM, vijay kumar <vijay.solit...@gmail.com>
wrote:

> Hi Ramya,
>
> Sorry about the late reply.
>
> Like swagger.json i am not sure can help me help understand how to
> generate the .json files. Are you using swagger-js-codgen or any other tool.
>
> Thank you
> Vijay
>
> On Tue, Feb 6, 2018 at 10:37 AM, Ramya kadimetla <
> kadimetla.ra...@gmail.com> wrote:
>
>> Hi Vijay,
>>
>> I am sorry, I haven't used swagger codegen.
>> Even I am new to swagger, since two weeks, I am working on swagger and I
>> was able to generate swagger.json for ant project.
>>
>> Thanks & Regards,
>> Ramya
>>
>> On Fri, Feb 2, 2018 at 10:27 AM, vijay kumar <vijay.solit...@gmail.com>
>> wrote:
>>
>>> Hi ,
>>>
>>> I am using *swagger js codegen* to generate source code in *nodejs* .it
>>> works superb.
>>>
>>> However i have question ,
>>>
>>> If we use *swagger codegen* and use *java* lang , models and handlers
>>> gets generated as part of stubs generation but in swagger js codegen it
>>> does not generate any models.
>>>
>>> can you please guide me if we can generate models in swagger js codegen
>>> .This will actually help when there is an change in api it will
>>> automatically generate the models without we manually changing.
>>>
>>> Kindly suggest if any other approach is available for nodejs.
>>>
>>> Thank you
>>> Vijay
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Swagger" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to swagger-swaggersocket+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Swagger" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/swagger-swaggersocket/s3dLDEF-Ho8/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> swagger-swaggersocket+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>  Kool Vj
>
> --
> You received this message because you are subscribed to the Google Groups
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Host UI components with go-swagger

2018-02-05 Thread Ramya kadimetla
Hi Ali,

You can download Swagger UI code.
Update the path of your yaml file in index.html.

Thanks & Regards,
Ramya

On Tue, Feb 6, 2018 at 4:56 AM, Al Izi <capitan.vrun...@gmail.com> wrote:

> We've got some json REST API implemented with *go-swagger*. Now we would
> like to add some simple web UI (several static html, js and css files)
> hosted by the same http server. The implementation is fairly simple.
>
> Swagger YAML:
> /ui/html/{path}:
> get:
>  ...
>  produces:
>- text/html
>
>
> /ui/js/{path}:
> get:
>  ...
>  produces:
>- application/javascript
>
>
> /ui/css/{path}:
> get:
>  ...
>  produces:
>- text/css
>
> and GO handler:
>
> api.GetHTML = operations.GetHTMLFunc(
>func(params operations.GetHTMLParams) middleware.Responder {
>bytes, _ := ioutil.ReadFile(params.Path)
>return operations.NewGetHTMLOK().WithPayload(string(bytes))
>})
> ... the same for JS and CSS ...
>
>
> Unfortunately this looks ugly as hell. Each content type needs its own
> path on the server. Is there a better way? Would it be possible to modify
> reply content type by the header?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Swagger js codegen on how to generate models

2018-02-05 Thread Ramya kadimetla
Hi Vijay,

I am sorry, I haven't used swagger codegen.
Even I am new to swagger, since two weeks, I am working on swagger and I
was able to generate swagger.json for ant project.

Thanks & Regards,
Ramya

On Fri, Feb 2, 2018 at 10:27 AM, vijay kumar <vijay.solit...@gmail.com>
wrote:

> Hi ,
>
> I am using *swagger js codegen* to generate source code in *nodejs* .it
> works superb.
>
> However i have question ,
>
> If we use *swagger codegen* and use *java* lang , models and handlers
> gets generated as part of stubs generation but in swagger js codegen it
> does not generate any models.
>
> can you please guide me if we can generate models in swagger js codegen
> .This will actually help when there is an change in api it will
> automatically generate the models without we manually changing.
>
> Kindly suggest if any other approach is available for nodejs.
>
> Thank you
> Vijay
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Swagger ANT Task generating empty JSON

2018-02-01 Thread Ramya
Also, can you share the  jars that you have in SwaggerAntLib.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Swagger ANT Task generating empty JSON

2018-01-31 Thread Ramya
Does your java file import
  import com.wordnik.swagger.annotations.Api;
  or 
  import io.swagger.annotations.Api;

It will work with import com.wordnik.swagger.annotations.Api;.

Can you share me the template file you are using. For me, it is generating 
the json file but in different format.

On Monday, 19 June 2017 09:37:42 UTC+5:30, Thammaiah Manadamada wrote:
>
> Hi All,
>
> I have used swagger-ant-task 0.0.2 version in my project i have added 
> task to my ant file as shown below
>
>  value="C:/Users/tmb/Documents/NetBeansProjects/LIBRARY" />  id="swagger.classpath">   name="lib/tools.jar"/>name="*/**"/>name="*/**"/>description="Define the swagger task.">  classname="com.github.cstroe.swagger.docgen.SwaggerTask" 
> classpathref="swagger.classpath"/>   name="swaggertask.first" description="A typical swagger task definition." 
> depends="swaggertask.init">
> com.thammaiah.swager.resource 
> http,https www.example.com:8080 
> /api  Swagger Maven Plugin Sample 
> v1 This is a sample for 
> swagger-maven-plugin 
> http://www.github.com/kongchen/swagger-maven-plugin 
>  http://www.apache.org/licenses/LICENSE-2.0.html 
> Apache 2.0
> ${basedir} 
> true  
> description="All tests." depends="swaggertask.first"/>
>
> I have created a netbeans web project to do the same.My resource classes 
> are under src/java/com/thammaiah/swagger/resource. However when i run the 
> target to generate swagger it is generating a swagger which do not have api 
> details.
> That is it is not able to find the resource with @Api annotation.
>
> JSON Generated
>
> {
>   "swagger" : "2.0",
>   "info" : {
> "description" : "This is a sample for swagger-maven-plugin",
> "version" : "v1",
> "title" : "Swagger Maven Plugin Sample",
> "termsOfService" : "
> http://www.github.com/kongchen/swagger-maven-plugin;,
> "license" : {
>   "name" : "Apache 2.0",
>   "url" : "http://www.apache.org/licenses/LICENSE-2.0.html;
> }
>   },
>   "host" : "www.example.com:8080",
>   "basePath" : "/api",
>   "schemes" : [ "http", "https" ]
> } 
>
> NOTE: I have tried maven plugin it creates a proper expected JSON. But 
> could not achieve using ant.
>
> Please let me know if i am missing something. 
>
> Regards,
> Thammaiah
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Java project - Swagger with ant

2018-01-31 Thread Ramya

  Hi Everyone,

  We would like to use Swagger for Restful call documentation.
  Our project uses ant to build, for this I have to use 
Swagger-ant-task.jar  ( https://github.com/cstroe/swagger-ant-task ).

swagger-ant-task jar internally uses swagger-maven-plugin of kongchen 
(https://mvnrepository.com/artifact/com.github.kongchen/swagger-maven-plugin) 
and  swagger-  core_2.10-1.3.7 of wordnik 
(https://mvnrepository.com/artifact/com.wordnik/swagger-core).

  I was able to generate service.json with the below templates :


   -   markdown.mustache
   -   strapdown.html.hbs


   But these json files format is different from swagger.json.

   Could you please provide me Swagger template or suggest me any other 
alternative to generate swagger.json file at build time for Ant project.

  Thanks,
  Ramya

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Swagger.

2017-09-15 Thread Ramya c
Hi,

I need to learn the swagger.io.

I have REST API's already. But need to convert them to swagger. How can i 
do it???


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.