APOD API service
Use this sub-skill when the task is to run apod-api, query /v1/apod, choose
date, count, start_date, or end_date, diagnose Flask 400/404 responses,
check the service version, or investigate NASA APOD availability.
Route
- Read API reference before constructing a
request. It is the authority for the implemented route, query combinations,
boolean parsing, response fields, and error envelopes.
- Follow workflows to install the public runtime,
inspect routes without network access, run the bounded startup wrapper, and
issue client requests.
- Use troubleshooting for malformed input,
missing routes, APOD HTML/network failures, the volatile cache, static
fallback assets, and missing concept-tag credentials.
- Keep standalone JSON accessors and image conversion in
parser-and-media. Keep Gunicorn, Docker,
Compose, and Locust operations in
deployment-and-operations.
- For repository-wide issues, also consult the shared
troubleshooting guide.
Safe operating boundary
The service scrapes the live APOD website; a successful request is therefore a
network-dependent observation, not an offline fixture lookup. concept_tags
requires a credential-bound Alchemy integration and is deliberately documented
as degraded when that credential is absent. Do not put API keys or credentials
in commands, scripts, or skill files.
The distribution declares version 1.1.0 and Python >=3.12; the Flask service
itself returns service_version: "v1". The current project metadata is not
safe to treat as a default editable setuptools install: flat-layout discovery
sees top-level apod, apod_parser, static, templates, and skills as
ambiguous. The workflow documents a non-editable runtime setup instead of
hiding this packaging limitation.
Verification hooks
The bundled scripts/run_service.py must pass --help and
--inspect-routes without contacting APOD. Whole-skill integration should
later run the safe application-import and custom-404 candidates, then add
synthetic conflicting-query and upstream-outage cases before claiming native
service coverage.
1---2name: api-service3description: "Operate the apod-api Flask service locally or from an API client:4 start it safely, construct valid APOD queries, interpret responses and errors,5 and troubleshoot upstream, cache, CORS, and static-asset behavior."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/api-service9 disco-role: operating10license: Apache 2.011---1213# APOD API service1415Use this sub-skill when the task is to run `apod-api`, query `/v1/apod`, choose16`date`, `count`, `start_date`, or `end_date`, diagnose Flask 400/404 responses,17check the service version, or investigate NASA APOD availability.1819## Route20211. Read [API reference](references/api-reference.md) before constructing a22 request. It is the authority for the implemented route, query combinations,23 boolean parsing, response fields, and error envelopes.242. Follow [workflows](references/workflows.md) to install the public runtime,25 inspect routes without network access, run the bounded startup wrapper, and26 issue client requests.273. Use [troubleshooting](references/troubleshooting.md) for malformed input,28 missing routes, APOD HTML/network failures, the volatile cache, static29 fallback assets, and missing concept-tag credentials.304. Keep standalone JSON accessors and image conversion in31 [parser-and-media](../parser-and-media/SKILL.md). Keep Gunicorn, Docker,32 Compose, and Locust operations in33 [deployment-and-operations](../deployment-and-operations/SKILL.md).345. For repository-wide issues, also consult the shared35 [troubleshooting guide](../../references/troubleshooting.md).3637## Safe operating boundary3839The service scrapes the live APOD website; a successful request is therefore a40network-dependent observation, not an offline fixture lookup. `concept_tags`41requires a credential-bound Alchemy integration and is deliberately documented42as degraded when that credential is absent. Do not put API keys or credentials43in commands, scripts, or skill files.4445The distribution declares version `1.1.0` and Python `>=3.12`; the Flask service46itself returns `service_version: "v1"`. The current project metadata is not47safe to treat as a default editable setuptools install: flat-layout discovery48sees top-level `apod`, `apod_parser`, `static`, `templates`, and `skills` as49ambiguous. The workflow documents a non-editable runtime setup instead of50hiding this packaging limitation.5152## Verification hooks5354The bundled `scripts/run_service.py` must pass `--help` and55`--inspect-routes` without contacting APOD. Whole-skill integration should56later run the safe application-import and custom-404 candidates, then add57synthetic conflicting-query and upstream-outage cases before claiming native58service coverage.