1 parent
16d8426119
commit
66158e222e
398 files changed
+85259
-270637
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# validate-api.sh - Validate API specification
|
||||
# Usage: ./validate-api.sh <openapi_spec>
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SPEC_FILE="${{1:?Usage: $0 <openapi_spec>}}"
|
||||
|
||||
echo "Validating API spec: $SPEC_FILE"
|
||||
|
||||
# TODO: Add API validation
|
||||
# - Validate OpenAPI/Swagger syntax
|
||||
# - Check endpoint naming conventions
|
||||
# - Verify response schemas
|
||||
# - Check for required headers
|
||||
# - Validate authentication definitions
|
||||
|
||||
echo "API validation complete."
|
||||
@@ -0,0 +1,22 @@
|
||||
# API Endpoint Scaffold
|
||||
# TODO: Customize for your API framework
|
||||
|
||||
openapi: "3.0.3"
|
||||
info:
|
||||
title: "API Service"
|
||||
version: "1.0.0"
|
||||
|
||||
paths:
|
||||
/api/v1/resource:
|
||||
get:
|
||||
summary: "List resources"
|
||||
# TODO: Define parameters and responses
|
||||
responses:
|
||||
"200":
|
||||
description: "Success"
|
||||
post:
|
||||
summary: "Create resource"
|
||||
# TODO: Define request body and responses
|
||||
responses:
|
||||
"201":
|
||||
description: "Created"
|
||||
Reference in new issue
Block a user