Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewolfxyou authored Dec 10, 2020
1 parent 0fd0724 commit 13e8021
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,30 @@ docker build -t projectmanagement -f docker/acme-project-management.Dockerfile .
docker run -it --rm -p 5000:5000 -e ASPNETCORE_ENVIRONMENT=Development --name projectmanagement projectmanagement
```

open your browser use
### open your browser use
```
http://localhost:5000/swagger
```
to try the api:
### try the api:

There is a memory data storge:
The Employee data can be found: [EmployeeDao.cs](https://github.com/mikewolfxyou/WhatEverProjectManagement/blob/main/src/ProjectManagement.Api/DataAccess/EmployeeDao.cs)
The project state can be found: [ProjectState.cs](https://github.com/mikewolfxyou/WhatEverProjectManagement/blob/main/src/ProjectManagement.Api/Models/ProjectState.cs)
* The project state can be found: [ProjectState.cs](https://github.com/mikewolfxyou/WhatEverProjectManagement/blob/main/src/ProjectManagement.Api/Models/ProjectState.cs)
: Planned - 0, Active - 1, Done - 2, Failed - 3

Planned - 0, Active - 1, Done - 2, Failed - 3
* participant should be employee ids (integer) json array: e.g. `[1,2,3]`
* progress is float(4,2) number or 0

### Query Employee
* Query all employees
```
GET /employee-query/employee
```

* Get employee by id
```
GET /employee-query/employee/{employeeId}
```

### Project management

* Overview of all projects
```
Expand Down

0 comments on commit 13e8021

Please sign in to comment.