Skip to content

enhance : Search for the name of the property item in "Search for artifacts" API. #1260

@Yuutakasan

Description

@Yuutakasan

When multiple people are developing or using many APIs, it becomes difficult to find out when and where the API was defined just by searching the name. If I want to search for APIs that handle similar data, I can use the property name, label, description, and other items to search.

The search for artifacts api does not have a function to search for a property name, so if I want to search for a property name, I need to open all the APIs and check them.

Search for artifacts API Document

Please add the ability to search by item property name.

Register a jsonshema that contains the property "post-office-box”.
image

{
  "$id": "https://example.com/address.schema.json",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "An address similar to http://microformats.org/wiki/h-card",
  "type": "object",
  "properties": {
    "post-office-box": {
      "type": "string"
    },
    "extended-address": {
      "type": "string"
    },
    "street-address": {
      "type": "string"
    },
    "locality": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "postal-code": {
      "type": "string"
    },
    "country-name": {
      "type": "string"
    }
  },
  "required": [
    "locality",
    "region",
    "country-name"
  ],
  "dependencies": {
    "post-office-box": [
      "street-address"
    ],
    "extended-address": [
      "street-address"
    ]
  }
}

Searching for post-office-box does not return any results.
image

http://localhost:8080/api/search/artifacts?limit=10&order=asc&over=everything&search=post-office-box
api response
{"artifacts":[],"count":0}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions