POST api/MyGroup_Role/All?api={api}

Thêm mới nhieu dữ liệu

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

Mã API do hệ thống cung cấp

string

Required

Body Parameters

GroupRoleAll
NameDescriptionTypeAdditional information
idgroup

ID group dạng chuỗi

string

None.

listaction

Danh sach ID role dạng số

Collection of BSRoleAction

None.

Request Formats

application/json, text/json

Sample:
{
  "idgroup": "sample string 1",
  "listaction": [
    {
      "role": 1,
      "action": "sample string 2"
    },
    {
      "role": 1,
      "action": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<GroupRoleAll xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
  <idgroup>sample string 1</idgroup>
  <listaction>
    <BSRoleAction>
      <action>sample string 2</action>
      <role>1</role>
    </BSRoleAction>
    <BSRoleAction>
      <action>sample string 2</action>
      <role>1</role>
    </BSRoleAction>
  </listaction>
</GroupRoleAll>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DataInsert
NameDescriptionTypeAdditional information
status

Trạng thái trả về dữ liệu: success, error

string

None.

message

Nội dung thông báo

string

None.

codemessage

Mã code trả về

string

None.

id

Giá trị cột khóa chính của bảng vừa thêm

string

None.

code

Giá trị mã của bảng vừa thêm(nếu có)

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "message": "sample string 2",
  "codemessage": "samplestring2",
  "id": "sample string 4",
  "code": "sample string 5"
}

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"status":"sample string 1","message":"sample string 2","codemessage":"samplestring2","id":"sample string 4","code":"sample string 5"});

application/xml, text/xml

Sample:
<DataInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
  <code>sample string 5</code>
  <codemessage>samplestring2</codemessage>
  <id>sample string 4</id>
  <message>sample string 2</message>
  <status>sample string 1</status>
</DataInsert>