Skip to content

Commit 6d3a429

Browse files
authored
Added docker-compose.yml and tutorial & routes to readme (#13)
* Added docker-compose.yml and added routes to readme * Added route URL to estimation creation service in docs
1 parent 6730c79 commit 6d3a429

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

README.md

+92
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,94 @@
11
# dotnet-estimation
22
With this project, we want to deliver a lightweight open-source tool for scrum-based workflows in which new task complexities can be easily estimated by the team and archived for a possible retrospective.
3+
4+
## How to start the estimation application
5+
Run the Application by executing the
6+
``
7+
docker-compose up
8+
``
9+
command in the root folder.
10+
11+
## Routes
12+
The estimation application's backend provides the following services and routes:
13+
14+
15+
### Session Status
16+
Provides the user with information about if a session is valid and the task which is currently estimated.
17+
18+
- CRUD: **GET**
19+
- Route: */estimation/v1/session/{id}/status*
20+
- Parameter
21+
- _id_: Session ID
22+
- Returns ``statusResult``-Object, including
23+
- ``bool isValid``
24+
- ``TaskDto currentTask``
25+
- ``long Id``
26+
- ``string Title``
27+
- ``string Description``
28+
- ``string Url``
29+
- ``Status Status``
30+
- ``enum Status``
31+
32+
### Create Session
33+
Enables a user to create a new estimation session.
34+
35+
- CRUD: **POST**
36+
- Route: */estimation/v1/session/newSession*
37+
- Returns ``Session``-Object, including
38+
- ``long Id``
39+
- ``string InviteToken``
40+
- ``DateTime ExpiresAt``
41+
- ``List<Task> Tasks``
42+
- ``List<User> Users``
43+
- ``bool isValid``
44+
45+
### Add User to Session
46+
Enables a user to join an existing and valid estimation session.
47+
48+
- CRUD: **POST**
49+
- Route: */estimation/v1/session/{sessionId:long}/{userId}/joinSession*
50+
- Parameter:
51+
- _sessionId_: Session Id
52+
- _userId_: User Id
53+
- Returns ``boolean``
54+
- ``true`` if successful
55+
- ``false`` if unsuccessful
56+
57+
### Add Estimation
58+
Enables a user to provide an estimation during an existing and valid estimation session.
59+
60+
- CRUD: **POST**
61+
- Route: */estimation/v1/session/{sessionId:long}/estimation*
62+
- Parameter
63+
- _sessionId_: Session Id
64+
- _estimationDto_: Object including ``string VoteBy`` and ``int Complexity``
65+
- Returns ``EstimationDto``-Object, including
66+
- ``string VoteBy``
67+
- ``int Complexity``
68+
69+
### Remove User from Session
70+
Removes a user from an existing and valid estimation session.
71+
72+
- CRUD: **PUT**
73+
- Route: */estimation/v1/session/{sessionId}/leaveSession/{userId}*
74+
- Parameter
75+
- _sessionId_: Session Id
76+
- _userId_: User Id
77+
- Returns ``boolean``
78+
- ``true`` if successful
79+
- ``false`` if unsuccessful
80+
81+
### Invalidate/Terminate Session
82+
Enables a user to invalidate/terminate an existing and valid estimation session.
83+
84+
- CRUD: **PUT**
85+
- Route: */estimation/v1/session/{id:long}/invalidate*
86+
- Parameter
87+
- _id_: Session Id
88+
- Returns ``boolean``
89+
- ``true`` if successful
90+
- ``false`` if unsuccessful
91+
92+
93+
94+

docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.8"
2+
services:
3+
dotnet-estimation:
4+
container_name: devon4net-estimation
5+
build:
6+
context: ./dotnet-estimation/Templates/WebAPI
7+
dockerfile: ./dotnet-estimation/Devon4Net.Application.WebAPI/Dockerfile
8+
ports:
9+
- 8085:8085

0 commit comments

Comments
 (0)