Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.31 KB

File metadata and controls

29 lines (22 loc) · 1.31 KB
title del( url, [body], [args] ) - Mock HTTP DELETE Requests with Mokapi JavaScript API
description Use Mokapi's JavaScript API to mock HTTP DELETE requests. Customize responses, handle request data, and simulate APIs for testing and development.

del( url, [body], [args] )

Make a DELETE request

Parameter Type Description
url string Request URL like https://foo.bar
body any Request body, objects will be encoded as application/json
args (optional) object Args object containing additional request parameters

Returns

Type Description
Response Response object

Example

import { del } from 'mokapi/http'

export default function() {
    del("https://foo.bar/foo")
}