Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #15 from papaya-agh/IO2019TEAM-16
Browse files Browse the repository at this point in the history
IO2019TEAM-16 IO2019TEAM-79 IO2019TEAM-81 IO2019TEAM-86
  • Loading branch information
jplewa authored May 10, 2019
2 parents d6cda54 + 566353e commit aef3763
Showing 1 changed file with 47 additions and 6 deletions.
53 changes: 47 additions & 6 deletions src/main/resources/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,51 @@ paths:
schema:
$ref: '#/definitions/SprintSummaryDto'

/users/{userId}:
get:
tags:
- users
summary: Obtains a user by id
operationId: getUser
consumes:
- application/json
produces:
- application/json
parameters:
- in: path
name: userId
type: integer
format: int64
required: true
description: Numeric ID of the user
responses:
200:
description: Object representing user
schema:
$ref: '#/definitions/UserDto'

/me:
get:
tags:
- users
summary: Obtains authenticated user's information
operationId: getAuthenticatedUser
produces:
- application/json
responses:
200:
description: Object representing user
schema:
$ref: '#/definitions/UserDto'


definitions:
LoginResult:
type: object
properties:
userId:
type: integer
format: int64
valid:
type: boolean
token:
Expand Down Expand Up @@ -420,12 +461,6 @@ definitions:
- FINISHED
- CLOSED

UserStatus:
type: string
enum:
- admin
- member

ProjectDto:
type: object
properties:
Expand All @@ -439,6 +474,12 @@ definitions:
initialCoefficient:
type: number
format: double
webhookUrl:
type: string
channelName:
type: string
userRole:
$ref: '#/definitions/UserRoleDto'
required:
- name
- description
Expand Down

0 comments on commit aef3763

Please sign in to comment.