Git Product home page Git Product logo

datagokr-api-b090041-lrsrcldinfoservice-proxy-spring's Introduction

datagokr-api-b090041-lrsrcldinfoservice-proxy-app

A proxy application for http://apis.data.go.kr/B090041/openapi/service/LrsrCldInfoService.

See datagokr-api-b090041-lrsrcldinfoservice-client-spring that this application uses.

Application properties

See application.yml.example and ehcache-config.xml.

Database and Cache

This application requires database and cache. H2 and Ehcache are already added as dependencies. ( See ehcache-config.xml and tune if required.)

Cleansing

Old (and new) entries in the database are periodically purged.

spring:
  cache:
    jcache:
      config: classpath:ehcache-config.xml
  datasource:
    driverClassName: org.h2.Driver
    password: password
    url: jdbc:h2:mem:testdb
    username: sa
  h2:
    console:
      enabled: true
  jpa:
    database-platform: org.hibernate.dialect.H2Dialect

Client

You should provide at least the ...service-key property.

datagokr:
  api:
    b090041:
      lrsrcldinfoservice:
        client:
          base-url: ...               # defaults to http://.../LrsrCldInfoService
          connect-timeout-millis: ... # defaults to 2000
          write-timeout-seconds: ...  # defaults to 2
          read-timeout-seconds: ...   # defaults to 10
          service-key: ...            # REQUIRED

Application endpoints

All endpoints Accepts application/json and application/x-ndjson.

Method URI Notes
GET /v2/lunar/{year} Reads all items in specified {year} in lunar calendar
GET /v2/lunar/{year}/{month} Reads all items in specified {month} in lunar calendar
GET /v2/lunar/{year}/{month}/{day} Reads items of specified date in lunar calendar
GET /v2/solar/{year} Reads all items in specified {year} in solar calendar
GET /v2/solar/{year}/{month} Reads all items in specified {month} in solar calendar
GET /v2/solar/{year}/{month}/{day} Reads items of specified date in solar calendar

datagokr-api-b090041-lrsrcldinfoservice-proxy-spring's People

Contributors

onacit avatar jinahya 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.