Skip to content
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

Doc precision #93

Open
esteem8 opened this issue Mar 11, 2017 · 6 comments
Open

Doc precision #93

esteem8 opened this issue Mar 11, 2017 · 6 comments

Comments

@esteem8
Copy link

esteem8 commented Mar 11, 2017

Provide a more precise methods documentation.

Expected behavior

  • Method name

  • Method description

  • Method code with parameters

  • Method parameters detail

Actual behavior

Method name

Method code with parameters

How

B.E.

Follow API

Get Followers

Return account followers.

steem.api.getFollowers(following, startFollower, followType, limit, function(err, result) {
  console.log(err, result);
});
following: [String] -> 'fabien'
startFollower: [String] -> '' || 'fabien'
followType: [?] -> null
limit: [Number] -> '0', '100'
@esteem8
Copy link
Author

esteem8 commented Mar 11, 2017

I think it would be easier to take in hand the API.

An example could also be great.

If this is accepted, I will do it when I will have the time.

@esteem8
Copy link
Author

esteem8 commented Mar 11, 2017

A link to codepen.io could also be great.

Eventually using there api.

@bonustrack
Copy link
Contributor

bonustrack commented Mar 11, 2017

I agree, that would be great to have more information on the documentation. If you do it we will accept your PR. good-karma been working on something similar Steem API tester: https://esteemapp.github.io/steemapi/#!/Account/get_get_followers. There is some descriptions and default parameters of the methods, this can help for building Steem.js doc.

@marvin-we
Copy link

Hello together,

I just saw this ticket and I guess this is a problem that everyone providing an API wrapper is fighting with. I develop SteemJ which is the Steem API wrapper for Java and I also had to start documenting everything in the Wiki. I guess this is the same case of steem-python and radiator (the api wrapper for ruby) and all the other wrapper too.

For sure fields are accessed in a different way in each programming language, but the available fields are the same for all of us as we all work against the Steem api. Therefore, what do you think of having a centralized documentation for the api? I guess this would help us, the developers, and the users for sure...

@Stormrose
Copy link
Contributor

I'm going to put some time into improving the documentation. In the short term by hacking at the doc/README/md file. I don't expect to complete the API documentation, but I can at least make a start.

@TimCliff on steemit has expressed interest in updating central developer docs. The best place for swagger/openapi specs is where the API is published, not within a language binding project like steem-js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@Stormrose @bonustrack @marvin-we @esteem8 and others