|
862 | 862 | "required" : [ "value", "count" ], |
863 | 863 | "type" : "object" |
864 | 864 | }, |
| 865 | + "FacetableAttribute" : { |
| 866 | + "properties" : { |
| 867 | + "key" : { |
| 868 | + "type" : "string" |
| 869 | + }, |
| 870 | + "label" : { |
| 871 | + "type" : "string" |
| 872 | + } |
| 873 | + }, |
| 874 | + "required" : [ "key", "label" ], |
| 875 | + "type" : "object" |
| 876 | + }, |
| 877 | + "FacetableAttributesResponse" : { |
| 878 | + "properties" : { |
| 879 | + "attributes" : { |
| 880 | + "items" : { |
| 881 | + "$ref" : "#/components/schemas/FacetableAttribute" |
| 882 | + }, |
| 883 | + "type" : "array" |
| 884 | + } |
| 885 | + }, |
| 886 | + "required" : [ "attributes" ], |
| 887 | + "type" : "object" |
| 888 | + }, |
865 | 889 | "FactorCountsDto" : { |
866 | 890 | "properties" : { |
867 | 891 | "authenticator" : { |
|
2443 | 2467 | }, |
2444 | 2468 | "SearchFacets" : { |
2445 | 2469 | "properties" : { |
| 2470 | + "attributes" : { |
| 2471 | + "additionalProperties" : { |
| 2472 | + "items" : { |
| 2473 | + "$ref" : "#/components/schemas/FacetBucket" |
| 2474 | + }, |
| 2475 | + "type" : "array" |
| 2476 | + }, |
| 2477 | + "type" : [ "object", "null" ] |
| 2478 | + }, |
2446 | 2479 | "classifier" : { |
2447 | 2480 | "items" : { |
2448 | 2481 | "$ref" : "#/components/schemas/FacetBucket" |
|
6488 | 6521 | "schema" : { |
6489 | 6522 | "type" : "string" |
6490 | 6523 | } |
| 6524 | + }, { |
| 6525 | + "description" : "key:value filter on a declared filterable attribute, repeatable; an OR within a key, an AND across keys. At most 4 keys and 16 values per key.", |
| 6526 | + "in" : "query", |
| 6527 | + "name" : "attribute", |
| 6528 | + "schema" : { |
| 6529 | + "type" : "string" |
| 6530 | + } |
| 6531 | + }, { |
| 6532 | + "description" : "key:asc or key:desc, sorts by one declared sortable attribute; rows without a value sort last", |
| 6533 | + "in" : "query", |
| 6534 | + "name" : "attributeSort", |
| 6535 | + "schema" : { |
| 6536 | + "type" : "string" |
| 6537 | + } |
| 6538 | + }, { |
| 6539 | + "description" : "Comma-separated declared facetable attribute keys to count, at most 8", |
| 6540 | + "in" : "query", |
| 6541 | + "name" : "attributeFacets", |
| 6542 | + "schema" : { |
| 6543 | + "type" : "string" |
| 6544 | + } |
6491 | 6545 | } ], |
6492 | 6546 | "responses" : { |
6493 | 6547 | "200" : { |
|
6501 | 6555 | "description" : "OK" |
6502 | 6556 | }, |
6503 | 6557 | "400" : { |
6504 | | - "description" : "Invalid parameter or result window exceeded. The message names the parameter." |
| 6558 | + "description" : "Invalid parameter or result window exceeded. The message names the parameter. An attribute that is not declared for its use has the problem type urn:ingot:problem:undeclared-attribute, a feature the search backend does not support urn:ingot:problem:unsupported-search-capability." |
6505 | 6559 | }, |
6506 | 6560 | "404" : { |
6507 | 6561 | "description" : "Search is turned off on this instance" |
|
6514 | 6568 | "tags" : [ "Search" ] |
6515 | 6569 | } |
6516 | 6570 | }, |
| 6571 | + "/api/maven/search/attributes/facetable" : { |
| 6572 | + "get" : { |
| 6573 | + "description" : "The keys that an artifact enricher declared facetable, each with its label, ordered by key. The list is built from the declarations only: no search backend is asked and no attribute value is read. It is empty when no enricher declares a facetable key.", |
| 6574 | + "responses" : { |
| 6575 | + "200" : { |
| 6576 | + "content" : { |
| 6577 | + "application/json" : { |
| 6578 | + "schema" : { |
| 6579 | + "$ref" : "#/components/schemas/FacetableAttributesResponse" |
| 6580 | + } |
| 6581 | + } |
| 6582 | + }, |
| 6583 | + "description" : "OK" |
| 6584 | + }, |
| 6585 | + "404" : { |
| 6586 | + "description" : "Search is turned off on this instance" |
| 6587 | + } |
| 6588 | + }, |
| 6589 | + "summary" : "List the attribute keys a search can count", |
| 6590 | + "tags" : [ "Search" ] |
| 6591 | + } |
| 6592 | + }, |
6517 | 6593 | "/api/maven/search/files" : { |
6518 | 6594 | "get" : { |
6519 | 6595 | "description" : "The stored files of one GAV, ordered by path. The coordinates are required and compared case-insensitively. The access rules of the search apply: files the caller may not browse are not listed.", |
|
0 commit comments