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

docs: clarify use of PinStatus.id #47

Merged
merged 3 commits into from
Aug 14, 2020
Merged

docs: clarify use of PinStatus.id #47

merged 3 commits into from
Aug 14, 2020

Conversation

lidel
Copy link
Member

@lidel lidel commented Aug 11, 2020

This PR does not change the spec, it simplifies docs related to /pins endpoint

  • /pins/{cid-of-pin-object} can be confusing because we mean PinStatus.id, but a field named cid is present in PinStatus.Pin.cid
  • /pins/{id} has a clear connection to PinStatus.id and reduces cognitive overhead

Preview: https://ipfs.github.io/pinning-services-api-spec/#specUrl=https://raw.githubusercontent.com/ipfs/pinning-services-api-spec/docs/clarify-object-id/ipfs-pinning-service.yaml

- `/pins/{cid-of-pin-object}` can be confusing,
  because of `cid` is present in `PinStatus.Pin.cid`
- `/pins/{id}` has a clear connection to `PinStatus.id`
  and a lower cognitive overhead
@lidel lidel added the topic/docs Improvements or additions to documentation label Aug 11, 2020
@lidel lidel requested review from jessicaschilling and a team August 11, 2020 21:01
@lidel lidel added this to the v0.0.5 milestone Aug 11, 2020
lidel added 2 commits August 14, 2020 13:31
Clarified PinStatus.id description, as it proved to be vague when discussing it with people.
@lidel
Copy link
Member Author

lidel commented Aug 14, 2020

Merging in preparation for v0.0.5, will check copy in bulk before tagging the release.

@lidel lidel merged commit 4e1c8ca into master Aug 14, 2020
@lidel lidel deleted the docs/clarify-object-id branch August 14, 2020 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant