Git Product home page Git Product logo

scala-webapp's Introduction

Book Management

サンプルのAPI定義になります。 以下のツールを使って、OpenAPI からコードを自動生成します。 https://github.com/OpenAPITools/openapi-generator

コード生成の実行コマンドは以下です。

openapi-generator generate -g scala-play-server -i docs/api-spec.yaml 

アプリの実行コマンドは以下です。

sbt 'run -Dconfig.file=conf/application.dev.conf' 

This Scala Play Framework project was generated by the OpenAPI generator tool at 2021-09-23T01:43:18.946563+09:00[Asia/Tokyo].

API

Name Role
api.Controller Play Framework API controller
api.Api Representing trait
api.ApiImpl Default implementation
  • DELETE /v1/books/:bookId - 書籍削除API
  • GET /v1/books/:bookId - 書籍詳細取得API
  • GET /v1/books/findByTags?tags=[value] - タグ絞り込み検索API
  • GET /v1/books - 書籍一覧取得API
  • POST /v1/books - 書籍登録API
  • PUT /v1/books - 書籍更新API
  • GET /v1/tags - タグ一覧取得API
  • GET /v1/users - ユーザー一覧取得API
  • GET /v1/users/login?username=[value]&password=[value] - ログインAPI
  • GET /v1/users/logout - ログアウトAPI
  • POST /v1/users - ユーザー登録API
  • DELETE /v1/users/:username - ユーザー削除API
  • GET /v1/users/:username - ユーザー詳細取得APi
  • PUT /v1/users/:username - ユーザー更新API

scala-webapp's People

Contributors

yito0000 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.