Develop python rest api to run 6 command on UNIX/BSD.
$40-50 USD
Slutfört
Publicerad över tre år sedan
$40-50 USD
Betalning vid leverans
Develop python rest api to run 6 command on UNIX/BSD.
DESCRIPTION:
Create a REST Api using Flask framework, create the next six endpoint and storage the response back in Elasticsarch, make sure created fields exits in the json document in elasticsearch.
REST METHOD:
Method: GET /curl-cisa
Method: GET /tail-syslog
Method: GET /[login to view URL]
Method: POST /find-word/sample_word
Body: N/A = Not apply
POST /elevation-data
Body:
{
"start":0
"end":70
}
DESCRIPTION:
Command: $ curl -XPOST -d 'url=[login to view URL]' '[login to view URL]'
Command: $ tail -n 100 /var/log/syslog
Command: $ sudo tail -n 100 /var/log/[login to view URL]
Command: $ grep -A 5 "GNOME Display Manager" /var/log/[login to view URL]
Command: $ find /home/$USER/Documents/ -type f -exec grep -il 'sample_word' {} \;
Note: For this command response you should not just thinking in REST API, also thinking in timeout/response time/alternative architecture like reactive programming framework, other quick alternative can be interrupted the process after 30sec of continue running. my advice is leave for the last to work, if this command has not response, try to point to your right Documents folder based in your development machine os.
Command:
curl [login to view URL],70
Note: We want to print all all the elevation from 22 to 70, this one will required store all the response json object and convert to json list [], finally response just one list with all object inside.
Delivery:
#1 Code will push encrementally in our git repo (ask for the repo when from day 0), No one big PUSH.
#2 HLD Diagram in [login to view URL]
#3 Python REST API/folder with the Class, Files, Try to manager the curls call and the system command calls in different class, also try to fallow the Controller, Services patterns! you can have just one controller and 6 services, database access should be repository concept, take the time to think in the right project structure and let talk.
#4 Video calling the 6 endpoint from postman, video not more than a minute, doesn't mater is you record to quick, I can pause the video or putting in slow motion, No audio, No personal information in your desktop like names.
- No PPT, No Word/LibreOffice Documentation, just [login to view URL] with the example curl of how call with endpoint and how run the project "No more than 7 lines in the [login to view URL]"
Note 1: Python version 3 or 3.8 is Ok, python version 2 is Ok, if I'm able to run in with Python3 compiler without error. we test using python3.
Note 2: QUALITY CODE IS REALLY IMPORT!
Hi There,
I have a visual of your project description & grasp all your requirements. But few questions are
grappling up in my mind. I need to clarify these queries via chat. Please come over the chat to
discuss methodological aspects. And provide all the documental details in chat.
Please check my certifications to estimate my skills.
Regards,
Hello
I checked your post with title "Develop python rest api to run 6 command on UNIX/BSD.".
I am familiar to python.
I want to discuss your project in detail.
please contact me
thanks
Have experienced in Rest API with python. Can work on both framework Django and Flask.
I will always available for your queries and discussion if you needed.