docs: Add Ruby SDK README with comprehensive API documentation and implement modular architecture with HTTParty integration

- Add README.md with installation instructions, architecture overview, and API examples for all SDK modules
- Refactor TelecomSDK::Client to use modular API clients (SubscriberAPI, UsageAPI, PaymentAPI, RatingPlanAPI, SystemAPI, GraphQLAPI)
- Add AuthProvider class with API key and JWT token support (generate_jwt_token, validate_jwt_token methods)
- Add HTTPClient base class with retry
This commit is contained in:
nutcas3
2026-04-25 04:57:00 +03:00
parent d846c304a4
commit ea20dfb302
10 changed files with 637 additions and 194 deletions
+14
View File
@@ -0,0 +1,14 @@
module TelecomSDK
# API for GraphQL queries
class GraphQLAPI
def initialize(client)
@client = client
end
def execute(query, variables = nil)
request = { query: query }
request[:variables] = variables if variables
@client.post("/graphql", request)
end
end
end