https://github.com/andriisoldatenko/empldep_project
empldep_project
https://github.com/andriisoldatenko/empldep_project
Last synced: 2 months ago
JSON representation
empldep_project
- Host: GitHub
- URL: https://github.com/andriisoldatenko/empldep_project
- Owner: andriisoldatenko
- Created: 2014-03-12T16:57:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-13T11:51:53.000Z (about 11 years ago)
- Last Synced: 2025-02-04T19:45:26.972Z (4 months ago)
- Language: Python
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The task is to build a django webserver with admin panel, 2 tables, and a simple API interface:
1. Create 2 tables as models in Django.
Employees:
id
first name,
last name,
department_idDepartments:
id,
name2. Allow the Admin panel to add/update/delete and search these tables.
3. Write an API interface on top op Django, where the results are in JSON format:
a) get_users - returns a list of the users, with their department name
b) get_user - receives as key the user's ID, and returns the user with it's department name.--
Example:
```bash
curl http://127.0.0.1:8000/api/get_users/
``````bash
curl http://127.0.0.1:8000/api/get_user/1/
```