SAP API Style Guide
Related Skills
- sap-cap-capire: Use for OData service documentation, CAP API patterns, and service definition standards
- sap-fiori-tools: Use for API consumption patterns, Fiori app integration, and OData best practices
- sap-abap: Use when documenting ABAP APIs, implementing REST services, or following API design patterns
- sapui5: Use for frontend API integration, OData consumption, and UI service patterns
- sap-btp-cloud-platform: Use for BTP service API documentation and integration patterns
Table of Contents
- Overview
- When to Use This Skill
- Quick Decision Tree
- Core Principles
- Quick Reference Tables
- Templates Available
- Reference Files
- Instructions for Use
- Common Pitfalls to Avoid
- External Resources
- Updates and Maintenance
- Common Issues
Overview
This skill provides comprehensive guidance for documenting SAP APIs according to official SAP API Style Guide standards. It covers all major API types and documentation approaches used across the SAP ecosystem.
Documentation Source: https://github.com/SAP-docs/api-style-guide (76 files extracted)
When to Use This Skill
Use this skill when:
- Creating API documentation for REST, OData, Java, JavaScript, .NET, or C/C++ APIs
- Writing OpenAPI specifications for SAP API Business Hub
- Reviewing API names for SAP naming convention compliance
- Documenting API parameters, responses, operations with proper formatting
- Creating manual API documentation using SAP templates
- Writing documentation comments in source code (Javadoc, JSDoc, XML comments)
- Implementing API deprecation following SAP lifecycle policies
- Developing developer guides or service documentation
- Performing quality checks on API documentation
- Publishing APIs to SAP API Business Hub
Quick Decision Tree
What Type of API?
REST/OData API
├─ Auto-generated (OpenAPI/Swagger)?
│ └─ references/rest-odata-openapi-guide.md
│ • OpenAPI specification standards
│ • Package, API, operation descriptions
│ • Parameters, responses, components
│ • SAP API Business Hub requirements
│
└─ Manually written?
└─ references/manual-templates-guide.md
• REST templates (2-level: overview → method)
• OData templates (3-level: service → resource → operation)
• Complete field requirements
• templates/ directory for ready-to-use files
Native Library API
├─ Java → references/java-javascript-dotnet-guide.md
├─ JavaScript → references/java-javascript-dotnet-guide.md
├─ .NET (C#) → references/java-javascript-dotnet-guide.md
└─ C/C++ → references/java-javascript-dotnet-guide.md
• Documentation comments structure
• Language-specific tags
• Templates for classes, methods, enums
• Complete code examples
What Task?
Naming
└─ references/naming-conventions.md
• REST/OData naming (resources, parameters, URIs)
• Native library naming (classes, methods, constants)
• Common mistakes to avoid
Writing Descriptions
└─ references/rest-odata-openapi-guide.md
• Package descriptions
• API details (info object)
• Operations, parameters, responses
Quality Assurance
└─ references/quality-processes.md
• Complete API Quality Checklist
• Review workflows
• Development team guidelines
Deprecating APIs
└─ references/deprecation-policy.md
• Lifecycle states (beta, active, deprecated, decommissioned)
• Timeline requirements (12+ months support)
• Required metadata (x-sap-stateInfo)
Developer Guides
└─ references/developer-guides.md
• Structure guidelines
• Content selection
• Code sample standards
Core Principles
1. Consistency Across SAP APIs
All SAP API documentation follows consistent conventions:
- Naming: Language-specific (camelCase, PascalCase, kebab-case)
- Structure: Hierarchical with clear navigation
- Formatting: Sentences start with capitals, end with periods
- Language: American English
2. API-Type-Specific Standards
| API Type |
Standard |
Tool |
Documentation |
| REST |
OpenAPI 3.0.3 |
Swagger |
Spec |
| OData |
v4.01, v3.0, v2.0 |
Various |
OData.org |
| Java |
Javadoc |
javadoc |
Oracle |
| JavaScript |
JSDoc 3 |
jsdoc |
JSDoc.app |
| .NET |
XML Comments |
DocFX |
Microsoft |
| C/C++ |
Doxygen |
doxygen |
Doxygen.nl |
3. Progressive Disclosure
Documentation organized hierarchically:
- High-level overviews provide context and navigation
- Detailed references cover specific APIs, methods, operations
- Examples and templates demonstrate practical usage
4. Quality Standards
All documentation must:
- ✅ Be reviewed by User Assistance (UA) developers
- ✅ Use consistent naming and terminology
- ✅ Include complete parameter and response descriptions
- ✅ Avoid sensitive data in examples
- ✅ Provide working code examples
- ✅ Maintain accurate links and cross-references
Quick Reference Tables
Character Limits
| Element |
Limit |
Use Case |
| API Title |
80 |
info.title in OpenAPI |
| API Short Text |
180 |
x-sap-shortText |
| Package Short Desc |
250 |
Package tile description |
| Operation Summary |
255 |
Operation summary line |
| Description |
1024 |
General descriptions |
API Naming Rules
General Rules (all API types):
- ❌ Don't include "API" in name:
"Custom Forms API" → ✅ "Custom Forms"
- ❌ Don't include "SAP" prefix:
"SAP Document Approval" → ✅ "Document Approval"
- ❌ Don't use verbs:
"Configuring Portal" → ✅ "Portal Configuration"
- ✅ Capitalize words properly
- ✅ Avoid technical specifics (REST, OData, etc.)
See references/naming-conventions.md for complete language-specific rules.
Common Documentation Tags
Java/JavaScript:
@param <name> <description> - Parameter documentation
@return <description> - Return value
@throws <class> <description> - Exception
@deprecated <description> - Deprecation notice
.NET:
<summary> - Brief description
<param name=""> - Parameter
<returns> - Return value
<exception cref=""> - Exception
See references/java-javascript-dotnet-guide.md for complete tag reference.
API Lifecycle States
| State |
Definition |
Support |
Metadata Required |
| Beta |
Pre-production testing |
No guarantees |
state: beta |
| Active |
Production-ready (default) |
Full support |
Optional |
| Deprecated |
Replaced by successor |
12+ months |
state, deprecationDate, successorApi |
| Decommissioned |
Fully retired |
None |
Document removal |
See references/deprecation-policy.md for complete timeline and process requirements.
Large Reference Search Routing
Search large references before loading them. Use rg -n "<resource|operation|parameter|description|template|deprecation|x-sap-stateInfo>" references/*.md to locate the exact rule, then open only the relevant excerpt.
- Use
references/manual-templates-guide.md for manually written REST/OData documentation templates. Search for REST API Template, OData Operation Template, field requirements, method, or the resource name.
- Use
references/rest-odata-openapi-guide.md for OpenAPI, OData, operation descriptions, responses, parameters, and SAP API Business Hub publication checks.
- Use
references/naming-conventions.md for resource, operation, package, class, method, parameter, enum, and constant naming.
- Use
references/java-javascript-dotnet-guide.md for Javadoc, JSDoc, XML doc comments, and native SDK documentation tags.
- Use
references/deprecation-policy.md for lifecycle state, migration guidance, and x-sap-stateInfo.
- Use
references/quality-processes.md for review checklists, gates, and documentation quality workflows.
Templates Available
Ready-to-use templates in templates/ directory:
REST API Templates (2-Level)
- rest-api-overview-template.md - Resource-level overview
- rest-api-method-template.md - Individual endpoint details
OData API Templates (3-Level)
- odata-service-overview-template.md - Complete service overview
- odata-resource-template.md - Individual resource/entity set
- odata-operation-template.md - Specific operation details
All templates include:
- Clear "How to Use" instructions
- [Placeholder text] for customization
- Complete section structure
- Working examples
- Inline guidance
Reference Files
Complete Guides Available
rest-odata-openapi-guide.md (2,800 lines)
- Complete OpenAPI specification guidelines
- Package, API, operation descriptions
- Parameters, responses, components
- Security schemes, tags, external docs
- Character limits and anti-patterns
manual-templates-guide.md (2,765 lines)
- REST API templates (2-level hierarchy)
- OData API templates (3-level hierarchy)
- Complete template structures
- Field-by-field requirements
- Best practices and examples
naming-conventions.md (2,059 lines)
- REST/OData naming rules (resources, parameters, URIs)
- Native library naming (classes, methods, constants, packages)
- Language-specific conventions
- Common mistakes with fixes
- Decision trees and reference tables
quality-processes.md (1,774 lines)
- Complete API Quality Checklist
- Review workflows (developer + UA collaboration)
- Development team guidelines
- Common review findings and solutions
- Process flowcharts
java-javascript-dotnet-guide.md (1,517 lines)
- Documentation comments structure
- Language-specific tags (Java, JavaScript, .NET, C/C++)
- Templates for classes, methods, enums
- Complete code examples
- Best practices by language
developer-guides.md (704 lines)
- Guide structure standards
- Topic types (concept, reference, task)
- Content selection criteria
- Code sample standards (compilable, concise, commented)
- Best practices
deprecation-policy.md (664 lines)
- API lifecycle states (beta, active, deprecated, decommissioned)
- Timeline requirements (12+ months support, 24+ months lifespan)
- Required metadata (x-sap-stateInfo, artifact.json)
- Decommission process
- Complete examples
glossary-resources.md (472 lines)
Complete terminology definitions (API, OData, OpenAPI, etc.)
External resource links (standards, tools, SAP resources)
Quick reference tables
Tool documentation links
Content extraction and organization tracking
Source file mapping from SAP documentation
Consolidation and adaptation notes
Bundled Resources
This skill includes comprehensive documentation and templates organized for optimal use:
Reference Guides (references/)
- 9 detailed reference files (10,861 total lines)
- Complete coverage of SAP API Style Guide standards
- Progressive disclosure architecture for efficient loading
Template Files (templates/)
- rest-api-overview-template.md (217 lines) - Level 1 REST overview
- rest-api-method-template.md (477 lines) - Level 2 REST method details
- odata-service-overview-template.md (411 lines) - Level 1 OData service
- odata-resource-template.md (557 lines) - Level 2 OData resource
- odata-operation-template.md (681 lines) - Level 3 OData operation
Total: 2,343 lines of ready-to-use templates
Instructions for Use
Step 1: Identify API Type
Determine if you're documenting REST, OData, Java, JavaScript, .NET, or C/C++ API.
Step 2: Choose Approach
Auto-Generated: Write documentation comments in source code → Use appropriate tags → Submit for review
Manual: Select template from templates/ → Customize [placeholders] → Follow hierarchy → Validate with checklist
Step 3: Apply Standards
Consult appropriate reference file:
- Naming:
naming-conventions.md
- Descriptions:
rest-odata-openapi-guide.md or java-javascript-dotnet-guide.md
- Quality:
quality-processes.md
- Deprecation:
deprecation-policy.md
Step 4: Quality Check
Before publishing:
- Review against API Quality Checklist (
quality-processes.md)
- Verify naming conventions (
naming-conventions.md)
- Check character limits (see Quick Reference Tables above)
- Validate no sensitive data in examples
- Test all code examples
- Verify links work
- Obtain UA developer review
Step 5: Publish
- REST/OData: Submit to SAP API Business Hub
- Java/JavaScript/.NET: Generate with appropriate tool (Javadoc, JSDoc, DocFX)
- Developer Guides: Publish to SAP Help Portal or product documentation
Common Pitfalls to Avoid
Naming:
- ❌ Including "API":
"Custom Forms APIs" → ✅ "Custom Forms"
- ❌ Using "SAP" prefix:
"SAP Document Approval" → ✅ "Document Approval"
- ❌ Using verbs:
"Configuring Portal" → ✅ "Portal Configuration"
Descriptions:
- ❌ Second person:
"This operation creates..." → ✅ "Creates a new user"
- ❌ Generic responses:
"No content" → ✅ "Product is out of stock"
- ❌ Repeating summary in description
Documentation:
- ❌ Skipping UA review
- ❌ Including sensitive data in examples
- ❌ Missing required tags
- ❌ Inconsistent terminology
See individual reference files for complete anti-patterns and fixes.
Common Issues
| Issue |
Correction |
| API names use verbs or redundant "API" suffixes |
Apply the naming rules in references/naming-conventions.md before writing descriptions. |
| OpenAPI descriptions are too generic |
Use operation-specific outcomes, error cases, and state information from references/rest-odata-openapi-guide.md. |
| Documentation contains sensitive sample data |
Replace tenant, user, token, and customer data with neutral examples before publishing. |
| Deprecation metadata is missing |
Add x-sap-stateInfo and migration guidance from references/deprecation-policy.md. |
External Resources
Standards
SAP Resources
Source
Updates and Maintenance
Source Version: SAP API Style Guide 2025.01 (verified against commit 902247f)
Recent Changes:
- Source repository updated 2025-10-28
- Reference file line counts verified and updated
- Added comprehensive Table of Contents for navigation
- Added Bundled Resources section for content discovery
To Update This Skill:
- Check source repository for changes: https://github.com/SAP-docs/api-style-guide
- Review "What's New in the Style Guide"
- Update affected reference files
- Update templates if standards changed
- Update "Last Verified" date
Quarterly Review Recommended: Check for updates every 3 months
Next Review: 2026-02-27
Skill Version: 2.4.1
Last Updated: 2026-06-14
License: GPL-3.0
Maintainer: Eduard Jiglau | hello@sap-ai-skills.com | sap-ai-skills.com | https://github.com/secondsky/sap-skills
1---2name: sap-api-style3description: This skill provides comprehensive guidance for documenting SAP APIs following the SAP API Style Guide standards. It should be used when creating or reviewing API documentation for REST, OData, Java, JavaScript, .NET, or C/C++ APIs. The skill covers naming conventions, documentation comments, OpenAPI specifications, quality checklists, deprecation policies, and manual documentation templates. It ensures consistency with SAP API Business Hub standards and industry best practices. Keywords: SAP API, REST, OData, OpenAPI, Swagger, Javadoc, JSDoc, XML documentation, API Business Hub, API naming, API deprecation, x-sap-stateInfo, Entity Data Model, EDM, documentation tags, API quality, API templates4license: GPL-3.05---6
7# SAP API Style Guide
8
9## Related Skills
10
11- **sap-cap-capire**: Use for OData service documentation, CAP API patterns, and service definition standards
12- **sap-fiori-tools**: Use for API consumption patterns, Fiori app integration, and OData best practices
13- **sap-abap**: Use when documenting ABAP APIs, implementing REST services, or following API design patterns
14- **sapui5**: Use for frontend API integration, OData consumption, and UI service patterns
15- **sap-btp-cloud-platform**: Use for BTP service API documentation and integration patterns
16
17## Table of Contents
18
191. [Overview](#overview)
202. [When to Use This Skill](#when-to-use-this-skill)
213. [Quick Decision Tree](#quick-decision-tree)
224. [Core Principles](#core-principles)
235. [Quick Reference Tables](#quick-reference-tables)
246. [Templates Available](#templates-available)
257. [Reference Files](#reference-files)
268. [Instructions for Use](#instructions-for-use)
279. [Common Pitfalls to Avoid](#common-pitfalls-to-avoid)
2810. [External Resources](#external-resources)
2911. [Updates and Maintenance](#updates-and-maintenance)
3012. [Common Issues](#common-issues)
31
32## Overview
33
34This skill provides comprehensive guidance for documenting SAP APIs according to official SAP API Style Guide standards. It covers all major API types and documentation approaches used across the SAP ecosystem.
35
36**Documentation Source**: [https://github.com/SAP-docs/api-style-guide](https://github.com/SAP-docs/api-style-guide) (76 files extracted)
37
38## When to Use This Skill
39
40Use this skill when:
41
42- **Creating API documentation** for REST, OData, Java, JavaScript, .NET, or C/C++ APIs
43- **Writing OpenAPI specifications** for SAP API Business Hub
44- **Reviewing API names** for SAP naming convention compliance
45- **Documenting API parameters, responses, operations** with proper formatting
46- **Creating manual API documentation** using SAP templates
47- **Writing documentation comments** in source code (Javadoc, JSDoc, XML comments)
48- **Implementing API deprecation** following SAP lifecycle policies
49- **Developing developer guides** or service documentation
50- **Performing quality checks** on API documentation
51- **Publishing APIs** to SAP API Business Hub
52
53## Quick Decision Tree
54
55### What Type of API?
56
57```
58REST/OData API
59├─ Auto-generated (OpenAPI/Swagger)?
60│ └─ references/rest-odata-openapi-guide.md
61│ • OpenAPI specification standards
62│ • Package, API, operation descriptions
63│ • Parameters, responses, components
64│ • SAP API Business Hub requirements
65│
66└─ Manually written?
67 └─ references/manual-templates-guide.md
68 • REST templates (2-level: overview → method)
69 • OData templates (3-level: service → resource → operation)
70 • Complete field requirements
71 • templates/ directory for ready-to-use files
72
73Native Library API
74├─ Java → references/java-javascript-dotnet-guide.md
75├─ JavaScript → references/java-javascript-dotnet-guide.md
76├─ .NET (C#) → references/java-javascript-dotnet-guide.md
77└─ C/C++ → references/java-javascript-dotnet-guide.md
78 • Documentation comments structure
79 • Language-specific tags
80 • Templates for classes, methods, enums
81 • Complete code examples
82```
83
84### What Task?
85
86```
87Naming
88└─ references/naming-conventions.md
89 • REST/OData naming (resources, parameters, URIs)
90 • Native library naming (classes, methods, constants)
91 • Common mistakes to avoid
92
93Writing Descriptions
94└─ references/rest-odata-openapi-guide.md
95 • Package descriptions
96 • API details (info object)
97 • Operations, parameters, responses
98
99Quality Assurance
100└─ references/quality-processes.md
101 • Complete API Quality Checklist
102 • Review workflows
103 • Development team guidelines
104
105Deprecating APIs
106└─ references/deprecation-policy.md
107 • Lifecycle states (beta, active, deprecated, decommissioned)
108 • Timeline requirements (12+ months support)
109 • Required metadata (x-sap-stateInfo)
110
111Developer Guides
112└─ references/developer-guides.md
113 • Structure guidelines
114 • Content selection
115 • Code sample standards
116```
117
118## Core Principles
119
120### 1. Consistency Across SAP APIs
121
122All SAP API documentation follows consistent conventions:
123- **Naming**: Language-specific (camelCase, PascalCase, kebab-case)
124- **Structure**: Hierarchical with clear navigation
125- **Formatting**: Sentences start with capitals, end with periods
126- **Language**: American English
127
128### 2. API-Type-Specific Standards
129
130| API Type | Standard | Tool | Documentation |
131|----------|----------|------|---------------|
132| REST | OpenAPI 3.0.3 | Swagger | [Spec](https://spec.openapis.org/) |
133| OData | v4.01, v3.0, v2.0 | Various | [OData.org](https://www.odata.org/) |
134| Java | Javadoc | javadoc | [Oracle](https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html) |
135| JavaScript | JSDoc 3 | jsdoc | [JSDoc.app](https://jsdoc.app/) |
136| .NET | XML Comments | DocFX | [Microsoft](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/) |
137| C/C++ | Doxygen | doxygen | [Doxygen.nl](https://www.doxygen.nl/) |
138
139### 3. Progressive Disclosure
140
141Documentation organized hierarchically:
142- **High-level overviews** provide context and navigation
143- **Detailed references** cover specific APIs, methods, operations
144- **Examples and templates** demonstrate practical usage
145
146### 4. Quality Standards
147
148All documentation must:
149- ✅ Be reviewed by User Assistance (UA) developers
150- ✅ Use consistent naming and terminology
151- ✅ Include complete parameter and response descriptions
152- ✅ Avoid sensitive data in examples
153- ✅ Provide working code examples
154- ✅ Maintain accurate links and cross-references
155
156## Quick Reference Tables
157
158### Character Limits
159
160| Element | Limit | Use Case |
161|---------|-------|----------|
162| API Title | 80 | `info.title` in OpenAPI |
163| API Short Text | 180 | `x-sap-shortText` |
164| Package Short Desc | 250 | Package tile description |
165| Operation Summary | 255 | Operation summary line |
166| Description | 1024 | General descriptions |
167
168### API Naming Rules
169
170**General Rules** (all API types):
171- ❌ Don't include "API" in name: ~~"Custom Forms API"~~ → ✅ "Custom Forms"
172- ❌ Don't include "SAP" prefix: ~~"SAP Document Approval"~~ → ✅ "Document Approval"
173- ❌ Don't use verbs: ~~"Configuring Portal"~~ → ✅ "Portal Configuration"
174- ✅ Capitalize words properly
175- ✅ Avoid technical specifics (REST, OData, etc.)
176
177See `references/naming-conventions.md` for complete language-specific rules.
178
179### Common Documentation Tags
180
181**Java/JavaScript**:
182- `@param <name> <description>` - Parameter documentation
183- `@return <description>` - Return value
184- `@throws <class> <description>` - Exception
185- `@deprecated <description>` - Deprecation notice
186
187**.NET**:
188- `<summary>` - Brief description
189- `<param name="">` - Parameter
190- `<returns>` - Return value
191- `<exception cref="">` - Exception
192
193See `references/java-javascript-dotnet-guide.md` for complete tag reference.
194
195### API Lifecycle States
196
197| State | Definition | Support | Metadata Required |
198|-------|-----------|---------|-------------------|
199| **Beta** | Pre-production testing | No guarantees | `state: beta` |
200| **Active** | Production-ready (default) | Full support | Optional |
201| **Deprecated** | Replaced by successor | 12+ months | `state`, `deprecationDate`, `successorApi` |
202| **Decommissioned** | Fully retired | None | Document removal |
203
204See `references/deprecation-policy.md` for complete timeline and process requirements.
205
206## Large Reference Search Routing
207
208Search large references before loading them. Use `rg -n "<resource|operation|parameter|description|template|deprecation|x-sap-stateInfo>" references/*.md` to locate the exact rule, then open only the relevant excerpt.
209
210- Use `references/manual-templates-guide.md` for manually written REST/OData documentation templates. Search for `REST API Template`, `OData Operation Template`, `field requirements`, `method`, or the resource name.
211- Use `references/rest-odata-openapi-guide.md` for OpenAPI, OData, operation descriptions, responses, parameters, and SAP API Business Hub publication checks.
212- Use `references/naming-conventions.md` for resource, operation, package, class, method, parameter, enum, and constant naming.
213- Use `references/java-javascript-dotnet-guide.md` for Javadoc, JSDoc, XML doc comments, and native SDK documentation tags.
214- Use `references/deprecation-policy.md` for lifecycle state, migration guidance, and `x-sap-stateInfo`.
215- Use `references/quality-processes.md` for review checklists, gates, and documentation quality workflows.
216
217## Templates Available
218
219Ready-to-use templates in `templates/` directory:
220
221### REST API Templates (2-Level)
2221. **rest-api-overview-template.md** - Resource-level overview
2232. **rest-api-method-template.md** - Individual endpoint details
224
225### OData API Templates (3-Level)
2261. **odata-service-overview-template.md** - Complete service overview
2272. **odata-resource-template.md** - Individual resource/entity set
2283. **odata-operation-template.md** - Specific operation details
229
230All templates include:
231- Clear "How to Use" instructions
232- [Placeholder text] for customization
233- Complete section structure
234- Working examples
235- Inline guidance
236
237## Reference Files
238
239### Complete Guides Available
240
2411. **rest-odata-openapi-guide.md** (2,800 lines)
242 - Complete OpenAPI specification guidelines
243 - Package, API, operation descriptions
244 - Parameters, responses, components
245 - Security schemes, tags, external docs
246 - Character limits and anti-patterns
247
2482. **manual-templates-guide.md** (2,765 lines)
249 - REST API templates (2-level hierarchy)
250 - OData API templates (3-level hierarchy)
251 - Complete template structures
252 - Field-by-field requirements
253 - Best practices and examples
254
2553. **naming-conventions.md** (2,059 lines)
256 - REST/OData naming rules (resources, parameters, URIs)
257 - Native library naming (classes, methods, constants, packages)
258 - Language-specific conventions
259 - Common mistakes with fixes
260 - Decision trees and reference tables
261
2624. **quality-processes.md** (1,774 lines)
263 - Complete API Quality Checklist
264 - Review workflows (developer + UA collaboration)
265 - Development team guidelines
266 - Common review findings and solutions
267 - Process flowcharts
268
2695. **java-javascript-dotnet-guide.md** (1,517 lines)
270 - Documentation comments structure
271 - Language-specific tags (Java, JavaScript, .NET, C/C++)
272 - Templates for classes, methods, enums
273 - Complete code examples
274 - Best practices by language
275
2766. **developer-guides.md** (704 lines)
277 - Guide structure standards
278 - Topic types (concept, reference, task)
279 - Content selection criteria
280 - Code sample standards (compilable, concise, commented)
281 - Best practices
282
2837. **deprecation-policy.md** (664 lines)
284 - API lifecycle states (beta, active, deprecated, decommissioned)
285 - Timeline requirements (12+ months support, 24+ months lifespan)
286 - Required metadata (x-sap-stateInfo, artifact.json)
287 - Decommission process
288 - Complete examples
289
2908. **glossary-resources.md** (472 lines)
291 - Complete terminology definitions (API, OData, OpenAPI, etc.)
292 - External resource links (standards, tools, SAP resources)
293 - Quick reference tables
294 - Tool documentation links
295
296 - Content extraction and organization tracking
297 - Source file mapping from SAP documentation
298 - Consolidation and adaptation notes
299
300## Bundled Resources
301
302This skill includes comprehensive documentation and templates organized for optimal use:
303
304### Reference Guides (`references/`)
305- 9 detailed reference files (10,861 total lines)
306- Complete coverage of SAP API Style Guide standards
307- Progressive disclosure architecture for efficient loading
308
309### Template Files (`templates/`)
3101. **rest-api-overview-template.md** (217 lines) - Level 1 REST overview
3112. **rest-api-method-template.md** (477 lines) - Level 2 REST method details
3123. **odata-service-overview-template.md** (411 lines) - Level 1 OData service
3134. **odata-resource-template.md** (557 lines) - Level 2 OData resource
3145. **odata-operation-template.md** (681 lines) - Level 3 OData operation
315
316Total: 2,343 lines of ready-to-use templates
317
318## Instructions for Use
319
320### Step 1: Identify API Type
321
322Determine if you're documenting REST, OData, Java, JavaScript, .NET, or C/C++ API.
323
324### Step 2: Choose Approach
325
326**Auto-Generated**: Write documentation comments in source code → Use appropriate tags → Submit for review
327
328**Manual**: Select template from `templates/` → Customize [placeholders] → Follow hierarchy → Validate with checklist
329
330### Step 3: Apply Standards
331
332Consult appropriate reference file:
333- **Naming**: `naming-conventions.md`
334- **Descriptions**: `rest-odata-openapi-guide.md` or `java-javascript-dotnet-guide.md`
335- **Quality**: `quality-processes.md`
336- **Deprecation**: `deprecation-policy.md`
337
338### Step 4: Quality Check
339
340Before publishing:
3411. Review against API Quality Checklist (`quality-processes.md`)
3422. Verify naming conventions (`naming-conventions.md`)
3433. Check character limits (see Quick Reference Tables above)
3444. Validate no sensitive data in examples
3455. Test all code examples
3466. Verify links work
3477. Obtain UA developer review
348
349### Step 5: Publish
350
351- **REST/OData**: Submit to SAP API Business Hub
352- **Java/JavaScript/.NET**: Generate with appropriate tool (Javadoc, JSDoc, DocFX)
353- **Developer Guides**: Publish to SAP Help Portal or product documentation
354
355## Common Pitfalls to Avoid
356
357**Naming**:
358- ❌ Including "API": ~~"Custom Forms APIs"~~ → ✅ "Custom Forms"
359- ❌ Using "SAP" prefix: ~~"SAP Document Approval"~~ → ✅ "Document Approval"
360- ❌ Using verbs: ~~"Configuring Portal"~~ → ✅ "Portal Configuration"
361
362**Descriptions**:
363- ❌ Second person: ~~"This operation creates..."~~ → ✅ "Creates a new user"
364- ❌ Generic responses: ~~"No content"~~ → ✅ "Product is out of stock"
365- ❌ Repeating summary in description
366
367**Documentation**:
368- ❌ Skipping UA review
369- ❌ Including sensitive data in examples
370- ❌ Missing required tags
371- ❌ Inconsistent terminology
372
373See individual reference files for complete anti-patterns and fixes.
374
375## Common Issues
376
377| Issue | Correction |
378|-------|------------|
379| API names use verbs or redundant "API" suffixes | Apply the naming rules in `references/naming-conventions.md` before writing descriptions. |
380| OpenAPI descriptions are too generic | Use operation-specific outcomes, error cases, and state information from `references/rest-odata-openapi-guide.md`. |
381| Documentation contains sensitive sample data | Replace tenant, user, token, and customer data with neutral examples before publishing. |
382| Deprecation metadata is missing | Add `x-sap-stateInfo` and migration guidance from `references/deprecation-policy.md`. |
383
384## External Resources
385
386### Standards
387- **OpenAPI Specification**: [https://spec.openapis.org/oas/latest.html](https://spec.openapis.org/oas/latest.html)
388- **OData v4.01**: [https://www.odata.org/documentation/](https://www.odata.org/documentation/)
389- **Javadoc**: [https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html](https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html)
390- **JSDoc 3**: [https://jsdoc.app/](https://jsdoc.app/)
391- **Doxygen**: [https://www.doxygen.nl/](https://www.doxygen.nl/)
392
393### SAP Resources
394- **SAP API Business Hub**: [https://api.sap.com/](https://api.sap.com/)
395- **SAP Developer Center**: [https://developers.sap.com/](https://developers.sap.com/)
396- **SAP Help Portal**: [https://help.sap.com/](https://help.sap.com/)
397- **SAP Community**: [https://community.sap.com/](https://community.sap.com/)
398
399### Source
400- **SAP API Style Guide**: [https://github.com/SAP-docs/api-style-guide](https://github.com/SAP-docs/api-style-guide)
401
402## Updates and Maintenance
403
404**Source Version**: SAP API Style Guide 2025.01 (verified against commit 902247f)
405
406**Recent Changes**:
407- Source repository updated 2025-10-28
408- Reference file line counts verified and updated
409- Added comprehensive Table of Contents for navigation
410- Added Bundled Resources section for content discovery
411
412**To Update This Skill**:
4131. Check source repository for changes: [https://github.com/SAP-docs/api-style-guide](https://github.com/SAP-docs/api-style-guide)
4142. Review "What's New in the Style Guide"
4153. Update affected reference files
4164. Update templates if standards changed
4175. Update "Last Verified" date
418
419**Quarterly Review Recommended**: Check for updates every 3 months
420
421**Next Review**: 2026-02-27
422
423---
424
425**Skill Version**: 2.4.1
426**Last Updated**: 2026-06-14
427**License**: GPL-3.0
428**Maintainer**: Eduard Jiglau | [hello@sap-ai-skills.com](mailto:hello@sap-ai-skills.com) | [sap-ai-skills.com](https://sap-ai-skills.com) | [https://github.com/secondsky/sap-skills](https://github.com/secondsky/sap-skills)