{"openapi":"3.0.3","info":{"title":"Mock SaaS Atlassian (OAuth)","version":"1.0.0","description":"OAuth-secured REST API. /authorize + /token implement the demo OAuth flow; /rest/v3/issues is the protected resource."},"components":{"schemas":{}},"paths":{"/openapi.json":{"get":{"responses":{"200":{"description":"Default Response"}}}},"/authorize":{"get":{"operationId":"oauthAuthorize","tags":["oauth"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"client_id","required":true},{"schema":{"type":"string"},"in":"query","name":"redirect_uri","required":true},{"schema":{"type":"string"},"in":"query","name":"scope","required":true,"description":"Space-separated scopes."},{"schema":{"type":"string","enum":["code"]},"in":"query","name":"response_type","required":true},{"schema":{"type":"string"},"in":"query","name":"state","required":false}],"responses":{"200":{"description":"Default Response"}}}},"/token":{"post":{"operationId":"oauthToken","tags":["oauth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["grant_type","code"],"properties":{"grant_type":{"type":"string","enum":["authorization_code"]},"code":{"type":"string"},"client_id":{"type":"string"},"client_secret":{"type":"string"},"redirect_uri":{"type":"string"}}}}}},"responses":{"200":{"description":"Default Response"}}}},"/rest/v3/issues":{"post":{"operationId":"createIssue","tags":["issues"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"summary":{"type":"string"},"description":{"type":"string"}}}}}},"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"summary":{"type":"string"},"description":{"type":"string"}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}},"get":{"operationId":"listIssues","tags":["issues"],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"object"}}}}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}}},"servers":[{"url":"/mocks/saas-atlassian-oauth"}]}