aicore / aicore/cocoDbWsClient

Multiple endpoint support

Open
#41 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
2
Forks
0
Avg merge
2m
Merged PRs (30d)
1

Description

Currently, the coco client can only support one endpoint, we should have an API that can generate new clients without breaking backward compatibility.

For Eg. there will be the global init and other apis that esisst as is now, then we can have another API client=createClient(endpoint, apiKey) and then call client.close(), client.createDatabase() or other apis. This will ensure backward compatibility as well as new apis.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the current global initialization and endpoint-dependent APIs, then trace how a client is created and closed; done means adding a createClient(endpoint, apiKey) path for multiple clients while preserving the existing APIs and supporting client.close() and client.createDatabase().

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.