Skip to content

Conversation

dhirensr
Copy link
Collaborator

@dhirensr dhirensr commented May 28, 2019

@Ali-Razmjoo : created the branch here ! and would push all commits related to refactoring on this branch!
related to #27 : I followed some of the REST api conventions from https://restfulapi.net/resource-naming/

and also in the commit messages i have mentioned what is done per commit

dhirensr added 3 commits May 28, 2019 11:16
… aggregate.

what :
1. we can just pass aggregate query and data connection object on which
aggregate to apply on.
2. all examples on internet use it this way (for eg:
http://zetcode.com/python/pymongo/)
what : according to rest conventions if the object is just retrieving from
database its a GET call ,POST call is when you create an object in database

2.also URI names should not contain underscores and instead hyphens because its
good for readability.

3. the name should be an explicit noun ,which is clear and understood.

source : https://restfulapi.net/resource-naming/
…/all events

what : combined the network events and by date ,and similarly for honeypot
events and all events

also removed the POST call according to convention

also made the changes in the web js part
@dhirensr dhirensr requested a review from Ali-Razmjoo May 28, 2019 11:14
dhirensr and others added 8 commits May 28, 2019 15:09
what : combined get_network_events and get_network_events_by_date
also renamed get_network_events to network-events and so on
what: combined top honeypot event ips /by date/by country/by country and date
together
what:
combined honeypot/network events ips by date,country,country and date together
and made changes in the web ui
what : refactored the code for honeypot/network events ports ,ports by
country,date,country and date.
what : refactored the routes for getting top machinenames
what: combined the top honeypot countries and by date
similarly for network events
what: i changed the uri names in the code so i changed the names in the js file
which is calling the URI's
Copy link
Collaborator

@Ali-Razmjoo Ali-Razmjoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR, good job 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants