typespec-api-operations

Solid

Add GET, POST, PATCH, and DELETE operations to a TypeSpec API plugin with proper routing, parameters, and adaptive cards

AI & Automation 34,233 stars 4188 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Add TypeSpec API Operations Add RESTful operations to an existing TypeSpec API plugin for Microsoft 365 Copilot. ## Adding GET Operations ### Simple GET - List All Items ```typescript /** * List all items. */ @route("/items") @get op listItems(): Item[]; ``` ### GET with Query Parameter - Filter Results ```typescript /** * List items filtered by criteria. * @param userId Optional user ID to filter items */ @route("/items") @get op listItems(@query userId?: integer): Item[]; ``` ### GET with Path Parameter - Get Single Item ```typescript /** * Get a specific item by ID. * @param id The ID of the item to retrieve */ @route("/items/{id}") @get op getItem(@path id: integer): Item; ``` ### GET with Adaptive Card ```typescript /** * List items with adaptive card visualization. */ @route("/items") @card(#{ dataPath: "$", title: "$.title", file: "item-card.json" }) @get op listItems(): Item[]; ``` **Create the Adaptive Card** (`appPackage/item-card.json`): ```json { "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.5", "body": [ { "type": "Container", "$data": "${$root}", "items": [ { "type": "TextBlock", "text": "**${if(title, title, 'N/A')}**", "wrap": true }, { "type": "TextBlock", "text": "${if(description, description, 'N/A')}", "wrap": true } ] } ], "actions": [ {...

Details

Author
github
Repository
github/awesome-copilot
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

typespec-create-api-plugin

Generate a TypeSpec API plugin with REST operations, authentication, and Adaptive Cards for Microsoft 365 Copilot

34,233 Updated today
github
AI & Automation Solid

typespec-create-agent

Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot

34,233 Updated today
github
AI & Automation Solid

typespec-sdk-generator

Microsoft TypeSpec-based API and SDK generation

1,160 Updated today
a5c-ai
Web & Frontend Listed

specgen-react-mui

Generate a detailed specification document for building a React SPA (Single Page Application) using React 19, TypeScript 5, Vite 6, Material UI (MUI) v6, React Router v7, TanStack Query v5, Zustand v5, React Hook Form v7, and Zod v3. Authentication (Keycloak OAuth2/OIDC PKCE, generic OIDC, or none), API integration (REST via Axios), and optional features (WebSocket, i18n, MUI X Data Grid, MUI X Charts) are configurable based on user input. Standardized input: application name (mandatory), version (mandatory), module (optional). Use this skill whenever the user asks to create a spec, specification, blueprint, or technical design document for a new React SPA or frontend application. Also trigger when the user says things like "spec out a new React project", "design a React SPA", "write a technical spec for my new frontend app", "scaffold spec for a React MUI app", or any request for a specification document describing a React + MUI + TypeScript application. Even if the user only mentions a subset of the stack (

3 Updated 3 days ago
rashidee
AI & Automation Solid

mcp-create-adaptive-cards

Skill converted from mcp-create-adaptive-cards.prompt.md

34,233 Updated today
github