Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3.3 API Spec: <gắn link tài liệu mô tả API vào đây>

Sample Values
Panel
titleAPI Spec Documentlấy danh sách NCC

Method

GET

URL

application/supplierEvaluation/list

Description

API lấy danh sách lịch sử đánh giá

Note

API cũ, sửa lại

1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorization<token>Token của người dùng đăng nhậpBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k

2.

Body

Request

STT

Path

Field

Field

Require

Data Type / Length

Description

Note

Sample Values

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

1pagetrueIntegertrang

2limittrueIntegersố bản ghi cần lấy

3evaluationGradefalseStringXếp hạng


4namefalseStringtên NCC

5cityIdfalseIntegerid thành phố

6businessIdfalseIntegerid nghành nghề chính

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

1codeInteger0: thành công còn lại thất bại

2messageStringmessage

3resultObjectkết quả trả ra

4(result) totalIntegersố lượng bản ghi

5(result) pageIntegerpage

6(result) itemsList<Object>danh sách bản ghi



7(items) idIntegerid NCC

8(items) contactOrgStringNgười liên tục

9(items) capacityProfileStringhồ sơ năng lực

11(items) typeIntegerLoại

12(items) nameStringtên NCC

13(items) taxCodeStringmã số thuế

14(items) evaluationGradeStringXếp hạng đánh giá

15(items) cityIdIntegerthành phố

16(items) districtIdIntegerhuyện

17(items) subdistrictIdInteger

18(items) addressStringđịa chỉ

19(items) legalRepresentativeStringđại diện pháp lý

20(items) businessIdIntegerid ngành nghề chính

21(items) activeIntegertrạng thái

22(items) cityNameStringhuyện

23(items) districtNameStringthành phố

24(items) subdistrictNameString

25(items) businessNameStringtên ngành nghề chính

26(items) fieldNameStringtên lĩnh vực chính

27(items) evaluationGradeStringxếp hạng

Panel
titleAPI lấy chi tiết NCC

Method

GET

URL

application/organization/get

Description

API chi tiết NCC

Note

API cũ, sửa lại

1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorization<token>Token của người dùng đăng nhậpBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k

2. Request

STT

Field

Require

Data Type / Length

Description

Note

Sample Values

1idtrueIntegerid NCC

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

1codeInteger0: thành công còn lại thất bại

2messageStringmessage

3resultObjectkết quả trả ra

4(result) idIntegerid NCC

5(result) contactOrgStringNgười liên tục

6(result) capacityProfileStringhồ sơ năng lực



7(result) typeIntegerLoại

8(result) nameStringtên NCC

9(result) taxCodeStringmã số thuế

11(result) evaluationGradeStringXếp hạng đánh giá

12(result) cityIdIntegerthành phố

13(result) districtIdIntegerhuyện

14(result) subdistrictIdInteger

15(result) addressStringđịa chỉ

16(result) legalRepresentativeStringđại diện pháp lý

17(result) businessIdIntegerid ngành nghề chính

18(result) activeIntegertrạng thái

19(result) cityNameStringhuyện

20(result) districtNameStringthành phố

21(result) subdistrictNameString

22(result) businessNameStringtên ngành nghề chính

23(result) fieldNameStringtên lĩnh vực chính

24(result) evaluationGradeStringxếp hạng

25(result) evaluationScoreStringđiểm đánh giá

26(result) supplierRatingRecommendedStringđề xuất

27(result) completionDateStringngày hoàn thành

28(result) fieldsList<Object>Danh sách Lĩnh vực phụ

29(fields) idIntegerid

30(fields) organizationIdIntegerid NCC

31(fields) fieldIdIntegerid lĩnh vực

32(fields) fieldNameStringtên lĩnh vực

33(result) businessesList<Object>Danh sách Ngành nghề phụ

34(businesses) idIntegerid

35(businesses) organizationIdIntegerid NCC

36(businesses) businessIdIntegerid ngành nghề phụ

37(businesses) businessNameStringtên ngành nghề phụ

38(result) bankAccountsList<Object>Danh sách tài khoản ngân hàng

39(bankAccounts) idIntegerid

40(bankAccounts) organizationIdIntegerid NCC

41(bankAccounts) bankNameStringtên ngân hàng

42(bankAccounts) accountNumberStringsố tài khoản

43(bankAccounts) accountHolderStringtên tài khoản

44(bankAccounts) isDefaultIntegerđánh dấu có mặc định hay không. 1: mặc định, 0: không mặc định

Panel
titleAPI lấy danh sách các tài khoản ngân hàng của 1 NCC

Method

GET

URL

application/organization/getBankAccounts

Description

API Lấy danh sách các tài khoản ngân hàng của 1 NCC

Note

API mới

1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorization<token>Token của người dùng đăng nhậpBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k

2. Request

STT

Field

Require

Data Type / Length

Description

Note

Sample Values

1orgIdtrueIntegerid NCC

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

1codeInteger0: thành công còn lại thất bại

2messageStringmessage

3resultList<Object>kết quả trả ra

4(bankAccounts) idIntegerid NCC

5(bankAccounts) organizationIdIntegerid NCC

6(bankAccounts) bankNameStringtên ngân hàng



7(bankAccounts) accountNumberStringsố tài khoản

8(bankAccounts) accountHolderStringtên tài khoản

9(bankAccounts) isDefaultIntegerđánh dấu có mặc định hay không. 1: mặc định, 0: không mặc định

Panel
titleAPI xóa 1 NCC

Method

GET

URL

application/organization/delete

Description

API xóa 1 NCC

Note

API cũ

1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorization<token>Token của người dùng đăng nhậpBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k

2. Request

STT

Field

Require

Data Type / Length

Description

Note

Sample Values

1idtrueIntegerid NCC

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

1codeInteger0: thành công còn lại thất bại

2messageStringmessage

Panel
titleAPI thêm mới/ cập nhật NCC

Method

GET

URL

application/organization/update

Description

API thêm mới/ cập nhật NCC

Note

API cũ, sửa lại

1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorization<token>Token của người dùng đăng nhậpBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k

2. Request

STT

Field

Require

Data Type / Length

Description

Note

Sample Values

1idtrueIntegerid NCC

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

1codeInteger0: thành công còn lại thất bại

2messageStringmessage

3resultObjectkết quả trả ra

4(result) idIntegerid NCC

5(result) contactOrgStringNgười liên tục

6(result) capacityProfileStringhồ sơ năng lực



7(result) typeIntegerLoại

8(result) nameStringtên NCC

9(result) taxCodeStringmã số thuế

11(result) evaluationGradeStringXếp hạng đánh giá

12(result) cityIdIntegerthành phố

13(result) districtIdIntegerhuyện

14(result) subdistrictIdInteger

15(result) addressStringđịa chỉ

16(result) legalRepresentativeStringđại diện pháp lý

17(result) businessIdIntegerid ngành nghề chính

18(result) activeIntegertrạng thái

19(result) cityNameStringhuyện

20(result) districtNameStringthành phố

21(result) subdistrictNameString

22(result) businessNameStringtên ngành nghề chính

23(result) fieldNameStringtên lĩnh vực chính

24(result) evaluationGradeStringxếp hạng

25(result) evaluationScoreStringđiểm đánh giá

26(result) supplierRatingRecommendedStringđề xuất

27(result) completionDateStringngày hoàn thành

28(result) fieldsList<Object>Danh sách Lĩnh vực phụ

29(fields) idIntegerid

30(fields) organizationIdIntegerid NCC

31(fields) fieldIdIntegerid lĩnh vực

32(fields) fieldNameStringtên lĩnh vực

33(result) businessesList<Object>Danh sách Ngành nghề phụ

34(businesses) idIntegerid

35(businesses) organizationIdIntegerid NCC

36(businesses) businessIdIntegerid ngành nghề phụ

37(businesses) businessNameStringtên ngành nghề phụ

38(result) bankAccountsList<Object>Danh sách tài khoản ngân hàng

39(bankAccounts) idIntegerid

40(bankAccounts) organizationIdIntegerid NCC

41(bankAccounts) bankNameStringtên ngân hàng

42(bankAccounts) accountNumberStringsố tài khoản

43(bankAccounts) accountHolderStringtên tài khoản

44(bankAccounts) isDefaultIntegerđánh dấu có mặc định hay không. 1: mặc định, 0: không mặc định

3.4 Mô tả các trường dữ liệu trên màn hình:

...