No API path found that matches request

Issue #174 resolved
Greg Zealley created an issue

Hi again,

So I have hit the "No API path found that matches request" error. This is the relevant part of the Swagger:

"paths": {
    "/apis/v1/apiname/storeDatafile/<storageEngine>/<namespace>/<dataset_uri>": {
      "post": {
        "tags": [
          "apiname"
        ],
        "summary": "Some summary",
        "description": "Some description",
        "operationId": "storeDatafile",
        "parameters": [
          {
            "name": "storageEngine",
            "in": "path",
            "description": "Some description",
            "example": "documentDatabase",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "documentDatabase",
                "distributedFileSystem",
                "relationalDatabase"
              ]
            }
          },
          {
            "name": "namespace",
            "in": "path",
            "description": "Some description",
            "example": "tides_heights",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dataset_uri",
            "in": "path",
            "description": "Some description",
            "example": "dataset_uri_example",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],

this is the api call:

When a POST request is made to the URI "/apis/v1/apiname/storeDatafile/documentDatabase/tides_heights/my_test_uri"

and this is the error:

com.atlassian.oai.validator.restassured.OpenApiValidationFilter$OpenApiValidationException: {
  "messages" : [ {
    "key" : "validation.request.path.missing",
    "level" : "ERROR",
    "message" : "No API path found that matches request '/apis/v1/apiname/storeDatafile/documentDatabase/tides_heights/my_test_uri'.",
    "context" : {
      "requestPath" : "/apis/v1/apiname/storeDatafile/documentDatabase/tides_heights/my_test_uri",
      "requestMethod" : "POST"
    }
  } ]
}

Is there something obvious I am doing wrong? Thanks : )

Comments (2)

  1. Log in to comment