public class DropIndexCommand extends AbstractCommand implements CouchCommand
https://docs.couchdb.org/en/stable/api/database/find.html#delete--db-_index-designdoc-json-name
DELETE /{db}/_index/{designdoc}/json/{name}
Parameters:
db – Database name.
designdoc – Design document name.
name – Index name.
Response Headers:
Content-Type – application/json
Response JSON Object:
ok (string) – “true” if successful.
Status Codes:
200 OK – Success
400 Bad Request – Invalid request
401 Unauthorized – Writer permission required
404 Not Found – Index not found
500 Internal Server Error – Execution error
body, commandHandler, handlerException, method, urlHTTP_ACCEPTED, HTTP_BAD_REQUEST, HTTP_CREATED, HTTP_EXPECTATION_FAILED, HTTP_NO_CONTENT, HTTP_NOT_FOUND, HTTP_NOT_MODIFIED, HTTP_OK, HTTP_RESET_CONTENT| Constructor and Description |
|---|
DropIndexCommand(HttpBuilder httpBuilder,
String designDoc,
String indexName) |
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
asDelete() |
<T> T |
execute()
Execute the database statement could be a
Command or a Query |
String |
getBody() |
asGet, asHead, asPost, asPut, errorFormat, getContentEncode, getContentType, getEntity, getRevision, injectAutoIdentity, injectIdentity, isAccepted, isCreated, isExpectationFailed, isNotFound, isOk, printRequest, printResponse, setBookmark, with, with, withclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasGet, asHead, asPost, asPutpublic DropIndexCommand(HttpBuilder httpBuilder, String designDoc, String indexName)
public <T> T execute()
CommandCommand or a Querypublic String getBody()
getBody in interface CouchCommandpublic HttpMethod asDelete()
asDelete in interface CouchCommandasDelete in class AbstractCommandCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.