- edited description
No API path found that matches request
Issue #174
resolved
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)
-
reporter -
- changed status to resolved
Closing due to inactivity. Please feel free to re-open if the problem still exists with the latest version.
- Log in to comment