Generate API examples for .tech #139
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
campaign-blocker
consider soon
Content
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry.tech#139
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a user of the https://lbry.tech/resources api pages, I would like to see examples from the api call on the page.
@tzarebczan Please take a look and see how best to break this up, after vacation
Those examples should be on the api pages themselves, which would come from the same place that the api data does (I think?). Some of them would also be covered in the tour.
Yeah, the resources page is not the place for examples. The right side of entries on the API pages need examples: https://lbry.tech/api/protocol
@tzarebczan and @NetOperatorWibby Yes sorry, I went up a level because we need them for both blockchain and protocol
can't have "ready for work" and "needs: grooming" at the same time
The examples should come from the generated docs, so on each repo we'll have a related issue.
lbrynet: https://github.com/lbryio/lbry/issues/1334
lbrycrd: https://github.com/lbryio/lbrycrd/issues/219
working with @eukreign to try to get an output sample before he has the script completed.
@NetOperatorWibby - see https://gist.github.com/tzarebczan/1af2e79ba365a006d1b1f0079a3cb03c for the example output from the SDK team. "output": "(map) added account details" will be replaced later on via a script with an actual output that's run during unit tests.
Hoping the blockchain team can do something similar: https://github.com/lbryio/lbrycrd/issues/219
@tzarebczan Is this live in the repo right now? On master?
@NetOperatorWibby, no it's in a branch until he gets the concrete examples worked out. You can access it this way:
095816781b/docs/api.json
I'd rather wait until this is in master. The last time I focused on a non-master branch it got deleted and no one told me, which lead to .tech crashing.
Can you only include examples when that specific tag exists? We wanted to get this out with the output format so you can start working on it before a finished product is ready. Not sure where this fits in with the promotional campaign launch, but I'd rather this portion be ready when the examples tag exists in the api docs. Maybe @eukreign / @kauffj can comment further.
It's not insurmountable work. IMO, if it's not in master, it's not ready.
Please verify that the format and appearance will work, not asking to go live with this. There are three different formats for calls, we'd eventually allow users to cycle through / select the one that best suites them. We can just use the lbrynet example as a first go around.
@NetOperatorWibby please confirm that this format is acceptable by testing locally