API Reference
class DeclaredAPI
property method
Purpose
The HTTP method of the API.Examples
import { APIDeclaration } from 'papupata'
const api = new APIDeclaration()
const myAPI = api.declareGetAPI('/get-stuff')
.response<string>()
// myAPI.method === 'get'