Generate API examples for .tech #139

Closed
opened 2018-08-30 23:16:20 +02:00 by alyssaoc · 14 comments
alyssaoc commented 2018-08-30 23:16:20 +02:00 (Migrated from github.com)

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

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
tzarebczan commented 2018-08-30 23:28:05 +02:00 (Migrated from github.com)

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.

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.
NetOpWibby commented 2018-08-30 23:55:16 +02:00 (Migrated from github.com)

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

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
alyssaoc commented 2018-08-31 00:00:02 +02:00 (Migrated from github.com)

@tzarebczan and @NetOperatorWibby Yes sorry, I went up a level because we need them for both blockchain and protocol

@tzarebczan and @NetOperatorWibby Yes sorry, I went up a level because we need them for both blockchain and protocol
lyoshenka commented 2018-09-08 04:15:22 +02:00 (Migrated from github.com)

can't have "ready for work" and "needs: grooming" at the same time

can't have "ready for work" and "needs: grooming" at the same time
tzarebczan commented 2018-10-11 06:28:50 +02:00 (Migrated from github.com)

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

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
tzarebczan commented 2019-01-18 19:24:02 +01:00 (Migrated from github.com)

working with @eukreign to try to get an output sample before he has the script completed.

working with @eukreign to try to get an output sample before he has the script completed.
tzarebczan commented 2019-01-21 22:22:23 +01:00 (Migrated from github.com)

@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

@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
NetOpWibby commented 2019-01-21 23:29:12 +01:00 (Migrated from github.com)

@tzarebczan Is this live in the repo right now? On master?

@tzarebczan Is this live in the repo right now? On master?
tzarebczan commented 2019-01-21 23:39:07 +01:00 (Migrated from github.com)

@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

@NetOperatorWibby, no it's in a branch until he gets the concrete examples worked out. You can access it this way: https://github.com/lbryio/lbry/blob/095816781b9df1845340ef11efbc4090b1e0faf5/docs/api.json
NetOpWibby commented 2019-01-21 23:40:01 +01:00 (Migrated from github.com)

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.

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.
tzarebczan commented 2019-01-21 23:46:36 +01:00 (Migrated from github.com)

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.

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.
NetOpWibby commented 2019-01-21 23:48:56 +01:00 (Migrated from github.com)

It's not insurmountable work. IMO, if it's not in master, it's not ready.

It's not insurmountable work. IMO, if it's not in master, it's not ready.
tzarebczan commented 2019-01-22 00:51:05 +01:00 (Migrated from github.com)

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.

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.
kauffj commented 2019-01-25 19:37:27 +01:00 (Migrated from github.com)

@NetOperatorWibby please confirm that this format is acceptable by testing locally

@NetOperatorWibby please confirm that this format is acceptable by testing locally
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry.tech#139
No description provided.