Skip to content

Add information on how to integrate JSON API with with DRF built-in coreapi documentation #638

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

Closed
arielpontes opened this issue May 23, 2019 · 4 comments
Assignees

Comments

@arielpontes
Copy link
Contributor

I followed the instructions in the DRF docs to generate documentation for my project but it doesn't show the correct expected payload format in PATCH/POST endpoints. It shows the following standard messages in all endpoints:

The request body should be a "application/x-www-form-urlencoded" encoded object, containing the following items.

And then it shows a list of the attributes that are supported, but there is no mention of the JSON API format, which should be:

{
    "data": {
        "type": "ResourceType",
        "attributes": {
            ...
        }
    }
}

How can I customize the DRF documentation so that it shows the proper format and content-type expected?

@n2ygk
Copy link
Contributor

n2ygk commented May 23, 2019 via email

@n2ygk n2ygk self-assigned this May 23, 2019
@n2ygk
Copy link
Contributor

n2ygk commented May 23, 2019

@arielpontes Here's a preview of what I've been working on: https://columbia-it-django-jsonapi-training.readthedocs.io/en/latest/documenting-api.html

@sliverc
Copy link
Member

sliverc commented May 24, 2019

@n2ygk Could we close this issue in favour of #604?

@n2ygk
Copy link
Contributor

n2ygk commented May 24, 2019

Closing as this is covered by #604

@n2ygk n2ygk closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants