-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make hosted version of Uniquery #29
Comments
I will go with @honojs |
cc @kodadot/internal-dev |
i can pick this one 👋🏻 |
link kodadot/ops-internal#1337
Why do they need rest-api endpoint when they can do gql query directly to our endpoint? another gql wrapper? |
I'm thinking loud, wouldn't be easier setup this for them?
- https://stellate.co/docs/graphql-developer-portal
Why
---
It would save us time for thos few integration and we can invest time elsewhere as API is not our core product now
|
eehh, sorry. I'm a bit lost. Should I continue or hold it for now? |
|
I enabled the developer portal here: https://query-stick.stellate.io/ Since it is still in Beta, we can only edit a few sections. So far, we can only edit under the |
https://query-stick.stellate.io/#api-keys api-keys should go somewhere? |
Afaik no need for api-keys to consume our stellate query. I already turned off the authentication, but not sure this section still shows up |
@preschian any output from research if it would be good as REST API? I think I can sign up for a Stellate account, and we will need a paid seat I guess? |
"Developer Portal" only helps us to create a documentation portal for our GraphQL endpoint. At the moment, so many features still need to be fixed. Since it is only for creating a documentation page, for now, it's better to put the documentation on our developer portal instead: https://developers.kodadot.xyz/core-concepts/kodadot-stack/indexer/kodadot-indexers.html. They can fetch POST requests to our graphql endpoint if we want to avoid creating another wrapper. I put a code example in this section: https://query-stick.stellate.io/#graphql-endpoints Maybe let's try to create documentation on how to fetch POST requests to our GraphQL endpoint. Then, gather feedback from them. Code example: let headersList = {
"Content-Type": "application/json",
};
let gqlBody = {
query: `query MyQuery {
nftEntities(
limit: 10
where: {currentOwner_eq: "DY4SQF2iD456tH89aQtz5wv1EV3BbSW8wKKuMcwbmXaj1pM"}
) {
id
name
meta {
id
image
animationUrl
}
}
}`,
variables: "{}",
};
let bodyContent = JSON.stringify(gqlBody);
let response = await fetch("https://query-stick.stellate.io/", {
method: "POST",
body: bodyContent,
headers: headersList,
});
let data = await response.text();
console.log(data); |
better to use paid seat, I think. and wrap our another subsquid endpoint with that. plus, our internal dev member can access to the stellate dashboard |
okay can proceed, putting in pipeline |
cc @preschian |
preparing 👍🏻 |
Because @yangwao set up a new subdomain with I like the subdomain name tho. The naming is something like this:
Once we support multi-chain indexer, we can use our subdomain also:
while waiting our multi-chain indexer, this is the naming for our specific chain indexer
So, our goal is, we should have two subdomain:
|
@preschian let's proceed in private workers for start? |
on it 🙏🏻. should be finished by tomorrow morning |
Context
We have been asked to implement this as few apps use native lang (Swift, Kotlin) or they are over the capacity to implement raw GraphQL.
Task
Create an REST API server (use either nitro or hono)
Implement routes defined in #10 (comment)
Make sure also limit and offset are available
Ref
please use good api practices as mentioned by @roiLeo in
Routes to include in next // basically all uncommented.
The text was updated successfully, but these errors were encountered: