Skip to content

igapyon/oiyokan-unittest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oiyokan UnitTest

This is a unit test for Oiyokan.

Oiyokan is an OData v4 server (provider) SDK for RDB. You can use Oiyokan to turn RDBMS into OData v4 services.

  • Based on Apache Olingo. Build with Spring Boot, Java, h2.
  • Oiyokan uses JDBC to provide OData v4 access to the RDB.
  • Source code at github, license : Apache License.

Getting Started with the Oiyokan

Getting Started with the Oiyokan can be viewed at the following URL (written in Japanese).

Supported target RDBMS

  • h2 database (1.4)
  • PostgreSQL (13)
  • MySQL (8)
  • SQL Server (2008)
  • Oracle XE (18c)

Supported OData Method

  • GET
  • POST
  • PATCH
  • DELETE

Supported OData system query options

  • $select
  • $count
  • $filter
  • $orderby
  • $top
  • $skip

Oiyokan in Maven repository

Oiyokan 関連リポジトリ

Sample implementation using Oiyokan

  • Oiyokan provides OData server sample of Sakila DVD rental.

Try the Oiyokan OData v4 sample server

Heroku

You can find the running OData v4 sample server at Heroku.

Local

You can try OData v4 sample server at your computer.

Check out source code repository and you can run it as Spring Boot Web Server.

mvn clean install spring-boot:run

How to setup OData v4 setting

oiyokan-settings.json の設定を更新

  • 最も重要なのは Oiyokan の設定ファイルを変更して、接続したいデータベース情報を記述することです。
  • より詳しい内容はソースコードから読み込むことにより得られます。
src/main/resources/oiyokan/oiyokan-settings.json

設定変更後は Spring Boot を再起動

Spring Boot を再起動することにより設定情報の更新を反映。

Oiyokan 関連情報

OData v4 server のサンプル(simple-odata4) を祖先

oiyokan プロジェクトは、OData v4 server のシンプルなサンプル(https://github.com/igapyon/simple-odata4) を祖先に作成されたものです。

Oiyokanに関連するその他情報

Olingo による OData v4 server チュートリアル

OData v4 / Apache Olingo そのものの学習には Apache Olingo サイトの参照が有益です。

参考: h2情報