Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

put contents over here(also add a limit for attachment size/sync or async)

API

Authentication:

Hit the below endpoint URL with parameters to get sessionKey

URL: https://netxtest.artic.edu/external/api/json

Body Parameters (required):

  • id

  • method

  • params

  • dataContext

  • jsonrpc

Example:

Request:

Code Block
languagejson
{
  "id":"13576991614322",
  "method":"authenticate",
  "params":["username", "password"],
  "dataContext":"json",
  "jsonrpc":"2.0"
}

Response:

Code Block
languagejson
{
    "result": {
        "sessionKey": "vhq6XpIrLdkCqirl2xFj8CEzk"
    },
    "id": "13576991614322",
    "jsonrpc": "2.0"
}

Create Asset: 2 step process

  • Step 1: Upload files to NetX server using below endpoint URL and parameters:

Response from Postman:

<exogen>done</exogen> with 200 status code

  • Step 2: Hit the create asset API using the below endpoint URL

    • URL: https://netxtest.artic.edu/external/api/json

    • Body Parameters (required):

      • sessionKey : sessionKey

      • Filedata: file.jpg

      • categoryId : categoryId (folder id)

      • Example:

        • Request

          Code Block
          languagejson
          {
            "id": "7441158495944158",
            "method": "createAssetFromFile",
            "params": [
              "vhq6XpIrLdkCqirl2xFj8CEzk",
              "TestImageN6.jpg", 
              403,
              {
                "data": [
                  "asset.id",
                  "asset.base",
                  "asset.file"
                ]
              }
            ],
            "dataContext": "json",
            "jsonrpc": "2.0"
          }

        • Response

          Code Block
          languagejson
          {
              "result": {
                  "id": 164608,
                  "name": "TestImageN6",
                  "fileName": "TestImageN6.jpg",
                  "creationDate": 1602769228000,
                  "importDate": 1602769228000,
                  "modDate": 1602769228000,
                  "file": {
                      "name": "TestImageN6.jpg",
                      "size": 33386,
                      "width": null,
                      "height": null,
                      "checksum": null,
                      "url": "/file/asset/164608/original/attachment"
                  },
                  "proxies": null,
                  "views": null,
                  "relatedAssets": null,
                  "folders": null,
                  "attributes": null
              },
              "id": "7441158495944158",
              "jsonrpc": "2.0"
          }

Get Asset:

Hit the below endpoint URL to get assets from specific folders

URL: https://netxtest.artic.edu/external/api/json

Body Parameters (required):

  • id

  • method

  • params

  • dataContext

  • jsonrpc

Example:

Request:

Code Block
languagejson
{
    "id":"13576991614322",
    "method":"getAssetsByFolder",
    "params":[
        "vhq6XpIrLdkCqirl2xFj8CEzk",
        403,
        false,
        {
            "page": {
                "startIndex": 0,
                "size": 5
            },
            "data": ["asset.id", "asset.base"]
        }
    ],
    "dataContext":"json",
    "jsonrpc":"2.0"
}

Response:

Code Block
languagejson
{
    "result": {
        "results": [
            {
                "id": 25263,
                "name": "Map: Impressionism in France",
                "fileName": "DS-CR1074.kml",
                "creationDate": 1596666194000,
                "importDate": 1596666194000,
                "modDate": 1597334777000,
                "file": null,
                "proxies": null,
                "views": null,
                "relatedAssets": null,
                "folders": null,
                "attributes": null
            },
            {
                "id": 25511,
                "name": "DS-CR1346-1",
                "fileName": "DS-CR1346-1.kml",
                "creationDate": 1596666364000,
                "importDate": 1596666364000,
                "modDate": 1597278457000,
                "file": null,
                "proxies": null,
                "views": null,
                "relatedAssets": null,
                "folders": null,
                "attributes": null
            },
            {
                "id": 14630,
                "name": "Map: African-American Art",
                "fileName": "DS-CR1346.kml",
                "creationDate": 1595976042000,
                "importDate": 1595976042000,
                "modDate": 1597334776000,
                "file": null,
                "proxies": null,
                "views": null,
                "relatedAssets": null,
                "folders": null,
                "attributes": null
            },
            {
                "id": 25356,
                "name": "Map: Rococo to Realism",
                "fileName": "DS-CR1347.kml",
                "creationDate": 1596666253000,
                "importDate": 1596666253000,
                "modDate": 1597334777000,
                "file": null,
                "proxies": null,
                "views": null,
                "relatedAssets": null,
                "folders": null,
                "attributes": null
            },
            {
                "id": 25496,
                "name": "Map: Winslow Homer's Locations",
                "fileName": "DS-CR1348.kml",
                "creationDate": 1596666355000,
                "importDate": 1596666355000,
                "modDate": 1597334778000,
                "file": null,
                "proxies": null,
                "views": null,
                "relatedAssets": null,
                "folders": null,
                "attributes": null
            }
        ],
        "size": 1853
    },
    "id": "13576991614322",
    "jsonrpc": "2.0"
}

CITI to Jira Fields

CITI Fields

Jira Fields

1

Object ID

Object ID

2

Object title

Object title

3

Department

Object Department

4

Location/Place Name

Location/Place Name

5

Artist

Artist

6

Object Type

Object Type

7

Thumbnail path

Thumbnail path

8

Place ID/Place shortcut codes

Place ID

9

Exhibition ID

Exhibition ID

10

Exhibition Title

Exhibition Title

11

Exhibition Opening Date

Exhibition Opening Date

12

Exhibition Closing Date

Exhibition Closing Date

13

Exhibition Curator

Exhibition Curator

...