RE: Dev Portal Update: Tutorials, Recipes, and Tweaks, Oh My! by inertia

View this thread on steempeak.com

Viewing a response to: @r351574nc3/re-steemitblog-dev-portal-update-tutorials-recipes-and-tweaks-oh-my-20180726t151004343z

· @inertia ·
$0.14
Like creating an ideal Steem client specification?

https://github.com/steemit/devportal/issues/256
👍  , , , ,
properties (23)
post_id57,780,362
authorinertia
permlinkre-r351574nc3-re-steemitblog-dev-portal-update-tutorials-recipes-and-tweaks-oh-my-20180726t151907015z
categorydevportal
json_metadata{"links":["https:\/\/github.com\/steemit\/devportal\/issues\/256"],"app":"steemit\/0.1","tags":["devportal"]}
created2018-07-26 15:19:06
last_update2018-07-26 15:19:06
depth2
children3
net_rshares77,094,176,867
last_payout2018-08-02 15:19:06
cashout_time1969-12-31 23:59:59
total_payout_value0.132 SBD
curator_payout_value0.011 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length99
author_reputation227,335,189,892,062
root_title"Dev Portal Update: Tutorials, Recipes, and Tweaks, Oh My!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (5)
@r351574nc3 · (edited)
$0.22
Yeah. I think that nails it. If we had something like an [openapi specification](https://www.openapis.org/) or [Swagger spec](https://swagger.io/specification/) 

1. the reference guide could be generated
1. We can verify/test code and check for breaking changes
1. Generate and verify clients from the api specification
1. Build/contribute additional tooling around the specification
👍  , , , ,
properties (23)
post_id57,781,258
authorr351574nc3
permlinkre-inertia-re-r351574nc3-re-steemitblog-dev-portal-update-tutorials-recipes-and-tweaks-oh-my-20180726t152922510z
categorydevportal
json_metadata{"app":"steemit\/0.1","tags":["devportal"],"links":["https:\/\/www.openapis.org\/","https:\/\/swagger.io\/specification\/"]}
created2018-07-26 15:29:21
last_update2018-07-26 22:41:24
depth3
children2
net_rshares117,898,093,528
last_payout2018-08-02 15:29:21
cashout_time1969-12-31 23:59:59
total_payout_value0.168 SBD
curator_payout_value0.052 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length384
author_reputation183,372,131,550,888
root_title"Dev Portal Update: Tutorials, Recipes, and Tweaks, Oh My!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (5)
@inertia · (edited)
Those would be great.

Incidentally, we actually have tests for verifying stuff like the `curl` examples in the API Definitions.  If you want to try the tests yourself, they're right over here:

https://github.com/steemit/devportal#tests

And we also generate/verify the API Spec here:

https://github.com/steemit/devportal#managing-api-definitions
properties (22)
post_id57,781,980
authorinertia
permlinkre-r351574nc3-re-inertia-re-r351574nc3-re-steemitblog-dev-portal-update-tutorials-recipes-and-tweaks-oh-my-20180726t153749343z
categorydevportal
json_metadata{"app":"steemit\/0.1","tags":["devportal"],"links":["https:\/\/github.com\/steemit\/devportal#tests","https:\/\/github.com\/steemit\/devportal#managing-api-definitions"]}
created2018-07-26 15:37:48
last_update2018-07-26 15:38:51
depth4
children1
net_rshares0
last_payout2018-08-02 15:37:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length348
author_reputation227,335,189,892,062
root_title"Dev Portal Update: Tutorials, Recipes, and Tweaks, Oh My!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@r351574nc3 ·
$0.42
When I said generated, I meant from the actual source code. I'm basically suggesting a literate programming approach with specification as code.

Like if @inertia made changes to the json-rpc, then specification changes would be accepted in the same PR. In the next CI build, documentation could be generated, but that's not what's important. What's important is that now the specification itself is deployed with the software and can be used to generate/verify a client.

From a single change, you have now affected several facets.
👍  , , , , ,
properties (23)
post_id57,783,464
authorr351574nc3
permlinkre-inertia-re-r351574nc3-re-inertia-re-r351574nc3-re-steemitblog-dev-portal-update-tutorials-recipes-and-tweaks-oh-my-20180726t155356154z
categorydevportal
json_metadata{"users":["inertia"],"app":"steemit\/0.1","tags":["devportal"]}
created2018-07-26 15:53:54
last_update2018-07-26 15:53:54
depth5
children0
net_rshares225,025,001,874
last_payout2018-08-02 15:53:54
cashout_time1969-12-31 23:59:59
total_payout_value0.320 SBD
curator_payout_value0.102 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length532
author_reputation183,372,131,550,888
root_title"Dev Portal Update: Tutorials, Recipes, and Tweaks, Oh My!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (6)