LogoLogo
XWebsite
  • Truth Satellite API
  • API License
  • Contributing
  • Code of Conduct
  • Docs
    • Webhooks Guide
    • API Reference
    • Data Policy
    • Security Guidlines
Powered by GitBook
On this page
  • πŸ”Ή How to Contribute
  • πŸ”Ή Reporting Issues
  • πŸ”Ή Code Contribution Guidelines
  • πŸ”Ή Submitting a Pull Request (PR)
  • πŸ”Ή Code Style Guidelines
  • πŸ”Ή Running Tests Locally
  • πŸ”Ή Security Disclosures
  • πŸ”Ή Contact & Support

Contributing

Thank you for your interest in contributing to Truth Satellite API! This guide outlines how to report issues, submit pull requests, and contribute code while maintaining security and best practices.

πŸ”Ή How to Contribute

βœ” Report Bugs & Issues – Open a GitHub issue for any problems. βœ” Suggest Features – Request improvements or new functionalities. βœ” Submit Code Contributions – Fork the repository and submit a pull request. βœ” Improve Documentation – Help enhance API documentation and SDKs.


πŸ”Ή Reporting Issues

Before submitting an issue, please: βœ” Check if the issue has already been reported. βœ” Provide clear, detailed descriptions of the problem. βœ” Include API endpoint, request parameters, and response examples if relevant.

🚨 Issue Submission Format

### Issue Title: API returns incorrect response for `/facts`

**Description:**  
When requesting financial intelligence using `/facts?category=finance`, the response occasionally includes unrelated data.  

**Steps to Reproduce:**  
1. Call `/facts?category=finance`  
2. Observe unexpected entries in the response  

**Expected Behavior:**  
The response should contain only finance-related intelligence reports.  

πŸ”Ή Code Contribution Guidelines

βœ” Follow the existing code structure and naming conventions. βœ” Ensure all new features include relevant unit tests. βœ” Write clear commit messages explaining the purpose of changes. βœ” Keep pull requests small and focused (one feature or fix at a time).

🚨 Git Commit Message Format

feat(api): Added support for AI-powered risk assessment queries

πŸ”Ή Submitting a Pull Request (PR)

Before submitting a PR: βœ” Ensure all changes are thoroughly tested. βœ” Reference the related GitHub issue in your PR description. βœ” Follow the project’s code style guidelines. βœ” Do not include API keys or sensitive data in PRs.

🚨 Creating a Pull Request

git checkout -b feature-new-api-endpoint
git commit -m "feat(api): Added support for advanced filters in intelligence queries"
git push origin feature-new-api-endpoint

πŸ”Ή Code Style Guidelines

βœ” Use PEP 8 (Python) for formatting Python code. βœ” Use ESLint rules (JavaScript) for JavaScript contributions. βœ” Maintain consistent indentation (4 spaces for Python, 2 spaces for JS). βœ” Avoid unnecessary dependencies and keep code lightweight.

🚨 Python Code Style (PEP 8 Compliant)

class TruthAPI:
    def __init__(self, api_key):
        self.api_key = api_key
        self.base_url = "https://api.truthsatellit.space"

    def get_facts(self, category="general", limit=10):
        headers = {"Authorization": f"Bearer {self.api_key}"}
        response = requests.get(f"{self.base_url}/facts", headers=headers, params={"category": category, "limit": limit})
        return response.json()

πŸ”Ή Running Tests Locally

Before submitting code, run tests to ensure stability.

🚨 Code Example: Running Python Tests

pytest tests/

πŸ”Ή Security Disclosures

If you discover a security vulnerability, DO NOT report it in a public GitHub issue. Instead, immediately contact: πŸ“© security@truthsatellit.space

Security issues should be reported privately to prevent exploits before fixes are released.


πŸ”Ή Contact & Support


PreviousAPI LicenseNextCode of Conduct

Last updated 3 months ago

For general questions or assistance with contributions: πŸ“© Email: support@truthsatellit.space 🌍 Website:

https://truthsatellit.space