github.com/qri-io/qri@v0.10.1-0.20220104210721-c771715036cb/api/testdata/api.snapshot (about)

     1  /* snapshot: TestFSIHandlers checkout case 0: POST /me/movies */
     2  HTTP/1.1 500 Internal Server Error
     3  Connection: close
     4  
     5  {
     6    "meta": {
     7      "code": 500,
     8      "error": "need Dir to be a non-empty, absolute path"
     9    }
    10  }
    11  
    12  /* snapshot: TestFSIHandlers init case 0: POST / */
    13  HTTP/1.1 400 Bad Request
    14  Connection: close
    15  
    16  {
    17    "meta": {
    18      "code": 400,
    19      "error": "dataset name must start with a lower-case letter, and only contain lower-case letters, numbers, dashes, and underscore. Maximum length is 144 characters"
    20    }
    21  }
    22  
    23  /* snapshot: TestFSIHandlers init case 1: POST /me/api_test_init_dataset?targetdir=fsi_tests/init_dir&format=csv */
    24  HTTP/1.1 200 OK
    25  Connection: close
    26  Content-Type: application/json
    27  
    28  {
    29    "data": "peer/api_test_init_dataset",
    30    "meta": {
    31      "code": 200
    32    }
    33  }
    34  
    35  /* snapshot: TestFSIHandlers init case 2: POST /me/api_test_init_dataset?targetdir=fsi_tests/init_dir&format=csv */
    36  HTTP/1.1 500 Internal Server Error
    37  Connection: close
    38  
    39  {
    40    "meta": {
    41      "code": 500,
    42      "error": "working directory is already linked, .qri-ref exists"
    43    }
    44  }
    45  
    46  /* snapshot: TestHealthCheck health check case 0: GET / */
    47  HTTP/1.1 200 OK
    48  Connection: close
    49  
    50  { "meta": { "code": 200, "status": "ok", "version":"test_version" }, "data": [] }