Spec Reindex
API Specs
Spec Reindex
Re-index the specified spec’s functions.
Re-indexes the functions of the specified spec identified by its API name. Optionally specify whether to drop the existing index.
Parameters:
- api_name (str): The name of the spec to re-index.
- payload (SpecReindexPayload): Payload containing the drop flag.
- current_user (AuthUser): The current user making the request. Retrieved using dependency injection.
Returns:
- dict: Re-indexing confirmation message or error detail.
Raises:
- HTTPException(500): If an error occurs while re-indexing the functions.
POST
Spec Reindex
Authorizations
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Path Parameters
Body
application/json
Response
Successful Response
