-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #647 from Krishanx92/newpub1
Add documentation template for md
- Loading branch information
Showing
6 changed files
with
194 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
portals/publisher/src/main/webapp/site/public/templates/howTo.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# API Documentation | ||
|
||
## Introduction | ||
|
||
Briefly describe the purpose and scope of the API. | ||
|
||
## Authentication | ||
|
||
Explain how authentication is handled in the API, including any required headers, tokens, or OAuth flows. | ||
|
||
## Base URL | ||
|
||
Provide the base URL for all API endpoints. | ||
|
||
## Rate Limiting | ||
|
||
Describe any rate limiting policies applied to the API, including limits and error responses. | ||
|
||
## Error Handling | ||
|
||
Explain how errors are handled in the API, including error codes, messages, and examples. | ||
|
||
## Versioning | ||
|
||
Explain how versioning is managed in the API, including how clients can specify the API version. | ||
|
||
## Endpoints | ||
|
||
### Endpoint 1 | ||
|
||
- **URL:** `/endpoint-1` | ||
- **Method:** GET | ||
- **Description:** Describe what this endpoint does. | ||
- **Parameters:** | ||
- `param1`: Description of param1. | ||
- **Request Example:** | ||
```http | ||
GET /endpoint-1?param1=value1 HTTP/1.1 | ||
Host: api.example.com | ||
52 changes: 52 additions & 0 deletions
52
portals/publisher/src/main/webapp/site/public/templates/other.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Free Tier Details | ||
|
||
## Overview | ||
|
||
Provide a brief overview of the free tier, including its features, limitations, and benefits. | ||
|
||
## Features | ||
|
||
List the key features available in the free tier. For example: | ||
- Limited access to certain services or features | ||
- Usage limits (e.g., number of requests, storage limits) | ||
- Support options (e.g., community support only) | ||
|
||
## Limitations | ||
|
||
Describe any limitations or restrictions of the free tier. For example: | ||
- Limited scalability or performance compared to paid tiers | ||
- Restrictions on usage (e.g., non-commercial use only) | ||
- Lack of certain advanced features available in paid tiers | ||
|
||
## Benefits | ||
|
||
Highlight the benefits of using the free tier. For example: | ||
- Opportunity to explore and test the service without cost | ||
- Ideal for small projects or individuals with limited needs | ||
- Easy upgrade path to paid tiers for additional features or resources | ||
|
||
## Getting Started | ||
|
||
Provide instructions on how to get started with the free tier. For example: | ||
- Sign up for a free account | ||
- Access the free tier services through the provided API or dashboard | ||
- Review the documentation and tutorials for guidance | ||
|
||
## Support | ||
|
||
Describe the support options available for the free tier. For example: | ||
- Community forums or knowledge base | ||
- Email support for critical issues | ||
- Premium support available with paid tiers | ||
|
||
## Upgrade Options | ||
|
||
Outline the upgrade options available for users who require additional features or resources beyond the free tier. For example: | ||
- Upgrade to a paid tier with increased limits and additional features | ||
- Choose a custom plan based on specific requirements | ||
- Contact sales for enterprise or high-volume options | ||
|
||
## Additional Resources | ||
|
||
Provide links to additional resources, such as documentation, tutorials, and FAQs, to help users make the most of the free tier. | ||
|
48 changes: 48 additions & 0 deletions
48
portals/publisher/src/main/webapp/site/public/templates/sample.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# API Documentation | ||
|
||
## Endpoint | ||
|
||
`GET /api/endpoint` | ||
|
||
## Description | ||
|
||
Provide a brief description of the endpoint and its purpose. | ||
|
||
## Request | ||
|
||
### Request URL | ||
|
||
### Request Description | ||
|
||
Provide a brief description of the request, explaining its purpose and any important details. | ||
|
||
### Request Headers | ||
|
||
- `Authorization`: Bearer token for authentication. | ||
|
||
### Request Body | ||
|
||
If the request includes a body, provide a sample body here. | ||
|
||
## Response | ||
|
||
### Response Code | ||
|
||
|
||
### Response Headers | ||
|
||
- `Content-Type`: application/json | ||
|
||
### Response Body | ||
|
||
Provide a sample response body here. | ||
|
||
## Samples | ||
|
||
### Curl Command | ||
|
||
Provide a curl command that demonstrates how to make the same request from the command line. | ||
|
||
```bash | ||
curl -X GET https://api.example.com/api/endpoint -H "Authorization: Bearer <token>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters