Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanuarprayoga9/flask-api
https://github.com/yanuarprayoga9/flask-api
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yanuarprayoga9/flask-api
- Owner: Yanuarprayoga9
- Created: 2024-05-27T09:51:07.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-27T12:31:51.000Z (7 months ago)
- Last Synced: 2024-05-27T13:51:33.473Z (7 months ago)
- Language: Python
- Homepage:
- Size: 251 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Technical Test On Software Developer (Backend) team in Agile Technica.
## Setup
instal package
```bash
pip install Flask Flask-Caching
```## Start Development Server On http://localhost:5000/
Start Dev```bash
phyton app.py
```- Task 1 complete__
![alt text](image.png)
- Task 2 complete
![alt text](image-1.png)
- Task 3 complete__
![alt text](image-2.png)
- Task 4 complete__
![alt text](image-5.png)
- Task 5 complete__
![alt text](image-4.png)
- Task Bonus Complete
See api docs
- Task Bonus 2 Complete
![alt text](image-3.png)## ENDPOINT http://localhost:5000/api
- GET /employees_with_domains
![alt text](image-5.png)
- GET /companies_with_employees
![alt text](image-4.png)- POST /create_employee
``` json
request body:
{
"name": "EMP-0004",
"first_name": "Mike",
"last_name": "Sernine",
"full_name": "Mike Sernine",
"company": "Company 3"
}
```
![alt text](image-6.png)- PUT /update_employee
``` json
request body:
{
"name": "EMP-0003",
"company": "Company 3"
}
```
![alt text](image-7.png)- DELETE /delete_employee/"EMP-0001"
![alt text](image-8.png)