Produced by Araxis Merge on 12/20/2017 5:56:05 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Genisis_2.0_v6_bld6.zip\Source Code\TS\Service\term-service\src\main\java\gov\va\genisis2\swagger | SwaggerConfig.java | Thu Dec 14 19:57:17 2017 UTC |
| 2 | Genisis_2.0_v6_bld6.zip\Source Code\TS\Service\term-service\src\main\java\gov\va\genisis2\swagger | SwaggerConfig.java | Wed Dec 20 20:29:39 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 208 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.genis is2.swagge r; | |
| 2 | ||
| 3 | import org .springfra mework.bea ns.factory .annotatio n.Value; | |
| 4 | import org .springfra mework.con text.annot ation.Bean ; | |
| 5 | import org .springfra mework.con text.annot ation.Conf iguration; | |
| 6 | import org .springfra mework.con text.annot ation.Prop ertySource ; | |
| 7 | ||
| 8 | import spr ingfox.doc umentation .builders. ApiInfoBui lder; | |
| 9 | import spr ingfox.doc umentation .builders. PathSelect ors; | |
| 10 | import spr ingfox.doc umentation .builders. RequestHan dlerSelect ors; | |
| 11 | import spr ingfox.doc umentation .service.A piInfo; | |
| 12 | import spr ingfox.doc umentation .service.T ag; | |
| 13 | import spr ingfox.doc umentation .spi.Docum entationTy pe; | |
| 14 | import spr ingfox.doc umentation .spring.we b.plugins. Docket; | |
| 15 | import spr ingfox.doc umentation .swagger2. annotation s.EnableSw agger2; | |
| 16 | ||
| 17 | /** | |
| 18 | * Swagger Config is used to cr eate a Doc ket bean a nd | |
| 19 | * its sel ect() meth od returns an instan ce of ApiS electorBui lder, | |
| 20 | * which p rovides a way to con trol the e ndpoints e xposed by Swagger. | |
| 21 | * | |
| 22 | * Predica tes for se lection of RequestHa ndlers can be config ured with | |
| 23 | * the hel p of Reque stHandlerS electors a nd PathSel ectors. Us ing any() for | |
| 24 | * both wi ll make do cumentatio n for your entire AP I availabl e through Swagger. | |
| 25 | * | |
| 26 | * @author P II | |
| 27 | * | |
| 28 | */ | |
| 29 | @Configura tion | |
| 30 | @EnableSwa gger2 | |
| 31 | @PropertyS ource({ "c lasspath:s wagger.pro perties" } ) | |
| 32 | public cla ss Swagger Config { | |
| 33 | ||
| 34 | @V alue("${ge nisis.ts.a pi.title}" ) | |
| 35 | pr ivate Stri ng genisis TsApiTitle ; | |
| 36 | ||
| 37 | @V alue("${ge nisis.ts.a pi.desc}") | |
| 38 | pr ivate Stri ng genisis TsApiDesc; | |
| 39 | ||
| 40 | @V alue("${ge nisis.ts.a pi.verion} ") | |
| 41 | pr ivate Stri ng genisis TsApiVersi on; | |
| 42 | ||
| 43 | @V alue("${ge nisis.ts.c oncept.res t.tag.name }") | |
| 44 | pr ivate Stri ng concept TagName; | |
| 45 | ||
| 46 | @V alue("${ge nisis.ts.c oncept.res t.tag.desc }") | |
| 47 | pr ivate Stri ng concept TagDesc; | |
| 48 | ||
| 49 | @V alue("${ge nisis.ts.b ookmark.re st.tag.nam e}") | |
| 50 | pr ivate Stri ng bookmar ksTagName; | |
| 51 | ||
| 52 | @V alue("${ge nisis.ts.b ookmark.re st.tag.des c}") | |
| 53 | pr ivate Stri ng bookmar ksTagDesc; | |
| 54 | ||
| 55 | @V alue("${ge nisis.ts.m apping.res t.tag.name }") | |
| 56 | pr ivate Stri ng mapping TagName; | |
| 57 | ||
| 58 | @V alue("${ge nisis.ts.m apping.res t.tag.desc }") | |
| 59 | pr ivate Stri ng mapping TagDesc; | |
| 60 | ||
| 61 | @V alue("${ge nisis.ts.c li.rest.ta g.name}") | |
| 62 | pr ivate Stri ng cliTagN ame; | |
| 63 | ||
| 64 | @V alue("${ge nisis.ts.c li.rest.ta g.desc}") | |
| 65 | pr ivate Stri ng cliTagD esc; | |
| 66 | ||
| 67 | @B ean | |
| 68 | pu blic Docke t api() { | |
| 69 | Tag conceptTag = new Tag (conceptTa gName, con ceptTagDes c); | |
| 70 | Tag bookmarkTa g = new Ta g(bookmark sTagName, bookmarksT agDesc); | |
| 71 | Tag mappingTag = new Tag (mappingTa gName, map pingTagDes c); | |
| 72 | Tag cliTag = n ew Tag(cli TagName, c liTagDesc) ; | |
| 73 | ||
| 74 | retu rn new Doc ket(Docume ntationTyp e.SWAGGER_ 2) | |
| 75 | .select( ) | |
| 76 | .apis(Re questHandl erSelector s.any()) | |
| 77 | .paths(P athSelecto rs.any()). build() | |
| 78 | .tags(co nceptTag, new Tag[] { bookmark Tag, mappi ngTag, cli Tag }) | |
| 79 | .apiInfo (metadata( )); | |
| 80 | } | |
| 81 | ||
| 82 | pr ivate ApiI nfo metada ta() { | |
| 83 | retu rn new Api InfoBuilde r() | |
| 84 | .title(g enisisTsAp iTitle) | |
| 85 | .descrip tion(genis isTsApiDes c) | |
| 86 | .version (genisisTs ApiVersion ) | |
| 87 | .build() ; | |
| 88 | } | |
| 89 | ||
| 90 | pu blic void setUserTag Name(Strin g userTagN ame) { | |
| 91 | this .conceptTa gName = us erTagName; | |
| 92 | } | |
| 93 | ||
| 94 | pu blic void setBookmar ksTagName( String boo kmarksTagN ame) { | |
| 95 | this .bookmarks TagName = bookmarksT agName; | |
| 96 | } | |
| 97 | ||
| 98 | pu blic void setMapping TagName(St ring mappi ngTagName) { | |
| 99 | this .mappingTa gName = ma ppingTagNa me; | |
| 100 | } | |
| 101 | ||
| 102 | pu blic void setCliTagN ame(String cliTagNam e) { | |
| 103 | this .cliTagNam e = cliTag Name; | |
| 104 | } | |
| 105 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.