├── .gitignore
├── LICENSE
├── README.md
├── activator.properties
├── build.sbt
├── project
├── build.properties
└── plugins.sbt
├── src
├── main
│ ├── resources
│ │ ├── application.conf
│ │ ├── logback.xml
│ │ ├── sql
│ │ │ ├── h2-schema.sql
│ │ │ └── postgresql-schema.sql
│ │ └── swagger
│ │ │ ├── css
│ │ │ ├── print.css
│ │ │ ├── reset.css
│ │ │ ├── screen.css
│ │ │ ├── style.css
│ │ │ └── typography.css
│ │ │ ├── fonts
│ │ │ ├── DroidSans-Bold.ttf
│ │ │ └── DroidSans.ttf
│ │ │ ├── images
│ │ │ ├── collapse.gif
│ │ │ ├── expand.gif
│ │ │ ├── explorer_icons.png
│ │ │ ├── favicon-16x16.png
│ │ │ ├── favicon-32x32.png
│ │ │ ├── favicon.ico
│ │ │ ├── logo_small.png
│ │ │ ├── pet_store_api.png
│ │ │ ├── throbber.gif
│ │ │ └── wordnik_api.png
│ │ │ ├── index.html
│ │ │ ├── lang
│ │ │ ├── en.js
│ │ │ ├── es.js
│ │ │ ├── fr.js
│ │ │ ├── geo.js
│ │ │ ├── it.js
│ │ │ ├── ja.js
│ │ │ ├── pl.js
│ │ │ ├── pt.js
│ │ │ ├── ru.js
│ │ │ ├── tr.js
│ │ │ ├── translator.js
│ │ │ └── zh-cn.js
│ │ │ ├── lib
│ │ │ ├── backbone-min.js
│ │ │ ├── handlebars-2.0.0.js
│ │ │ ├── highlight.9.1.0.pack.js
│ │ │ ├── highlight.9.1.0.pack_extended.js
│ │ │ ├── jquery-1.8.0.min.js
│ │ │ ├── jquery.ba-bbq.min.js
│ │ │ ├── jquery.slideto.min.js
│ │ │ ├── jquery.wiggle.min.js
│ │ │ ├── js-yaml.min.js
│ │ │ ├── jsoneditor.min.js
│ │ │ ├── lodash.min.js
│ │ │ ├── marked.js
│ │ │ └── swagger-oauth.js
│ │ │ ├── o2c.html
│ │ │ ├── swagger-ui.js
│ │ │ └── swagger-ui.min.js
│ └── scala
│ │ ├── Boot.scala
│ │ ├── persistence
│ │ ├── JsonProtocol.scala
│ │ ├── dal
│ │ │ └── SuppliersDal.scala
│ │ └── entities
│ │ │ └── Supplier.scala
│ │ ├── rest
│ │ └── SupplierRoutes.scala
│ │ └── utils
│ │ ├── ActorModule.scala
│ │ ├── ConfigurationModule.scala
│ │ ├── CorsSupport.scala
│ │ ├── PersistenceModule.scala
│ │ └── SwaggerDocService.scala
└── test
│ └── scala
│ ├── persistence
│ └── dal
│ │ ├── AbstractPersistenceTest.scala
│ │ └── SuppliersDALTest.scala
│ └── rest
│ ├── AbstractRestTest.scala
│ └── RoutesSpec.scala
└── tutorial
└── index.html
/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 | *.log
3 |
4 | # sbt specific
5 | .cache
6 | .history
7 | .lib/
8 | .idea/*
9 | dist/*
10 | target/
11 | lib_managed/
12 | src_managed/
13 | project/boot/
14 | project/plugins/project/
15 | .DS_Store
16 | # Scala-IDE specific
17 | .scala_dependencies
18 | .worksheet
19 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
203 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # quill-async-akka-http
2 | The Quill Async Akka Http is a very simple json rest api showing one way of using akka http with [quill](https://github.com/getquill/quill) using postgres async.
3 |
4 |
5 | It supports the following features:
6 |
7 | * Models as case classes (quill main feature)
8 | * Compile time query generation (quill main feature)
9 | * Cake pattern for DI
10 | * Spray-json to parse json
11 | * Tests for DAL
12 | * tests for routes
13 |
14 | Utils:
15 |
16 | * Typesafe config for property management
17 | * Typesafe Scala Logging (LazyLogging)
18 | * Swagger for api documentation
19 |
20 | The project was thought to be used as an activator template.
21 |
22 | #Running
23 |
24 | You should pre-configure 2 databases on postgres, quill and quilltest, an run the script postgresql-schema.sql to initiate the schema.
25 | Take a look at application.properties and change the db configuration as you need.
26 | After that, just:
27 |
28 |
29 | $ sbt run
30 |
31 | #Testing
32 |
33 | To run all tests (routes and persistence tests):
34 |
35 |
36 | $ sbt test
37 |
38 | #Using
39 |
40 | curl --request POST localhost:8080/supplier -H "Content-type: application/json" --data "{\"name\" : \"sup1\",\"desc\" : \"low prices\"}"
41 |
42 | curl localhost:8080/supplier/valid-uuid
43 |
44 | or just use swagger:
45 |
46 | http://localhost:8080/swagger/index.html
47 |
48 | #Credits
49 |
50 | To make this template, I just mixed the tutorials and templates, so credits for akka and quill guys, and swagger-akka-http.
51 |
--------------------------------------------------------------------------------
/activator.properties:
--------------------------------------------------------------------------------
1 | name=quill-async-akka-http
2 | title= Quill Async Akka HTTP
3 | description=A starter akka-http and quill async app
4 | tags=quill,akka,scala,async,http,cake
5 |
--------------------------------------------------------------------------------
/build.sbt:
--------------------------------------------------------------------------------
1 |
2 | version := "0.0.1"
3 |
4 | scalaVersion := "2.11.8"
5 |
6 | scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8")
7 |
8 | libraryDependencies ++= {
9 | val akkaV = "2.4.2"
10 | val sprayV = "1.3.3"
11 | Seq(
12 | "com.typesafe.akka" %% "akka-http-experimental" % akkaV,
13 | "com.typesafe.akka" %% "akka-http-core" % akkaV,
14 | "com.typesafe.akka" %% "akka-http-testkit" % akkaV,
15 | "com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaV,
16 | "com.typesafe.akka" %% "akka-actor" % akkaV,
17 | "com.github.swagger-akka-http" %% "swagger-akka-http" % "0.6.2",
18 | "com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
19 | "org.specs2" %% "specs2-core" % "2.3.11" % "test",
20 | "org.specs2" %% "specs2-mock" % "2.3.11" ,
21 | "org.scalatest" % "scalatest_2.11" % "2.2.1" % "test",
22 | "junit" % "junit" % "4.11" % "test",
23 | "io.getquill" %% "quill-async" % "0.8.0",
24 | "com.typesafe" % "config" % "1.2.1",
25 | "com.h2database" % "h2" % "1.3.175",
26 | "org.postgresql" % "postgresql" % "9.4.1208",
27 | "com.typesafe.scala-logging" %% "scala-logging" % "3.4.0",
28 | "ch.qos.logback" % "logback-classic" % "1.1.3",
29 | "org.slf4j" % "slf4j-nop" % "1.6.4"
30 | )
31 | }
32 |
--------------------------------------------------------------------------------
/project/build.properties:
--------------------------------------------------------------------------------
1 | sbt.version=0.13.8
2 |
--------------------------------------------------------------------------------
/project/plugins.sbt:
--------------------------------------------------------------------------------
1 | addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.2")
2 |
--------------------------------------------------------------------------------
/src/main/resources/application.conf:
--------------------------------------------------------------------------------
1 | akka {
2 | loglevel = INFO
3 | }
4 |
5 | spray.can.server {
6 | request-timeout = 1s
7 | }
8 |
9 | quilltest {
10 | host=localhost
11 | port=5432
12 | user=postgres
13 | password=postgres
14 | database=quilltest
15 | poolMaxQueueSize=4
16 | poolMaxObjects=4
17 | poolMaxIdle=999999999
18 | poolValidationInterval=100
19 | }
20 |
21 | quill {
22 | host=localhost
23 | port=5432
24 | user=postgres
25 | password=postgres
26 | database=quill
27 | poolMaxQueueSize=4
28 | poolMaxObjects=4
29 | poolMaxIdle=999999999
30 | poolValidationInterval=100
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/resources/logback.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | System.out
6 |
7 | %date{MM/dd HH:mm:ss} %-5level[%.15thread] %logger{1} - %msg%n
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/resources/sql/h2-schema.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE IF NOT EXISTS Supplier(
2 | id bigint auto_increment,
3 | name VARCHAR(255),
4 | description VARCHAR(255)
5 | );
6 |
--------------------------------------------------------------------------------
/src/main/resources/sql/postgresql-schema.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE IF NOT EXISTS Supplier(
2 | id VARCHAR(255) PRIMARY KEY NOT NULL,
3 | name VARCHAR(255),
4 | description VARCHAR(255)
5 | );
--------------------------------------------------------------------------------
/src/main/resources/swagger/css/reset.css:
--------------------------------------------------------------------------------
1 | /* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */
2 | html,
3 | body,
4 | div,
5 | span,
6 | applet,
7 | object,
8 | iframe,
9 | h1,
10 | h2,
11 | h3,
12 | h4,
13 | h5,
14 | h6,
15 | p,
16 | blockquote,
17 | pre,
18 | a,
19 | abbr,
20 | acronym,
21 | address,
22 | big,
23 | cite,
24 | code,
25 | del,
26 | dfn,
27 | em,
28 | img,
29 | ins,
30 | kbd,
31 | q,
32 | s,
33 | samp,
34 | small,
35 | strike,
36 | strong,
37 | sub,
38 | sup,
39 | tt,
40 | var,
41 | b,
42 | u,
43 | i,
44 | center,
45 | dl,
46 | dt,
47 | dd,
48 | ol,
49 | ul,
50 | li,
51 | fieldset,
52 | form,
53 | label,
54 | legend,
55 | table,
56 | caption,
57 | tbody,
58 | tfoot,
59 | thead,
60 | tr,
61 | th,
62 | td,
63 | article,
64 | aside,
65 | canvas,
66 | details,
67 | embed,
68 | figure,
69 | figcaption,
70 | footer,
71 | header,
72 | hgroup,
73 | menu,
74 | nav,
75 | output,
76 | ruby,
77 | section,
78 | summary,
79 | time,
80 | mark,
81 | audio,
82 | video {
83 | margin: 0;
84 | padding: 0;
85 | border: 0;
86 | font-size: 100%;
87 | font: inherit;
88 | vertical-align: baseline;
89 | }
90 | /* HTML5 display-role reset for older browsers */
91 | article,
92 | aside,
93 | details,
94 | figcaption,
95 | figure,
96 | footer,
97 | header,
98 | hgroup,
99 | menu,
100 | nav,
101 | section {
102 | display: block;
103 | }
104 | body {
105 | line-height: 1;
106 | }
107 | ol,
108 | ul {
109 | list-style: none;
110 | }
111 | blockquote,
112 | q {
113 | quotes: none;
114 | }
115 | blockquote:before,
116 | blockquote:after,
117 | q:before,
118 | q:after {
119 | content: '';
120 | content: none;
121 | }
122 | table {
123 | border-collapse: collapse;
124 | border-spacing: 0;
125 | }
126 |
--------------------------------------------------------------------------------
/src/main/resources/swagger/css/style.css:
--------------------------------------------------------------------------------
1 | .swagger-section #header a#logo {
2 | font-size: 1.5em;
3 | font-weight: bold;
4 | text-decoration: none;
5 | background: transparent url(../images/logo.png) no-repeat left center;
6 | padding: 20px 0 20px 40px;
7 | }
8 | #text-head {
9 | font-size: 80px;
10 | font-family: 'Roboto', sans-serif;
11 | color: #ffffff;
12 | float: right;
13 | margin-right: 20%;
14 | }
15 | .navbar-fixed-top .navbar-nav {
16 | height: auto;
17 | }
18 | .navbar-fixed-top .navbar-brand {
19 | height: auto;
20 | }
21 | .navbar-header {
22 | height: auto;
23 | }
24 | .navbar-inverse {
25 | background-color: #000;
26 | border-color: #000;
27 | }
28 | #navbar-brand {
29 | margin-left: 20%;
30 | }
31 | .navtext {
32 | font-size: 10px;
33 | }
34 | .h1,
35 | h1 {
36 | font-size: 60px;
37 | }
38 | .navbar-default .navbar-header .navbar-brand {
39 | color: #a2dfee;
40 | }
41 | /* tag titles */
42 | .swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a {
43 | color: #393939;
44 | font-family: 'Arvo', serif;
45 | font-size: 1.5em;
46 | }
47 | .swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 a:hover {
48 | color: black;
49 | }
50 | .swagger-section .swagger-ui-wrap ul#resources li.resource div.heading h2 {
51 | color: #525252;
52 | padding-left: 0px;
53 | display: block;
54 | clear: none;
55 | float: left;
56 | font-family: 'Arvo', serif;
57 | font-weight: bold;
58 | }
59 | .navbar-default .navbar-collapse,
60 | .navbar-default .navbar-form {
61 | border-color: #0A0A0A;
62 | }
63 | .container1 {
64 | width: 1500px;
65 | margin: auto;
66 | margin-top: 0;
67 | background-image: url('../images/shield.png');
68 | background-repeat: no-repeat;
69 | background-position: -40px -20px;
70 | margin-bottom: 210px;
71 | }
72 | .container-inner {
73 | width: 1200px;
74 | margin: auto;
75 | background-color: rgba(223, 227, 228, 0.75);
76 | padding-bottom: 40px;
77 | padding-top: 40px;
78 | border-radius: 15px;
79 | }
80 | .header-content {
81 | padding: 0;
82 | width: 1000px;
83 | }
84 | .title1 {
85 | font-size: 80px;
86 | font-family: 'Vollkorn', serif;
87 | color: #404040;
88 | text-align: center;
89 | padding-top: 40px;
90 | padding-bottom: 100px;
91 | }
92 | #icon {
93 | margin-top: -18px;
94 | }
95 | .subtext {
96 | font-size: 25px;
97 | font-style: italic;
98 | color: #08b;
99 | text-align: right;
100 | padding-right: 250px;
101 | }
102 | .bg-primary {
103 | background-color: #00468b;
104 | }
105 | .navbar-default .nav > li > a,
106 | .navbar-default .nav > li > a:focus {
107 | color: #08b;
108 | }
109 | .navbar-default .nav > li > a,
110 | .navbar-default .nav > li > a:hover {
111 | color: #08b;
112 | }
113 | .navbar-default .nav > li > a,
114 | .navbar-default .nav > li > a:focus:hover {
115 | color: #08b;
116 | }
117 | .text-faded {
118 | font-size: 25px;
119 | font-family: 'Vollkorn', serif;
120 | }
121 | .section-heading {
122 | font-family: 'Vollkorn', serif;
123 | font-size: 45px;
124 | padding-bottom: 10px;
125 | }
126 | hr {
127 | border-color: #00468b;
128 | padding-bottom: 10px;
129 | }
130 | .description {
131 | margin-top: 20px;
132 | padding-bottom: 200px;
133 | }
134 | .description li {
135 | font-family: 'Vollkorn', serif;
136 | font-size: 25px;
137 | color: #525252;
138 | margin-left: 28%;
139 | padding-top: 5px;
140 | }
141 | .gap {
142 | margin-top: 200px;
143 | }
144 | .troubleshootingtext {
145 | color: rgba(255, 255, 255, 0.7);
146 | padding-left: 30%;
147 | }
148 | .troubleshootingtext li {
149 | list-style-type: circle;
150 | font-size: 25px;
151 | padding-bottom: 5px;
152 | }
153 | .overlay {
154 | position: absolute;
155 | top: 0;
156 | left: 0;
157 | width: 100%;
158 | height: 100%;
159 | z-index: 1000;
160 | }
161 | .block.response_body.json:hover {
162 | cursor: pointer;
163 | }
164 | .backdrop {
165 | color: blue;
166 | }
167 | #myModal {
168 | height: 100%;
169 | }
170 | .modal-backdrop {
171 | bottom: 0;
172 | position: fixed;
173 | }
174 | .curl {
175 | padding: 10px;
176 | font-family: "Anonymous Pro", "Menlo", "Consolas", "Bitstream Vera Sans Mono", "Courier New", monospace;
177 | font-size: 0.9em;
178 | max-height: 400px;
179 | margin-top: 5px;
180 | overflow-y: auto;
181 | background-color: #fcf6db;
182 | border: 1px solid #e5e0c6;
183 | border-radius: 4px;
184 | }
185 | .curl_title {
186 | font-size: 1.1em;
187 | margin: 0;
188 | padding: 15px 0 5px;
189 | font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
190 | font-weight: 500;
191 | line-height: 1.1;
192 | }
193 | .footer {
194 | display: none;
195 | }
196 | .swagger-section .swagger-ui-wrap h2 {
197 | padding: 0;
198 | }
199 | h2 {
200 | margin: 0;
201 | margin-bottom: 5px;
202 | }
203 | .markdown p {
204 | font-size: 15px;
205 | font-family: 'Arvo', serif;
206 | }
207 | .swagger-section .swagger-ui-wrap .code {
208 | font-size: 15px;
209 | font-family: 'Arvo', serif;
210 | }
211 | .swagger-section .swagger-ui-wrap b {
212 | font-family: 'Arvo', serif;
213 | }
214 | #signin:hover {
215 | cursor: pointer;
216 | }
217 | .dropdown-menu {
218 | padding: 15px;
219 | }
220 | .navbar-right .dropdown-menu {
221 | left: 0;
222 | right: auto;
223 | }
224 | #signinbutton {
225 | width: 100%;
226 | height: 32px;
227 | font-size: 13px;
228 | font-weight: bold;
229 | color: #08b;
230 | }
231 | .navbar-default .nav > li .details {
232 | color: #000000;
233 | text-transform: none;
234 | font-size: 15px;
235 | font-weight: normal;
236 | font-family: 'Open Sans', sans-serif;
237 | font-style: italic;
238 | line-height: 20px;
239 | top: -2px;
240 | }
241 | .navbar-default .nav > li .details:hover {
242 | color: black;
243 | }
244 | #signout {
245 | width: 100%;
246 | height: 32px;
247 | font-size: 13px;
248 | font-weight: bold;
249 | color: #08b;
250 | }
251 |
--------------------------------------------------------------------------------
/src/main/resources/swagger/css/typography.css:
--------------------------------------------------------------------------------
1 | /* Google Font's Droid Sans */
2 | @font-face {
3 | font-family: 'Droid Sans';
4 | font-style: normal;
5 | font-weight: 400;
6 | src: local('Droid Sans'), local('DroidSans'), url('../fonts/DroidSans.ttf') format('truetype');
7 | }
8 | /* Google Font's Droid Sans Bold */
9 | @font-face {
10 | font-family: 'Droid Sans';
11 | font-style: normal;
12 | font-weight: 700;
13 | src: local('Droid Sans Bold'), local('DroidSans-Bold'), url('../fonts/DroidSans-Bold.ttf') format('truetype');
14 | }
15 |
--------------------------------------------------------------------------------
/src/main/resources/swagger/fonts/DroidSans-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/fonts/DroidSans-Bold.ttf
--------------------------------------------------------------------------------
/src/main/resources/swagger/fonts/DroidSans.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/fonts/DroidSans.ttf
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/collapse.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/collapse.gif
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/expand.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/expand.gif
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/explorer_icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/explorer_icons.png
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/favicon-16x16.png
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/favicon-32x32.png
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/favicon.ico
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/logo_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/logo_small.png
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/pet_store_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/pet_store_api.png
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/throbber.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/throbber.gif
--------------------------------------------------------------------------------
/src/main/resources/swagger/images/wordnik_api.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cdiniz/quill-async-akka-http/aa7cc3c9f7f910afeacc6c0669bad40d784c1a39/src/main/resources/swagger/images/wordnik_api.png
--------------------------------------------------------------------------------
/src/main/resources/swagger/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |