Giter Site home page Giter Site logo

api_loan_credit's Introduction

API_Loan_Credit (신용대출 API서비스)

_2021년 4월 21일 (Ver 0.3) update for Wooribank API_Hackathon

신용대출 API서비스 관련 설명서

1. 신용대출 API 소개


1.1 목적

본 문서는 우리은행의 신용대출 API 연동을 통하여 신용대출 서비스를 활용하는데 필요한 연동 규격을 설명한다.

1.2 신용대출 API 흐름도

image

2. API Spec & Example


2.1 비상자금한도조회 HTTP Request
POST /oai/wb/v1/credit/getCreditLoanEmFnd
2.2 Response Example
{
  "dataHeader": {},
  "dataBody": {
    "LN_AVL_AM": "350000000",
    "ZPNO_1": "11111",
    "ZPNO_ADR": "서울시 동대문구 답십리o동",
    "ATCD_ADR_1": "oo아파트 ooo동 oooo호",
    "WRLC_TEL_1": "0212345678",
    "WRLC_NM_1": "ooo네트워크",
    "EMAIL_1": "[email protected]",
    "ERR_TXT": "",
    "SGI_TSBSR_NO": "1111111111111111",
    "CNT": "1",
    "ACCOUNT_LIST": [
      {
        "CUS_USG_ACNO": "1111111111111"
      }
    ]
  }
}

3. Protocol Rule


우리은행 오픈API 연동 방식은 REST(Representational State Transfer) 방식에 따라 구현한다. HTTP Method 및 리소스에 대한 URL에 따라 Request와 Response 데이터 타입은 JSON을 사용한다. 또한 HTTP 1.1 Spec 규격을 따른다.

3.1 Resource URL

우리은행 오픈API 서비스의 Request URL은 다음과 같다.

{HTTP_METHOD} http(s)://{host}:{port}/{directory}/{anyResource}?{Query}
항목 설명 비교
http://{host}:{port} Host Address와 port
/{directory} Resource /api/v1
/{anyResource}?{Query} {anyResource}: Logical resource
{Query}: Parameter

※ 모든 데이터는 URL Encoding하여 전송해야 한다.

3.2 Resource URL

우리은행의 오픈API 서비스는 기본적으로 자원 요청에 의해 리턴 되는 JSON(Content-Type: application/json) 및 HTML(Content-Type: text/html) Type만 사용한다.

3.3 HTTP Method를 통한 Request Action 매핑

목록 및 상세정보 제공은 GET HTTP Method를 사용하며 수정은 PUT, PATCH를 사용하고 생성은 POST를 사용하고 삭제는 DELETE HTTP Method를 이용한다.

HTTP Method Action 설명 비고
GET Read 리소스 획득
PUT Update/Modify 리소스 변경
POST Create/New 리소스 생성
DELETE Delete 리소스 삭제

※ 필요에 따라 HTTP Method는 변경될 수 있음.

3.4 Request HTTP Header 형태

우리은행 오픈API는 등록된 사용자 여부를 확인 하기 위하여 “appKey”와 “secretKey”를 HTTP Header에 적용하여야 하며, 인증은 OAuth 2.0을 지원하고 있다.

GET /oap/wb/v2/oauth/tokencheck HTTP/1.1
…
Content-Type: Applicatin/x-www-form-urlencoded
appKey: <APP Key>
Authorization: Bearer <Access Token>
hashVAL: <JSON Data Hash Value>
…
3.5 Response 데이터의 형태

JSON Format인 경우 다음과 같다 JSON tag의 순서는 연동규격에 작성된 순서와 다를 수 있다.

{
    “dataHeader”: {
        …
    },
    “dataBody”: {
        …
    },
}

api_loan_credit's People

Contributors

digitalwooribank avatar blueseam avatar khanlee avatar

Stargazers

Michael Y. Choi avatar www avatar Seung Wook Kim avatar Sin-Woo Bang avatar

Forkers

kimgenius jwooss

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.