You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Initial version of playground
* Remove redundant code
* Define default option on enum
* Refactor
* Make SEALED_INTERFACES_FOR_ONE_OF default in playground
* Configure task dependencies
* Deploy to fabrikt.fly.dev
* Mention playground in README
* Try online
* Reduce intro and add try online to it
* Adds workflow for deploying to Fly.io
* Centralise settings parsing and enable deeplinking
* Make playground tests depend on shadowJar
* Only set genTypes default if query params is empty
* Display version info in right most panel
* Manually configure shadowJar name
* Add original motivation section
* Display wait cursor while generating
* Fix css syntax error
* Update README.md
Copy file name to clipboardexpand all lines: README.md
+17-8
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
# Fabrikt `/ˈfa-brikt/` - Kotlin code from OpenAPI 3
2
2
3
-
---
4
-
5
3
*[Introduction](#introduction)
6
4
*[Features](#features)
7
5
*[Examples](#examples)
@@ -12,12 +10,11 @@
12
10
*[Maven](#maven)
13
11
*[Getting the Most from Fabrikt](#getting-the-most-from-fabrikt)
14
12
*[Configuration Options](#configuration-options)
13
+
*[Original Motivation](#original-motivation)
15
14
*[Building Locally](#building-locally)
16
15
*[Publishing](#publishing)
17
16
*[Specific Features](#specific-features)
18
17
19
-
---
20
-
21
18
## Introduction
22
19
23
20
This library was built to take advantage of the complex modeling features available in OpenAPI 3. It generates Kotlin data classes with advanced support for features such as:
@@ -33,13 +30,15 @@ This library was built to take advantage of the complex modeling features availa
33
30
34
31
as well as HTTP clients and controllers for a number of popular frameworks (see [Features](#features)).
35
32
36
-
More than just bootstrapping, this library can be permanently integrated into a gradle or maven build and will ensure contract and code always match, even as APIs evolve in complexity.
33
+
More than just bootstrapping, this library can be permanently integrated into your build tool and will ensure contract and code always match, even as APIs evolve in complexity.
34
+
35
+
### Try Fabrikt Online
37
36
38
-
The team that built this tool initially contributed to the Kotlin code generation ability in [OpenApiTools](https://github.com/OpenAPITools/openapi-generator), but reached the limits of what could be achieved with template-based generation. This library leverages the rich OpenAPI 3 model provided by [KaiZen-OpenApi-Parser](https://github.com/RepreZen/KaiZen-OpenApi-Parser)and uses [Kotlin Poet](https://square.github.io/kotlinpoet/) to programmatically construct Kotlin classes for maximum flexibility.
37
+
Try Fabrikt with your own API spec and see how it can help you generate code for your API clients and servers.
39
38
40
-
It was built at [Zalando Tech](https://opensource.zalando.com/) and is battle-tested in production there. It is particularly well-suited to API's built according to Zalando's [REST API guidelines](https://opensource.zalando.com/restful-api-guidelines/).
39
+
[Fabrikt Playground](https://fabrikt.fly.dev)
41
40
42
-
The library is [available on Maven Central](https://search.maven.org/artifact/com.cjbooms/fabrikt) at the following coordinates:
41
+
### Coordinates
43
42
44
43
```xml
45
44
<dependency>
@@ -245,6 +244,16 @@ This section documents the available CLI parameters for controlling what gets ge
245
244
||`JAKARTA_VALIDATION` - Use `jakarta.validation` annotations in generated model classes |
246
245
||`NO_VALIDATION` - Use no validation annotations in generated model classes |
247
246
247
+
## Original Motivation
248
+
249
+
The team that built the first version of this tool initially contributed to the Kotlin code generation ability in
250
+
[OpenApiTools](https://github.com/OpenAPITools/openapi-generator), but reached the limits of what could be achieved with
251
+
template-based generation. This library leverages the rich OpenAPI 3 model provided by
252
+
[KaiZen-OpenApi-Parser](https://github.com/RepreZen/KaiZen-OpenApi-Parser) and uses [Kotlin Poet](https://square.github.io/kotlinpoet/) to
253
+
programmatically construct Kotlin classes for maximum flexibility.
254
+
255
+
This project was started by engineers from [Zalando Tech](https://opensource.zalando.com/) and is battle-tested heavily in production there.
256
+
248
257
## Building Locally
249
258
250
259
Fabrikt is built with Gradle and requires an initialised git repository. The easiest way to build it is to clone the repo locally before executing the build command:
0 commit comments