Tạo endpoint api khách hàng
Bổ sung cấu hình API
I. Cấu hình DB
// Paste vào hàm Main
Console.WriteLine(EncryptString(Code, SemiSecret)); // Lấy mã vừa sinh là Code'II. Vào source API_SMSNoti
// Example
// Trong đó:
// Location là group Endpoint
// GetCommune là tên định danh của endpoint
// Code' là code đã được encrypt ở bước I.4
private static Dictionary<string, Dictionary<string, string>> APIPerCodeKey = new Dictionary<string, Dictionary<string, string>>
{
{ "Location", new Dictionary<string, string>
{
{ "GetCommune", "Code'" },// KEY
}
},
};III. Ở API_SMSNoti tạo API
Last updated