{"openapi":"3.0.4","info":{"title":"discoveryto API","version":"1.0.0"},"servers":[{"url":"\/"}],"paths":{"\/api\/authenticated":{"get":{"operationId":"apiAuthenticated","summary":"Check if the current token is valid.","tags":["Authentication"],"security":[{"bearer":[]}],"responses":{"200":{"description":"The token is valid.","content":{"application\/json":{"schema":{"type":"object","required":["success","message","type"],"properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string"},"type":{"type":"string","enum":["AuthenticatedResponse"]}}}}}},"401":{"description":"The token was missing, expired or unrecognised.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}}}},"\/api\/conversions":{"post":{"operationId":"convertDiscoveryDocument","summary":"Convert a Google Discovery document to OpenAPI 3.1.","tags":["Conversions"],"security":[{"bearer":[]}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"An HTTPS Discovery document URL hosted on googleapis.com."},"cached":{"type":"boolean","default":true,"description":"Return a cached conversion when available. Set false to fetch and convert a fresh document."}}}}}},"responses":{"200":{"description":"The generated OpenAPI 3.1 document.","headers":{"X-DiscoveryTo-Cache":{"description":"Whether the response was served from cache.","schema":{"type":"string","enum":["HIT","MISS"]}},"X-DiscoveryTo-Cached-At":{"description":"When this URL conversion was stored in the cache.","schema":{"type":"string","format":"date-time"}}},"content":{"application\/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"The token was missing, expired or unrecognised. Produced by the auth:sanctum middleware, so it does not use the standard error envelope.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MiddlewareError"}}}},"403":{"description":"The token is accepted but was not granted this method on this path.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}},"422":{"description":"The request or Discovery document failed validation.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiValidationError"}}}}}}},"\/api\/readme":{"get":{"operationId":"apiReadme","summary":"Retrieve the API readme.","tags":["Documentation"],"responses":{"200":{"description":"The API readme, as markdown.","content":{"application\/json":{"schema":{"type":"object","required":["success","message","data","type"],"properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string"},"data":{"type":"object","required":["content"],"properties":{"content":{"type":"string","description":"The API readme, as markdown."}}},"type":{"type":"string","enum":["ReadmeResponse"]}}}}}}}}},"\/api\/user":{"get":{"operationId":"apiUser","summary":"Retrieve the authenticated user.","tags":["User"],"security":[{"bearer":[]}],"responses":{"200":{"description":"The authenticated user.","content":{"application\/json":{"schema":{"type":"object","required":["success","message","data","type"],"properties":{"success":{"type":"boolean","enum":[true]},"message":{"type":"string"},"data":{"type":"object","required":["id","name","email","email_verified_at","created_at","updated_at"],"properties":{"id":{"type":"string","maxLength":26,"description":"The unique identifier of the user"},"name":{"type":"string","maxLength":255,"description":"The users name"},"email":{"type":"string","maxLength":255,"description":"The users email"},"email_verified_at":{"type":"string","format":"date-time","description":"When the users email was verified","nullable":true},"created_at":{"type":"string","format":"date-time","description":"When the user was created","nullable":true},"updated_at":{"type":"string","format":"date-time","description":"When the user was last updated","nullable":true}}},"type":{"type":"string","enum":["UserShowResponse"]}}}}}},"401":{"description":"The token was missing, expired or unrecognised. Produced by the auth:sanctum middleware, so it does not use the standard error envelope.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MiddlewareError"}}}},"403":{"description":"The token is accepted but was not granted this method on this path.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiError"}}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}},"schemas":{"MiddlewareError":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}},"ApiError":{"type":"object","required":["success","message","type"],"properties":{"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"errors":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["error"]}}},"ApiValidationError":{"type":"object","required":["success","message","errors","type"],"properties":{"success":{"type":"boolean","enum":[false]},"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"type":{"type":"string","enum":["error"]}}}}}}