django-rest-framework icon indicating copy to clipboard operation
django-rest-framework copied to clipboard

Broken link in documentation

Open rfleschenberg opened this issue 6 years ago • 5 comments

docs/topics/documenting-your-api.md says:

To provide descriptions for each view, such as for the the list and retrieve views, use docstring sections as described in Schemas as documentation: Examples.

And it links to [Schemas as documentation: Examples][schemas-examples], but that section does not exist.

it is in fact not clear from the docs how to solve this, or if that is currently possible.

rfleschenberg avatar Sep 13 '19 14:09 rfleschenberg

Same issue in docs/api-guide/schemas.md, a reference to an file named schemas.py that not exist:

---
source:
    - schemas.py
---

Sorry for my poor english.

fhecorrea avatar Sep 21 '19 19:09 fhecorrea

I made a PR that fixes the path for api-guide/schemas and also api-guide/metadata/, but the exapmple is missing on that page, probably due to the changes that involve Open API Schema generation.

nezhar avatar Oct 03 '19 18:10 nezhar

Does anybody know if the examples from the legacy coreapi docs still apply and can be ported over?

DanLipsitt avatar Oct 29 '19 21:10 DanLipsitt

This is closed but the error is still in the documentation. Documenting your API reads:

Note that when using viewsets the basic docstring is used for all generated views. To provide descriptions for each view, such as for the list and retrieve views, use docstring sections as described in Schemas as documentation: Examples.

But there's no #examples section on the Schema page, and no mention of "docstring".

Having just switched from Views to ViewSets I wanted to know how to document the "list" and "retrieve" views separately, but I reached this dead end.

philgyford avatar Jun 14 '21 15:06 philgyford

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 28 '22 17:04 stale[bot]