Skip to content

Incorrect resource results in 400 error? #678

Closed
@bs1180

Description

@bs1180

I'm not sure if this is a test issue or if the spec itself needs clarifying.

I'm testing a simple LRS implementation and found a conformance test that expects a HTTP 400 error for a non-existent endpoint. I suppose this reflects the requirement under section 7:

The LRS MUST reject with HTTP 400 Bad Request status any request to any of these APIs that use any parameters which the LRS does not recognize in their intended context in this specification

My initial reaction was that a 404 might be more appropriate, but on further reflection I think the test itself might be overreaching. The test is looking for something outside "these" APIs by checking for a different resource ("/abouts") which is not part of the xAPI spec. I don't think the spec - or the tests - should be concerned with other resources alongside the base endpoint, but perhaps this is something I've overlooked. Is the base endpoint forbidden from having other endpoints outside those listed in Appendix F?

For example, if my base endpoint is just example.com:
example.com/statements - xAPI endpoint so should be tested
example.com/about - xAPI endpoint so should be tested
example.com/foo - outside the spec so shouldn't be tested

Grateful for some clarification!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions