POST api/Accounts

Request Information

URI Parameters

None.

Body Parameters

Account
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

string

None.

AccountName

string

None.

Email

string

None.

InsertDateTime

date

None.

AccountSelections

Collection of AccountSelection

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": "sample string 2",
  "AccountName": "sample string 3",
  "Email": "sample string 4",
  "InsertDateTime": "2021-02-25T04:58:49.490854+03:30",
  "AccountSelections": [
    {
      "$id": "2",
      "Id": 1,
      "Account_Id": 1,
      "Book_Id": 1,
      "InsertDateTime": "2021-02-25T04:58:49.490854+03:30",
      "CustomAction1": true,
      "CustomAction2": true,
      "CustomAction3": true,
      "Discription1": "sample string 2",
      "Discription2": "sample string 3",
      "Account": {
        "$ref": "1"
      },
      "Book": {
        "$id": "3",
        "Id": 1,
        "ISBN": "sample string 2",
        "Title": "sample string 3",
        "Author": "sample string 4",
        "Publisher": "sample string 5",
        "Price": "sample string 6",
        "PublishDate": "sample string 7",
        "Subject": "sample string 8",
        "Section": "sample string 9",
        "Saloon": "sample string 10",
        "Corridor": "sample string 11",
        "Booth": "sample string 12",
        "Link": "sample string 13",
        "Lang": "sample string 14",
        "InsertDateTime": "2021-02-25T04:58:49.490854+03:30",
        "Distributor": "sample string 15",
        "Translator": "sample string 16",
        "BookID": "sample string 17",
        "PubID": "sample string 18",
        "AccountSelections": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ],
        "BookDetails": [
          {
            "$id": "4",
            "Id": 1,
            "Book_Id": 1,
            "PhotoLink": "sample string 2",
            "Translator": "sample string 3",
            "Description1": "sample string 4",
            "Description2": "sample string 5",
            "Book": {
              "$ref": "3"
            }
          },
          {
            "$ref": "4"
          }
        ],
        "OfficialSelectionLists": [
          {
            "$id": "5",
            "Id": 1,
            "Official_Id": 1,
            "Book_Id": 1,
            "YearSelection": 1,
            "InsertDateTime": "2021-02-25T04:58:49.490854+03:30",
            "GroupSelection_Id": 1,
            "Priority": 1,
            "Book": {
              "$ref": "3"
            },
            "GroupSelection": {
              "$id": "6",
              "Id": 1,
              "Title": "sample string 2",
              "OfficialSelectionLists": [
                {
                  "$ref": "5"
                },
                {
                  "$ref": "5"
                }
              ]
            },
            "Official": {
              "$id": "7",
              "Id": 1,
              "Title": "sample string 2",
              "OfficialSelectionLists": [
                {
                  "$ref": "5"
                },
                {
                  "$ref": "5"
                }
              ]
            }
          },
          {
            "$ref": "5"
          }
        ]
      }
    },
    {
      "$ref": "2"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Account
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

string

None.

AccountName

string

None.

Email

string

None.

InsertDateTime

date

None.

AccountSelections

Collection of AccountSelection

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": "sample string 2",
  "AccountName": "sample string 3",
  "Email": "sample string 4",
  "InsertDateTime": "2021-02-25T04:58:49.5377108+03:30",
  "AccountSelections": [
    {
      "$id": "2",
      "Id": 1,
      "Account_Id": 1,
      "Book_Id": 1,
      "InsertDateTime": "2021-02-25T04:58:49.5377108+03:30",
      "CustomAction1": true,
      "CustomAction2": true,
      "CustomAction3": true,
      "Discription1": "sample string 2",
      "Discription2": "sample string 3",
      "Account": {
        "$ref": "1"
      },
      "Book": {
        "$id": "3",
        "Id": 1,
        "ISBN": "sample string 2",
        "Title": "sample string 3",
        "Author": "sample string 4",
        "Publisher": "sample string 5",
        "Price": "sample string 6",
        "PublishDate": "sample string 7",
        "Subject": "sample string 8",
        "Section": "sample string 9",
        "Saloon": "sample string 10",
        "Corridor": "sample string 11",
        "Booth": "sample string 12",
        "Link": "sample string 13",
        "Lang": "sample string 14",
        "InsertDateTime": "2021-02-25T04:58:49.5377108+03:30",
        "Distributor": "sample string 15",
        "Translator": "sample string 16",
        "BookID": "sample string 17",
        "PubID": "sample string 18",
        "AccountSelections": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ],
        "BookDetails": [
          {
            "$id": "4",
            "Id": 1,
            "Book_Id": 1,
            "PhotoLink": "sample string 2",
            "Translator": "sample string 3",
            "Description1": "sample string 4",
            "Description2": "sample string 5",
            "Book": {
              "$ref": "3"
            }
          },
          {
            "$ref": "4"
          }
        ],
        "OfficialSelectionLists": [
          {
            "$id": "5",
            "Id": 1,
            "Official_Id": 1,
            "Book_Id": 1,
            "YearSelection": 1,
            "InsertDateTime": "2021-02-25T04:58:49.5377108+03:30",
            "GroupSelection_Id": 1,
            "Priority": 1,
            "Book": {
              "$ref": "3"
            },
            "GroupSelection": {
              "$id": "6",
              "Id": 1,
              "Title": "sample string 2",
              "OfficialSelectionLists": [
                {
                  "$ref": "5"
                },
                {
                  "$ref": "5"
                }
              ]
            },
            "Official": {
              "$id": "7",
              "Id": 1,
              "Title": "sample string 2",
              "OfficialSelectionLists": [
                {
                  "$ref": "5"
                },
                {
                  "$ref": "5"
                }
              ]
            }
          },
          {
            "$ref": "5"
          }
        ]
      }
    },
    {
      "$ref": "2"
    }
  ]
}