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>

Panel
titleAPI Spec Documentthêm mới YCLR

Method

POST

URL

/application/supplierEvaluationClarification/insert

Description

API thêm mới YCLR

Note

API mới

1. Headers

STT

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2.

Body

Request body

STT

STT 

Path

Field

Field

Required

Data Type / Length

Description

Note

Sample Values

1potIdtrueIntegerpotId hồ sơ đánh giá (lấy từ quy trình)
2contactIdtrueIntegerid người liên hệ
3processIdtrueIntegerid lấy từ 
4nametrueStringtên YCLR
5contenttrueStringNội dung YCLR
6attachmentstrueStringfile đính kèm
7contactNametrueStringtên người liên hệ
8contactEmailtrueStringemail người liên hệ
9orgNametrueStringtên NCC

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

Sample Values

1codeInteger0: thành công, != 0 thất bại

Danh sách code báo lỗi:

120: "không tìm thấy thông tin đánh giá nhà cung cấp!"
500: "Lỗi hệ thống. Chi tiết: %s"
2messageStringmessage trả về
3resultObjectObject
4

(result) id

IntegerId YCLRid YCLR
5

(result) potId

IntegerpotId hồ sơ đánh giá (lấy từ quy trình)
6

(result) suppplierEvaluationId

Integerid hồ sơ đánh giá
7

(result) employeeId

Integerngười gửi đánh giá
8

(result) contactId

Integerid người liên hệ
9

(result) name

Stringtên YCLR
10

(result) content

StringNội dung YCLR
11

(result) attachments

Stringfile đính kèm
12

(result) orgName

StringTên NCC

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

...