Spaces:
Sleeping
Sleeping
|
Download http/README.md from EAT-Prototypes/jellyscope: direct link, hf CLI and curl.
- Browser
- Download file 2.1 kB
-
https://huggingface.co/spaces/EAT-Prototypes/jellyscope/resolve/main/http/README.md
- Command line
-
hf download hf://spaces/EAT-Prototypes/jellyscope/http/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EAT-Prototypes/jellyscope/resolve/main/http/README.md
2.1 kB
HTTP Requests
Executable .http files for every Jellyscope REST endpoint. Open any of them in
an IDE that supports the .http format and click "Send Request" next to a
### Title block.
Compatible clients
- VS Code REST Client extension
- JetBrains HTTP Client (built into IntelliJ IDEA, PyCharm, WebStorm, etc.)
Both honor the ### Title separator, the @host = ... variable syntax, and
inline comments starting with #.
Setup
- Start the dev server:
This bindsjust serve-dev127.0.0.1:5000(the default@hostin_env.http). - Open any
*.httpfile in this directory and click the "Send Request" lens above the request you want to run.
File map
| File | Endpoints |
|---|---|
pages.http |
GET / |
datasets.http |
dataset, datacube, and filter discovery |
viewer.http |
single-band and RGB viewer figures |
clumps.http |
clump list, pairwise separations, single clump detail |
pixel.http |
pixel-to-clump lookup |
_env.http defines the shared @host variable. Every other file imports it via
the {{host}} placeholder. To target a deployed instance, edit _env.http or
override @host at the top of an individual file.
Example values
The example values come from real defaults:
dataset_name:default(fromDEFAULT_DATASETindata_store.py)datacube_name:nircamornircam_matched(fromdata_store.py)channel_index:7→ F200W (fromNIRCAM_WAVELENGTHSinconfig.py)- RGB defaults:
r=7(F200W),g=2(F115W),b=1(F090W) — matchDEFAULT_RGBinconfig.py clump_id:4(a real clump in the bundled dataset)- pixel coords:
72,20(sample inside a known clump)
Replace these with values appropriate for your dataset.
Source of truth
These files are kept in sync with src/jellyscope/web/routes.py and
src/jellyscope/model/schemas.py. When endpoints change, update the matching
.http block.