DataBookkeeping

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 25 Imported by: 0

README

DataBookkeeping Service

build status go report card godoc

Data Bookkeeping service

APIs
public APIs
  • /datasets get all datasets
  • /files get all files
  • /dataset/*name get dataset with given name
  • /file/*name get file with given name
Example

Here are examples of GET HTTP requests

# look-up all datasets
curl -v http://localhost:8310/datasets

# look-up concrete dataset=/x/y/z
dataset=/x/y/z
curl -v http://localhost:8310/dataset$dataset

# look-up files from a dataset
curl -v "http://localhost:8310/file?dataset=$dataset"
protected APIs
  • HTTP POST requests
    • /dataset create new dataset data
    • /file create new file data
  • HTTP PUT requests
    • /dataset update dataset data
    • /file update file data
  • HTTP DELETE requests
    • /dataset/*name delete dataset
    • /file/*name delete file
Example

Here is an example of HTTP POST request

# record.json
{
  "buckets": [
    "bucketABC"
  ],
  "did": "/a/b/c",
  "files": [
    "/path/file1.png",
    "/path/file2.png",
    "/path/file3.png"
  ],
  "processing": "glibc",
  "site": "Cornell"
}

# inject new record
curl -v -X POST -H "Authorization: Bearer $token" \
    -H "Content-type: application/json" \
    -d@./record.json \
    http://localhost:8310/dataset

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL