{"openapi":"3.1.0","info":{"title":"any-pay-server","description":"Payment-protected API demo supporting x402 and MPP protocols","version":"0.1.0"},"servers":[{"url":"https://any-pay-server.vercel.app/"}],"tags":[{"name":"Both"},{"name":"Index"},{"name":"Magic"},{"name":"Mpp"},{"name":"Reverse"},{"name":"X402"}],"paths":{"/api/x402/magic":{"get":{"operationId":"x402_magic","summary":"Returns a random magic number (x402 only)","tags":["X402"],"x-payment-info":{"price":"0.01","protocols":["x402"]},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"magicNumber":{"type":"number","description":"A random number between 0 and 1"}},"required":["magicNumber"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/x402/reverse":{"post":{"operationId":"x402_reverse","summary":"Reverses the input string (x402 only)","tags":["X402"],"x-payment-info":{"price":"0.02","protocols":["x402"]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","minLength":1,"description":"The string to reverse"}},"required":["input"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"reversed":{"type":"string","description":"The reversed input string"}},"required":["reversed"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/mpp/magic":{"get":{"operationId":"mpp_magic","summary":"Returns a random magic number (MPP only)","tags":["Mpp"],"x-payment-info":{"price":"0.01","protocols":["mpp"]},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"magicNumber":{"type":"number","description":"A random number between 0 and 1"}},"required":["magicNumber"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/mpp/reverse":{"post":{"operationId":"mpp_reverse","summary":"Reverses the input string (MPP only)","tags":["Mpp"],"x-payment-info":{"price":"0.02","protocols":["mpp"]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","minLength":1,"description":"The string to reverse"}},"required":["input"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"reversed":{"type":"string","description":"The reversed input string"}},"required":["reversed"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/both/magic":{"get":{"operationId":"both_magic","summary":"Returns a random magic number (x402 + MPP)","tags":["Both"],"x-payment-info":{"price":"0.01","protocols":["x402","mpp"]},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"magicNumber":{"type":"number","description":"A random number between 0 and 1"}},"required":["magicNumber"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/both/reverse":{"post":{"operationId":"both_reverse","summary":"Reverses the input string (x402 + MPP)","tags":["Both"],"x-payment-info":{"price":"0.02","protocols":["x402","mpp"]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","minLength":1,"description":"The string to reverse"}},"required":["input"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"reversed":{"type":"string","description":"The reversed input string"}},"required":["reversed"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/magic":{"get":{"operationId":"magic","summary":"Returns a random magic number (x402 + MPP)","tags":["Magic"],"x-payment-info":{"price":"0.01","protocols":["x402","mpp"]},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"magicNumber":{"type":"number","description":"A random number between 0 and 1"}},"required":["magicNumber"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/reverse":{"post":{"operationId":"reverse","summary":"Reverses the input string (x402 + MPP)","tags":["Reverse"],"x-payment-info":{"price":"0.02","protocols":["x402","mpp"]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string","minLength":1,"description":"The string to reverse"}},"required":["input"]}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"reversed":{"type":"string","description":"The reversed input string"}},"required":["reversed"],"additionalProperties":false}}}},"402":{"description":"Payment Required"}}}},"/api/index":{"get":{"operationId":"index","summary":"index","tags":["Index"],"responses":{"200":{"description":"Successful response"}}}}}}