| name | api-info |
| description | Retrieve general API information including server details, supported endpoints, API version, and
contact information. Use to verify Weaver instance availability and get basic service metadata.
|
| license | Apache-2.0 |
| compatibility | Requires Weaver API access. |
| metadata | {"author":"fmigneault"} |
Get API Information
Retrieve general API information and server metadata.
When to Use
- Verifying Weaver instance availability
- Getting API endpoints and capabilities
- Checking server configuration
- Discovering supported features
- Integration and connectivity testing
Parameters
None required - operates on the base API URL.
CLI Usage
weaver info -u $WEAVER_URL
weaver info -u https://weaver.example.com
Python Usage
from weaver.cli import WeaverClient
client = WeaverClient(url="https://weaver.example.com")
info = client.info()
print(f"API Title: {info.body.get('title')}")
print(f"Description: {info.body.get('description')}")
print(f"Contact: {info.body.get('contact')}")
for link in info.body.get("links", []):
print(f"{link['rel']}: {link['href']}")
API Request
GET /
Accept: application/json
Returns
{
"title": "Weaver",
"description": "Weaver: OGC API - Processes with Workflow Capabilities",
"attribution": "© 2020-2026 CRIM",
"type": "application",
"configuration": "HYBRID",
"contact": {
"name": "CRIM",
"url": "https://crim.ca"
},
"links": [
{
"rel": "service-desc",
"type": "application/openapi+json;version=3.0",
"title": "OpenAPI definition",
"href": "https://weaver.example.com/api"
},
{
"rel": "processes",
"type": "application/json",
"title": "List of processes",
"href": "https://weaver.example.com/processes"
},
{
"rel": "jobs",
"type": "application/json",
"title": "List of jobs",
"href": "https://weaver.example.com/jobs"
},
{
"rel": "providers",
"type": "application/json",
"title": "List of providers",
"href": "https://weaver.example.com/providers"
}
]
}
Note: Response may include additional fields. See
API documentation for complete response schemas.
Response Fields
Server Information
- title: Service title
- description: Service description
- attribution: Copyright and attribution
- configuration: Weaver mode (EMS, ADES, HYBRID)
Contact Information
- name: Organization name
- url: Organization website
- email: Contact email (if provided)
Links
- service-desc: OpenAPI specification
- processes: Process listing endpoint
- jobs: Job listing endpoint
- providers: Provider listing endpoint
- conformance: Conformance declaration
Configuration Modes
- EMS: Execution Management Service (orchestrates remote ADES)
- ADES: Application Deployment and Execution Service (local execution)
- HYBRID: Both EMS and ADES capabilities
Use Cases
Health Check
if weaver info -u $WEAVER_URL > /dev/null 2>&1; then
echo "Weaver is available"
else
echo "Weaver is not responding"
fi
Service Discovery
info = client.info()
endpoints = {link["rel"]: link["href"] for link in info.body["links"]}
print(f"Processes endpoint: {endpoints.get('processes')}")
print(f"Jobs endpoint: {endpoints.get('jobs')}")
Configuration Check
info = client.info()
config = info.body.get("configuration")
if config == "HYBRID":
print("This Weaver supports both local and remote execution")
elif config == "EMS":
print("This Weaver orchestrates remote ADES instances")
elif config == "ADES":
print("This Weaver performs local execution only")
Related Skills
Documentation