Code Monkey home page Code Monkey logo

student_api's Introduction

student-api

Required

  • docker-compose

for dev

  • Java openjdk 14

起動方法

$ docker-compose up

説明

  • student-api
    • gradle 公式 Docker Image を用いて build しています。
    • 初回の build 時は gradle の解決のため、2~3分程度の時間を要します。
  • student-db
    • PostgreSQL 公式 Docker Image を用いて DB を起動しています。
    • 初回起動時にサンプルデータの投入を行っています。

動作確認方法

Swagger Editor を使用する場合

  1. https://editor.swagger.io/ にアクセスし、OpenAPI の内容を Copy & Paste する
  2. /students の「Try it out」から、各パラメータを入力し「Execute」で実行

Swagger Editor を使用すると不正なパラメータを送信できないため、例外系の動作を確認する場合は下記「curl を使用する場合

curl を使用する場合

curl -v localhost:8081/students --get \
  --data-urlencode 'teacherId=1' \
  --data-urlencode 'page=1' \
  --data-urlencode 'limit=1' \
  --data-urlencode 'sort=name' \
  --data-urlencode 'order=asc' \
  --data-urlencode 'name_like=生徒2' \
  --data-urlencode 'loginId_like=student_2'

説明資料

補足資料

student_api's People

Contributors

ukwksk avatar

Watchers

 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.