initial version of endpoint
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
package models
|
||||
|
||||
type IncidentResponse struct {
|
||||
ImportSet string `json:"import_set"`
|
||||
StagingTable string `json:"staging_table"`
|
||||
Result []struct {
|
||||
TransformMap string `json:"transform_map"`
|
||||
Table string `json:"table"`
|
||||
DisplayName string `json:"display_name"`
|
||||
DisplayValue string `json:"display_value"`
|
||||
RecordLink string `json:"record_link"`
|
||||
Status string `json:"status"`
|
||||
SysID string `json:"sys_id"`
|
||||
}
|
||||
ImportSet string `json:"import_set"`
|
||||
StagingTable string `json:"staging_table"`
|
||||
Result []IncidentResultItem `json:"result"`
|
||||
}
|
||||
|
||||
type IncidentResultItem struct {
|
||||
TransformMap string `json:"transform_map"`
|
||||
Table string `json:"table"`
|
||||
DisplayName string `json:"display_name"`
|
||||
DisplayValue string `json:"display_value"`
|
||||
RecordLink string `json:"record_link"`
|
||||
Status string `json:"status"`
|
||||
SysID string `json:"sys_id"`
|
||||
}
|
||||
|
||||
type Incident struct {
|
||||
@@ -33,3 +35,19 @@ type Incident struct {
|
||||
Category string `json:"category,omitempty"`
|
||||
SubCategory string `json:"subcategory,omitempty"`
|
||||
}
|
||||
|
||||
// {
|
||||
// "import_set": "ABC12345",
|
||||
// "staging_table": "foobar1",
|
||||
// "result": [
|
||||
// {
|
||||
// "transform_map": "Incident Import",
|
||||
// "table": "incident",
|
||||
// "display_name": "number",
|
||||
// "display_value": "TKT000123",
|
||||
// "record_link": "https://server.fqdn.com/api/now/table/incident/640f831720eb48a107653be1b4d87225",
|
||||
// "status": "inserted",
|
||||
// "sys_id": "640f831720eb48a107653be1b4d87225"
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
|
Reference in New Issue
Block a user