Discovery

command module
v0.0.0-...-72e9fd6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 10 Imported by: 0

README

Discovery Service

Discovery service for OreCast.

OreCast APIs
public APIs
  • /sites get all sites
Example
# get all sites records
curl http://localhost:8320/sites
protected APIs
  • /sites post new site data
  • /site/:site delete site data
Example
# record.json
{
    "name":"Cornell",
    "description": "Cornell minerals site",
    "url": "http://127.0.0.1:8330",
    "access_key": "abc",
    "access_secret": "xyz",
    "use_ssl": false,
    "endpoint": "localhost:8330"
}

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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