Member
멤버 커밋 내역 업데이트
HTTP request
POST /members/contributions HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
멤버 전체 랭킹 조회
HTTP request
GET /members/ranking?page=0&size=20&sort=commits,DESC HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 1001
[ {
"id" : "1be84100-6e99-48b8-96f3-a739b86eb2a0",
"name" : "Kim",
"github_id" : "ohksj77",
"tokens" : 10000,
"tier" : "MASTER",
"profile_image" : "http://github123123412412412profileUrl"
}, {
"id" : "f6f8b33f-51a6-4e01-bc8c-8cc80272b9cf",
"name" : "Seung",
"github_id" : "ohksj",
"tokens" : 5000,
"tier" : "RUBY",
"profile_image" : "http://github123123412412412profileUrl"
}, {
"id" : "855c5a0d-f439-45f4-8798-e8fe683e42f5",
"name" : "Jin",
"github_id" : "ohksj777",
"tokens" : 3000,
"tier" : "DIAMOND",
"profile_image" : "http://github123123412412412profileUrl"
}, {
"id" : "b8b7f854-456c-4533-9c1a-58ab6e91f0c4",
"name" : "Lee",
"github_id" : "ohksjj",
"tokens" : 1000,
"tier" : "PLATINUM",
"profile_image" : "http://github123123412412412profileUrl"
}, {
"id" : "a7db0008-1dc4-4fb8-b4f7-2347af8661f3",
"name" : "Da",
"github_id" : "ohksjksj",
"tokens" : 500,
"tier" : "GOLD",
"profile_image" : "http://github123123412412412profileUrl"
} ]
멤버 지갑 주소 갱신
HTTP request
POST /members/wallet-address HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 43
Host: localhost:8080
{
"wallet_address" : "asdfasdf12341234"
}
HTTP response
HTTP/1.1 200 OK
조직 내부 멤버 랭킹
HTTP request
GET /members/ranking/organization?organizationId=1&page=0&size=20 HTTP/1.1
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 805
[ {
"id" : "1528811a-562d-45f4-9447-d8600ec8b08f",
"name" : "정해진",
"github_id" : "HJ39",
"tokens" : 20,
"tier" : "SPROUT",
"profile_image" : "http://githubUserProfileImageUrl"
}, {
"id" : "d12f1daf-2f7f-4ee0-aee5-6200d83fe675",
"name" : "넓은관용",
"github_id" : "Sammuelwoojae",
"tokens" : 20,
"tier" : "SPROUT",
"profile_image" : "http://githubUserProfileImageUrl"
}, {
"id" : "3aa44bb3-f13d-4228-81ef-b78b859f371e",
"name" : "회사승진",
"github_id" : "ohksj77",
"tokens" : 20,
"tier" : "SPROUT",
"profile_image" : "http://githubUserProfileImageUrl"
}, {
"id" : "071243b1-2be8-4e96-8993-62dfde37b343",
"name" : "영어수학",
"github_id" : "posite",
"tokens" : 20,
"tier" : "SPROUT",
"profile_image" : "http://githubUserProfileImageUrl"
} ]
멤버 Jwt 토큰으로 조회
HTTP request
GET /members/me HTTP/1.1
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 495
{
"id" : "5de6c109-5f08-4504-847a-8fbdb315b9d1",
"name" : "김승진",
"github_id" : "ohksj77",
"commits" : 100,
"issues" : 100,
"pull_requests" : 100,
"reviews" : 100,
"tier" : "SILVER",
"auth_step" : "GITHUB_ONLY",
"profile_image" : "http://abcd.efgh",
"rank" : 1000,
"token_amount" : 1000,
"organization" : "한국공학대학교",
"blockchain_url" : "http://abcd.efgh",
"organization_rank" : 1,
"is_last" : true,
"member_github_ids" : [ "ohksj", "ksj77" ]
}
멤버 github 조직 및 레포 목록 조회
HTTP request
GET /members/me/details HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 278
{
"git_organizations" : [ {
"name" : "tukcom2023CD",
"profile_image" : "http://orgGithubProfile"
} ],
"git_repos" : [ "tukcom2023CD/DragonGuard-JinJin", "tukcom2023CD/DragonGuard", "tukcom2023CD/Jin-Jin" ],
"member_profile_image" : "http://memberGithubProfile"
}
멤버 블록체인 업데이트
HTTP request
POST /members/blockchains HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
멤버 github 조직의 레포 목록 조회
HTTP request
GET /members/git-organizations/git-repos?name=tukcom2023CD HTTP/1.1
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 161
{
"profile_image" : "http://someProfileImageOfOrg",
"git_repos" : [ "tukcom2023CD/DragonGuard-JinJin", "tukcom2023CD/DragonGuard", "tukcom2023CD/Yongari" ]
}
타 멤버의 프로필 조회
HTTP request
GET /members/details?githubId=ohksj77 HTTP/1.1
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 221
{
"commits" : 1,
"issues" : 2,
"pull_requests" : 3,
"reviews" : 4,
"profile_image" : "http://profileImage",
"git_repos" : [ "gitRepo1", "gitRepo2" ],
"organization" : "한국공학대학교",
"rank" : 10
}
멤버 프로필 정보 업데이트
HTTP request
POST /members/me/update HTTP/1.1
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 495
{
"id" : "e9a4dca2-5edd-4e24-a64a-034e93ac4732",
"name" : "김승진",
"github_id" : "ohksj77",
"commits" : 100,
"issues" : 100,
"pull_requests" : 100,
"reviews" : 100,
"tier" : "SILVER",
"auth_step" : "GITHUB_ONLY",
"profile_image" : "http://abcd.efgh",
"rank" : 1000,
"token_amount" : 1000,
"organization" : "한국공학대학교",
"blockchain_url" : "http://abcd.efgh",
"organization_rank" : 1,
"is_last" : true,
"member_github_ids" : [ "ohksj", "ksj77" ]
}
이미 로그인했던 멤버인지 확인
HTTP request
GET /members/verify HTTP/1.1
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 28
{
"is_login_user" : true
}
회원 탈퇴
HTTP request
POST /members/withdraw HTTP/1.1
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Search Result
검색에 대한 결과 조회
HTTP request
GET /search?page=1&name=gitrank&type=USERS HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 421
[ {
"id" : 1,
"name" : "ohksj77",
"is_service_member" : true
}, {
"id" : 2,
"name" : "HJ39",
"is_service_member" : true
}, {
"id" : 3,
"name" : "posite",
"is_service_member" : true
}, {
"id" : 4,
"name" : "Sammuelwoojae",
"is_service_member" : true
}, {
"id" : 5,
"name" : "And",
"is_service_member" : false
}, {
"id" : 6,
"name" : "DragonGuard-JinJin",
"is_service_member" : false
} ]
필터링을 통한 검색에 대한 결과 조회
HTTP request
GET /search?page=1&name=gitrank&type=REPOSITORIES&filters=language:swift,language:kotlin,language:java HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 851
[ {
"id" : 1,
"name" : "tukcom2023CD/DragonGuard-JinJin",
"language" : "java",
"description" : "블록체인기반깃랭크시스템",
"created_at" : "2023-09-15T14:53:56.971228"
}, {
"id" : 2,
"name" : "tukcom2023CD/DragonGuard",
"language" : "swift",
"description" : "블록체인기반깃랭크시스템",
"created_at" : "2023-09-15T14:53:56.971263"
}, {
"id" : 3,
"name" : "tukcom2023CD/JinJin",
"language" : "java",
"description" : "진진시스템",
"created_at" : "2023-09-15T14:53:56.971268"
}, {
"id" : 4,
"name" : "tukcom2023CD/Dragon",
"language" : "java",
"description" : "드래곤시스템",
"created_at" : "2023-09-15T14:53:56.971272"
}, {
"id" : 5,
"name" : "tukcom2023CD/Dragon-Jin",
"language" : "java",
"description" : "드래곤진",
"created_at" : "2023-09-15T14:53:56.971276"
} ]
GitHub Repository
레포 구성원 기여정도 조회
HTTP request
GET /git-repos?name=tukcom2023CD/DragonGuard-JinJin HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 830
{
"spark_line" : [ 1, 1, 1, 2, 3, 4, 5, 6, 24, 212, 32, 4 ],
"git_repo_members" : [ {
"github_id" : "ohksj77",
"profile_url" : "http://somethingProfileUrl",
"commits" : 100,
"additions" : 1000,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "HJ39",
"profile_url" : "http://somethingProfileUrl",
"commits" : 101,
"additions" : 999,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "posite",
"profile_url" : "http://somethingProfileUrl",
"commits" : 99,
"additions" : 1001,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "Sammuelwoojae",
"profile_url" : "http://somethingProfileUrl",
"commits" : 100,
"additions" : 1001,
"deletions" : 499,
"is_service_member" : true
} ]
}
레포 구성원 기여정도 조회 (수동)
HTTP request
GET /git-repos?name=tukcom2023CD/DragonGuard-JinJin HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
두 레포의 구성원 기여정도 비교 조회
HTTP request
POST /git-repos/compare/git-repos-members HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 89
Host: localhost:8080
{
"first_repo" : "tukcom2023CD/DragonGuard-JinJin",
"second_repo" : "tukcom2023CD/"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 1529
{
"first_result" : [ {
"github_id" : "ohksj77",
"profile_url" : "http://somethingProfileUrl",
"commits" : 100,
"additions" : 1000,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "HJ39",
"profile_url" : "http://somethingProfileUrl",
"commits" : 101,
"additions" : 999,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "posite",
"profile_url" : "http://somethingProfileUrl",
"commits" : 99,
"additions" : 1001,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "Sammuelwoojae",
"profile_url" : "http://somethingProfileUrl",
"commits" : 100,
"additions" : 1001,
"deletions" : 499,
"is_service_member" : true
} ],
"second_result" : [ {
"github_id" : "ohksj77",
"profile_url" : "http://somethingProfileUrl",
"commits" : 100,
"additions" : 1000,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "HJ39",
"profile_url" : "http://somethingProfileUrl",
"commits" : 101,
"additions" : 999,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "posite",
"profile_url" : "http://somethingProfileUrl",
"commits" : 99,
"additions" : 1001,
"deletions" : 500,
"is_service_member" : true
}, {
"github_id" : "Sammuelwoojae",
"profile_url" : "http://somethingProfileUrl",
"commits" : 100,
"additions" : 1001,
"deletions" : 499,
"is_service_member" : true
} ]
}
두 레포의 구성원 기여정도 비교 조회 (수동)
HTTP request
POST /git-repos/compare/git-repos-members HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 89
Host: localhost:8080
{
"first_repo" : "tukcom2023CD/DragonGuard-JinJin",
"second_repo" : "tukcom2023CD/"
}
HTTP response
HTTP/1.1 200 OK
두 레포 비교 조회
HTTP request
POST /git-repos/compare HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 89
Host: localhost:8080
{
"first_repo" : "tukcom2023CD/DragonGuard-JinJin",
"second_repo" : "tukcom2023CD/"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 2107
{
"first_repo" : {
"git_repo" : {
"full_name" : "tukcom2023CD/DragonGuard-JinJin",
"forks_count" : 1,
"stargazers_count" : 4,
"watchers_count" : 4,
"open_issues_count" : 3,
"closed_issues_count" : 23,
"subscribers_count" : 0
},
"statistics" : {
"commit_stats" : {
"count" : 4,
"sum" : 430,
"min" : 33,
"max" : 146,
"average" : 107.5
},
"addition_stats" : {
"count" : 4,
"sum" : 50000,
"min" : 1800,
"max" : 30000,
"average" : 12500.0
},
"deletion_stats" : {
"count" : 4,
"sum" : 30000,
"min" : 5000,
"max" : 15000,
"average" : 7500.0
}
},
"languages" : {
"swift" : 9998,
"java" : 10000,
"kotlin" : 9999
},
"languages_stats" : {
"count" : 4,
"sum" : 29997,
"min" : 9998,
"max" : 10000,
"average" : 7499.25
},
"profile_urls" : [ "http://profileImage", "http://profileImage" ]
},
"second_repo" : {
"git_repo" : {
"full_name" : "tukcom2023CD/",
"forks_count" : 1,
"stargazers_count" : 4,
"watchers_count" : 4,
"open_issues_count" : 3,
"closed_issues_count" : 23,
"subscribers_count" : 0
},
"statistics" : {
"commit_stats" : {
"count" : 4,
"sum" : 430,
"min" : 33,
"max" : 146,
"average" : 107.5
},
"addition_stats" : {
"count" : 4,
"sum" : 50000,
"min" : 1800,
"max" : 30000,
"average" : 12500.0
},
"deletion_stats" : {
"count" : 4,
"sum" : 30000,
"min" : 5000,
"max" : 15000,
"average" : 7500.0
}
},
"languages" : {
"swift" : 9998,
"java" : 10000,
"kotlin" : 9999
},
"languages_stats" : {
"count" : 4,
"sum" : 29997,
"min" : 9998,
"max" : 10000,
"average" : 7499.25
},
"profile_urls" : [ "http://profileImage", "http://profileImage" ]
}
}
두 레포 비교 조회 (수동)
HTTP request
POST /git-repos/compare HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 89
Host: localhost:8080
{
"first_repo" : "tukcom2023CD/DragonGuard-JinJin",
"second_repo" : "tukcom2023CD/"
}
HTTP response
HTTP/1.1 200 OK
두 기여자의 기여정도 비교 조회
HTTP request
POST /git-repos/compare/members HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 154
Host: localhost:8080
{
"first_github_id" : "ohksj77",
"first_repo" : "tukcom2023CD/DragonGuard-JinJin",
"second_github_id" : "ohksj",
"second_repo" : "tukcom2023CD/"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 409
{
"first_member" : {
"github_id" : "ohksj77",
"profile_url" : "http://somethingProfileUrl",
"commits" : 100,
"additions" : 1000,
"deletions" : 500,
"is_service_member" : true
},
"second_member" : {
"github_id" : "ohksj",
"profile_url" : "http://somethingProfileUrl",
"commits" : 101,
"additions" : 1001,
"deletions" : 501,
"is_service_member" : true
}
}
Blockchain
블록체인 부여 기록 리스트 조회
HTTP request
GET /blockchain HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 471
[ {
"id" : 1,
"contribute_type" : "COMMIT",
"amount" : 10,
"github_id" : "ohksj77",
"member_id" : "c4200459-963b-4c1a-862e-a3e991e10ffc",
"created_at" : "2023-09-15T14:53:57.221227",
"transaction_hash_url" : "123123123"
}, {
"id" : 2,
"contribute_type" : "COMMIT",
"amount" : 5,
"github_id" : "ohksj77",
"member_id" : "548cfd9c-afd2-437e-a79a-b916ee27e9e7",
"created_at" : "2023-09-15T14:53:57.221258",
"transaction_hash_url" : "321321321"
} ]
Auth
리프레시 토큰 갱신
HTTP request
GET /auth/refresh HTTP/1.1
Content-Type: application/json;charset=UTF-8
refreshToken: apfawfawfa.awfsfawef2.r4svfv32
accessToken: 4321.4321.4321
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 77
{
"access_token" : "1234.1234.1234",
"refresh_token" : "4321.4321.4321"
}
이메일 전송
HTTP request
POST /email/send HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 14
{
"id" : 1
}
메일 코드 확인
HTTP request
GET /email/check?id=1&code=12345&organizationId=3 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 28
{
"is_valid_code" : true
}
메일 코드 삭제
HTTP request
DELETE /email/1 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Organization
조직 생성
HTTP request
POST /organizations HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 114
Host: localhost:8080
{
"name" : "한국공학대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "tukorea.ac.kr"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 14
{
"id" : 1
}
조직 id 조회
HTTP request
GET /organizations/search-id?name=%ED%95%9C%EA%B5%AD%EA%B3%B5%ED%95%99%EB%8C%80%ED%95%99%EA%B5%90 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 14
{
"id" : 1
}
조직에 멤버 추가
HTTP request
POST /organizations/add-member HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 64
Host: localhost:8080
{
"organization_id" : 1,
"email" : "ohksj77@tukorea.ac.kr"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 14
{
"id" : 1
}
타입별 조직 목록 조회
HTTP request
GET /organizations?type=UNIVERSITY&page=1&size=20 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 427
[ {
"id" : 1,
"name" : "한국공학대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "tukorea.ac.kr",
"token_sum" : 100000
}, {
"id" : 2,
"name" : "서울대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "snu.ac.kr",
"token_sum" : 10000
}, {
"id" : 3,
"name" : "KAIST",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "kaist.ac.kr",
"token_sum" : 1000
} ]
전체 조직 랭킹 조회
HTTP request
GET /organizations/ranking/all?page=0&size=20 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 427
[ {
"id" : 1,
"name" : "한국공학대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "tukorea.ac.kr",
"token_sum" : 100000
}, {
"id" : 2,
"name" : "서울대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "snu.ac.kr",
"token_sum" : 10000
}, {
"id" : 3,
"name" : "KAIST",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "kaist.ac.kr",
"token_sum" : 1000
} ]
타입별 조직 랭킹 조회
HTTP request
GET /organizations/ranking?type=UNIVERSITY&page=1&size=20 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 427
[ {
"id" : 1,
"name" : "한국공학대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "tukorea.ac.kr",
"token_sum" : 100000
}, {
"id" : 2,
"name" : "서울대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "snu.ac.kr",
"token_sum" : 10000
}, {
"id" : 3,
"name" : "KAIST",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "kaist.ac.kr",
"token_sum" : 1000
} ]
조직 검색
HTTP request
GET /organizations/search?type=UNIVERSITY&name=%ED%95%9C%EA%B5%AD%EA%B3%B5%ED%95%99%EB%8C%80%ED%95%99%EA%B5%90&page=1&size=20 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 427
[ {
"id" : 1,
"name" : "한국공학대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "tukorea.ac.kr",
"token_sum" : 100000
}, {
"id" : 2,
"name" : "서울대학교",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "snu.ac.kr",
"token_sum" : 10000
}, {
"id" : 3,
"name" : "KAIST",
"organization_type" : "UNIVERSITY",
"email_endpoint" : "kaist.ac.kr",
"token_sum" : 1000
} ]
Admin
관리자 권한 확인
HTTP request
GET /admin/check HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
조직 요청 승인 혹은 반려
HTTP request
POST /admin/organizations/decide HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Content-Length: 39
Host: localhost:8080
{
"id" : 1,
"decide" : "ACCEPTED"
}
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 210
[ {
"id" : 2,
"name" : "한국공학대학교",
"type" : "UNIVERSITY",
"email_endpoint" : "tukorea.ac.kr"
}, {
"id" : 3,
"name" : "Google",
"type" : "COMPANY",
"email_endpoint" : "gmail.com"
} ]
상태에 따른 조직 조회
HTTP request
GET /admin/organizations?status=REQUESTED&page=0&size=20 HTTP/1.1
Content-Type: application/json;charset=UTF-8
Authorization: Bearer apfawfawfa.awfsfawef2.r4svfv32
Host: localhost:8080
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 210
[ {
"id" : 2,
"name" : "한국공학대학교",
"type" : "UNIVERSITY",
"email_endpoint" : "tukorea.ac.kr"
}, {
"id" : 3,
"name" : "Google",
"type" : "COMPANY",
"email_endpoint" : "gmail.com"
} ]