Remove an API
DELETE
/api/v1/world/apis/{name}
const url = 'http://localhost:11044/api/v1/world/apis/example';const options = {method: 'DELETE', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:11044/api/v1/world/apis/example \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Removes an API entry from the world.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
string
Text matched against the spec URL of each API entry in the world’s config/apis manifests; every entry whose url contains it (a substring match, not the API’s learned name) is removed and the world rebuilt. Answers 200 whether or not anything matched
Responses
Section titled “Responses”API removed
Media type*/*
object
key
additional properties
string

