Swagger Petstore REDOCLY 3.1
pet
OperationId with quotes
1 min
code examples curl location request delete '//petstore swagger io/v2/pet' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'accept language en au'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("accept language", "en au"); var requestoptions = { method 'delete', headers myheaders, redirect 'follow' }; fetch("//petstore swagger io/v2/pet", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("//petstore swagger io/v2/pet") http = net http new(url host, url port); request = net http delete new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["accept language"] = "en au" response = http request(request) puts response read body import requests import json url = "//petstore swagger io/v2/pet" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'accept language' 'en au' } response = requests request("delete", url, headers=headers, data=payload) print(response text) responses
🤔
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.