{"swagger":"2.0","info":{"description":"API pentru proiectul despre anxietate cu Zah\n","version":"1.0.0","title":"Anxy","contact":{"email":"d.zsolti@yahoo.com"}},"tags":[{"name":"user","description":"Operations on users"}],"paths":{"/user/authenticate":{"post":{"tags":["user"],"summary":"Creaza unul nou sau Returneaza un user deja existent","operationId":"authenticate","produces":["application/json"],"parameters":[{"name":"username","in":"query","description":"The user name for login","required":true,"type":"string"},{"name":"password","in":"query","description":"The password for login in clear text","required":true,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"type":"string"},"headers":{"X-Rate-Limit":{"type":"integer","format":"int32","description":"calls per hour allowed by the user"},"X-Expires-After":{"type":"string","format":"date-time","description":"date in UTC when token expires"}}},"400":{"description":"Invalid username/password supplied"}}}}},"securityDefinitions":{"petstore_auth":{"type":"oauth2","authorizationUrl":"http://petstore.swagger.io/oauth/dialog","flow":"implicit","scopes":{"write:pets":"modify pets in your account","read:pets":"read your pets"}},"api_key":{"type":"apiKey","name":"api_key","in":"header"}},"definitions":{"User":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"},"password":{"type":"string"},"phone":{"type":"string"},"userStatus":{"type":"integer","format":"int32","description":"User Status"}},"xml":{"name":"User"}}},"host":"virtserver.swaggerhub.com","basePath":"/dozsolti/Zah/1.0.0","schemes":["https"]}