Skip to content
This repository was archived by the owner on Jun 29, 2019. It is now read-only.
This repository was archived by the owner on Jun 29, 2019. It is now read-only.

Return 404 if resource is not available #49

@IDragonfire

Description

@IDragonfire
def test_invalid_clan(test_client):
    response = test_client.get('/clan/42')

    # TODO: is this correct, or should we return 404?
    assert response.status_code == 200
    assert response.content_type == 'application/vnd.api+json'

    result = json.loads(response.data.decode('utf-8'))
    assert {} == result

micheljung
As far as I understand jsonapi, 404 (http://jsonapi.org/format/#fetching-resources)

This isn't the case yet in other implementations either (can be handled in query_commons)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions