home/coding/microcks-metadata-groovyscript-instructions

Microcks Metadata Groovyscript.instructions

GPTClaudeDeepSeek··1,177 copies·updated 2026-07-14
microcks-metadata-groovyscript-instructions.prompt
---
applyTo: '**/*.apimetadata.yaml'
---

# Microcks Metadata Construction – SCRIPT Dispatcher

## Purpose
Guide for building Microcks APIMetadata files using the SCRIPT dispatcher for advanced dispatching logic.

## Workflow
1. Identify the target operation (method + path) from the OpenAPI contract.
2. For each operation, define the dispatcher as `SCRIPT`.
3. Write a Groovy script in `dispatcherRules` to select the response based on request content.

## Example

when to use it

Community prompt sourced from the open-source GitHub repo SebastienDegodez/copilot-instructions (Apache-2.0). A "Microcks Metadata Groovyscript.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

SebastienDegodez/copilot-instructions · Apache-2.0