Skip to content
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

Make uRouting API compatible with Swagger Spec #29

Open
1 of 4 tasks
miere opened this issue Oct 9, 2014 · 2 comments
Open
1 of 4 tasks

Make uRouting API compatible with Swagger Spec #29

miere opened this issue Oct 9, 2014 · 2 comments

Comments

@miere
Copy link

miere commented Oct 9, 2014

Swagger is the a broadly used API definition Specification which should help Kikaha developers to expose its REST APIs.

Definition of done:

  • Expose the Swagger model and Swagger UI
  • Allow Developers incorporate Swagger UI through webjars (depends on Allow "webjar" deployments #227)
  • Generate classes from the swagger.json file.
  • Generate the swagger.json from Kikaha endpoints and related POJOs
@miere miere modified the milestone: 1.7.0 Feb 8, 2016
@miere miere removed the 1 - Ready label Feb 8, 2016
@miere miere modified the milestone: 2.0.0 Apr 6, 2016
@miere miere modified the milestones: 2.0.0, 2.1.0 May 2, 2016
@miere miere modified the milestones: 2.1.0, Help wanted May 24, 2017
@jmilagroso
Copy link

jmilagroso commented Jun 13, 2017

  1. Add to kikaha web project pom.xml:
        <dependency>
            <groupId>org.webjars</groupId>
            <artifactId>swagger-ui</artifactId>
            <version>3.0.10</version>
        </dependency>
  1. Go to Swagger Editor, Online Editor (http://editor.swagger.io/#/) to create swagger.json (File -> Download as JSON), or use the sample swagger json.

  2. Put the swagger JSON file to kikaha web project resources directory.

  3. Create SwaggerResource to handle:

    • /api-docs/model
    • /api-docs/ui
  4. Create SwaggerUIResource to handle:

    • /webjars/*
  5. Open browser,

http://localhost:<kikaha port>/api-docs/ui

Please feel free to improve as needed.

@miere
Copy link
Author

miere commented Jun 14, 2017

Hi @jmilagroso
Thank you for another great suggestion.

It seems like a very pragmatic approach, indeed, and I really think there could be an extra module that exposes, automatically, your API model.

Based on your suggestion, and a feedback I received from @sixman9 a few months ago, I've updated this issue with a DOD (definition of done). I believe I can deliver the first 2 items from DOD yet on 2.1.0 version.

Also, I've opened the #227 issue which should help you with webjars.

The last two items on the DOD will be finished on the 2.2.0 version.

Regards!

@miere miere modified the milestone: Backlog Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

2 participants