Skip to content
This repository has been archived by the owner on Sep 12, 2021. It is now read-only.

Commit

Permalink
Play 2.5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
akkie committed Jun 8, 2016
1 parent 98de5d2 commit 167ddd8
Show file tree
Hide file tree
Showing 24 changed files with 975 additions and 702 deletions.
1 change: 1 addition & 0 deletions .coveralls.yml
@@ -0,0 +1 @@
service_name: travis-ci
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +1,42 @@
### Are you looking for help?

This is an issue tracker, used to manage and track the development of Swagger Codegen - Play Scala. It is not a support system and so it is not a place to ask questions or get help. If you're not sure if you have found a bug, the best place to start is with [Gitter channel](https://gitter.im/mohiva/swagger-codegen-play-scala). If you have a feature request, the [Gitter channel](https://gitter.im/mohiva/swagger-codegen-play-scala) is a better forum than an issue tracker to discuss it.

### Swagger Codegen - Play Scala Version (0.1.x / etc)


### Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)

Use `uname -a` if on Linux.

### JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)

Paste the output from `java -version` at the command line.

### Library Dependencies

If this is an issue that involves integration with another system, include the exact version and OS of the other system.

### Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

1.
2.
3.

### Actual Behavior

Please provide a description of what actually happens, working from the same starting point.

Be descriptive: "it doesn't work" does not describe what the behavior actually is -- instead, provide a meaningful description of the issue.

1.
2.
3.

### Reproducible Test Case

Please provide a PR with a failing test.

If the issue is more complex or requires configuration, please provide a link to a project on GitHub that reproduces the issue.
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,21 @@
# Pull Request Checklist

* [ ] Have you read [How to write the perfect pull request](https://github.com/blog/1943-how-to-write-the-perfect-pull-request)?
* [ ] Have you read through the [contributor guidelines](https://github.com/mohiva/swagger-codegen-play-scala/blob/master/CONTRIBUTING.md)?
* [ ] Have you [squashed your commits](https://docs.openshift.org/origin-m4/oo_contributors_guide.html#submitting-code)?

## Fixes

Fixes #xxxx

## Purpose

What does this PR do?

## Background Context

Why did you take this approach?

## References

Are there any relevant issues / PRs / mailing lists discussions?
22 changes: 22 additions & 0 deletions .travis.yml
@@ -0,0 +1,22 @@
sudo: false
language: scala
scala:
- 2.11.8
jdk:
- oraclejdk8
cache:
directories:
# caching scala stuff based on
# http://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html#%28Experimental%29+Reusing+Ivy+cache
- $HOME/.ivy2/cache
- $HOME/.sbt/boot/
script:
- scripts/ci-build
# cleanup travis trick from
# http://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html#%28Experimental%29+Reusing+Ivy+cache
- find $HOME/.sbt -name "*.lock" -delete
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
after_success:
- scripts/coveralls
notifications:
email: false
47 changes: 47 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,47 @@
Contributing to Swagger Codegen - Play Scala
============================================

How to contribute
-----------------

Swagger Codegen - Play Scala is an open source project. Contributions are appreciated.

Some ways in which you can contribute are: reporting errors, improving documentation, adding examples, adding support
for more services, fixing bugs, suggesting new features, adding test cases, translating messages, and whatever else
you can think of that may be helpful. If in doubt, just ask.


Development workflow
--------------------

Development is coordinated via [GitHub]. Ideas for improvements are discussed using the [chat].

To submit issues, please use the [GitHub issue tracker]. **Please do not use the issue tracker for questions!**

For a more streamlined experience for all people involved, we encourage contributors to follow the practices described
at [GitHub workflow for submitting pull requests].

Scala source code should follow the conventions documented in the [Scala Style Guide]. Additionally, acronyms should
be capitalized. To have your code automatically reformatted, run this command before committing your changes:

scripts/reformat

After submitting your pull request, please [watch the result] of the automated Travis CI build and correct any reported
errors or inconsistencies.


License and Copyright
---------------------

By submitting work via pull requests, issues, documentation, or any other means, contributors indicate their agreement to
publish their work under this project's license and also attest that they are the authors of the work and grant a
copyright license to the Mohiva Organisation, unless the contribution clearly states a different copyright notice
(e.g., it contains original work by a third party).


[GitHub]: https://github.com/mohiva/swagger-codegen-play-scala
[GitHub issue tracker]: https://github.com/mohiva/swagger-codegen-play-scala/issues
[GitHub workflow for submitting pull requests]: http://docs.openshift.org/origin-m4/oo_contributors_guide.html#submitting-code
[chat]: https://gitter.im/mohiva/swagger-codegen-play-scala
[Scala Style Guide]: http://docs.scala-lang.org/style/
[watch the result]: https://travis-ci.org/mohiva/swagger-codegen-play-scala/pull_requests
14 changes: 11 additions & 3 deletions README.md
@@ -1,13 +1,21 @@
# Swagger Codegen - Play Scala
# Swagger Codegen - Play Scala [![Build Status](https://travis-ci.org/mohiva/swagger-codegen-play-scala.png)](https://travis-ci.org/mohiva/swagger-codegen-play-scala) [![Coverage Status](https://coveralls.io/repos/mohiva/swagger-codegen-play-scala/badge.svg?branch=master&service=github)](https://coveralls.io/github/mohiva/swagger-codegen-play-scala?branch=master) [![Join the chat at https://gitter.im/mohiva/swagger-codegen-play-scala](https://badges.gitter.im/mohiva/swagger-codegen-play-scala.svg)](https://gitter.im/mohiva/swagger-codegen-play-scala?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
=========

A code generator for [Swagger] which generates API clients with the help of the PlayWS library. This code generator is based on the `akka-scala` generator included in the [Swagger Codegen] distribution.

## Versions

Project | Play
--------------------|------------------
0.1.x | 2.4
master | 2.5

## Create client

Download swagger codegen executable into the root directory of this project:

```
wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.1.5/swagger-codegen-cli-2.1.5.jar -O swagger-codegen-cli.jar
wget http://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/2.1.6/swagger-codegen-cli-2.1.6.jar -O swagger-codegen-cli.jar
```

Execute the script
Expand Down Expand Up @@ -45,4 +53,4 @@ playVersion | The Play version to use in generated build.sbt


[Swagger]: http://swagger.io/
[Swagger Codegen]: https://github.com/swagger-api/swagger-codegen
[Swagger Codegen]: https://github.com/swagger-api/swagger-codegen
6 changes: 3 additions & 3 deletions clientstub/build.sbt
Expand Up @@ -5,8 +5,8 @@ libraryDependencies ++= Seq(
Dependencies.Library.playJsonExtension,
Dependencies.Library.jodaTime,
Dependencies.Library.Play.test % "test",
Dependencies.Library.Specs2.core % "test",
Dependencies.Library.Specs2.matcherExtra % "test",
Dependencies.Library.Specs2.mock % "test",
Dependencies.Library.Play.specs2 % "test",
Dependencies.Library.Play.Specs2.matcherExtra % "test",
Dependencies.Library.Play.Specs2.mock % "test",
Dependencies.Library.playWSMock % "test"
)

0 comments on commit 167ddd8

Please sign in to comment.