Skip to main content
Module

x/alosaur/openapi/e2e/openapi.text.snapshot

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
File
{"openapi":"3.0.0","info":{"title":"Product Application2","version":"1.0.0","description":"Example Alosaur OpenApi generate"},"paths":{"/{id}":{"get":{"tags":[""],"responses":{"200":{"description":"Product founded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"404":{"description":"Product has missing/invalid values","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResult"}}}},"500":{"description":"Oops! Can't create your product right now"}},"parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"description":"Gets product by id"}},"/":{"post":{"tags":[""],"responses":{"200":{"description":"Product created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}}},"parameters":[],"description":"Create product","requestBody":{"content":{"application/xml":{"schema":{"$ref":"#/components/schemas/Product"}},"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}}}}},"components":{"schemas":{"NotFoundResult":{"description":"Standart not found result","properties":{"status":{"type":"integer"},"description":{"type":"string"}}},"Product":{"description":"Entity of product","properties":{"id":{"example":"1","type":"integer"},"arr":{"example":"[1,2,3]","type":"array","items":{"type":"integer"}},"type":{"example":"{id:0}","$ref":"#/components/schemas/ProductType"},"count":{"maximum":100,"type":"integer"},"description":{"type":"string"},"isPrimary":{"type":"boolean"},"object":{"type":"string"},"objectKeyword":{"type":"object"},"identifer":{"type":"integer"},"minType":{"type":"object"},"date":{"type":"string"}}},"ProductType":{"description":"Type of product","properties":{"id":{"type":"integer"},"type":{"$ref":"#/components/schemas/ProductTypeEnum"}}},"ProductTypeEnum":{"type":"string","enum":["shop","clothes","education"]}},"responses":{},"parameters":{},"examples":{},"requestBodies":{},"headers":{},"securitySchemes":{},"links":{},"callbacks":{}},"tags":[],"servers":[{"url":"http://localhost:8000","description":"Local server"}]}