api-gleam

Design REST/JSON API patterns for Gleam web services using Wisp and Mist.

2|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/aboio-labs/aboio-skills --skill api-gleam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-gleam
Source: https://github.com/aboio-labs/aboio-skills/tree/main/skills/api-gleam
Command: npx skills add https://github.com/aboio-labs/aboio-skills --skill api-gleam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides battle-tested patterns for designing consistent, maintainable REST APIs in Gleam, ensuring a predictable and robust developer experience.

Core Features & Use Cases

  • Canonical Error Handling: Standardizes error responses across all endpoints for programmatic client handling.
  • Route Design: Enforces RESTful conventions using plural nouns and sub-resources for clear API structure.
  • Use Case: When building a new /users endpoint, use this Skill's patterns to define its route, error responses, and JSON serialization for consistency with existing API resources.

Quick Start

Use the api-gleam skill to design a new RESTful route for managing user profiles.

Frequently Asked Questions about api-gleam

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design REST API routes in Gleam using Wisp and Mist?

To handle REST API errors in Gleam, implement a canonical error response structure to standardize outputs across all endpoints. This ensures predictable, programmatic client handling for validation errors and request failures.

How do I structure JSON serialization contracts for a Gleam web service?

To implement HAL pagination in a Gleam REST API, use hypermedia links to navigate resource collections. This pattern standardizes pagination structures within your JSON responses for consistent client traversal.

Can I integrate SPA routing with a Gleam backend using Wisp?

To map validation errors in a Gleam REST API, translate validation failures into the canonical error response structure. This provides standardized, programmatic feedback for invalid client requests.

What is the best way to compose middleware in a Gleam Mist web service?

To dispatch requests in a Gleam REST API, use request dispatch mechanisms to route incoming HTTP requests to the correct handlers. This pattern integrates with Wisp and Mist to process API calls efficiently.