Skip to content

Commit

Permalink
closes tapaswenipathak#10 and tapaswenipathak#11, removes know_all_ab…
Browse files Browse the repository at this point in the history
…out with new release
  • Loading branch information
tapaswenipathak committed May 28, 2016
1 parent c6058cf commit d8e5bfb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 deletions.
2 changes: 1 addition & 1 deletion License.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Tapasweni Pathak
Copyright (c) 2016 Tapasweni Pathak

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ An API to extract horoscope.
* broken down into month, sunsign and horoscope.
* Yearly horoscope
* broken down into year, sunsign and horoscope.
* Know more about a sunsign
* broken down into lord, lucky color, lucky day, type, meaning of name, and sanskrit name.

# API Usage
### API Base URL: `http://horoscope-api.herokuapp.com/`
Expand Down Expand Up @@ -90,8 +88,6 @@ Output (excerpt):
}
```

### GET: `/horoscope/knowmore/<sunsign>`
#### Example
Example usage: `GET http://horoscope-api.herokuapp.com/knowmore/libra`

Output (excerpt):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Werkzeug==0.9.6
gunicorn==19.3.0
itsdangerous==0.24
newrelic==2.54.0.41
horoscope==1.0.1
horoscope==1.0.2
wsgiref==0.1.2
lxml
16 changes: 0 additions & 16 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def index_route():
'Weekly Horoscope': 'horoscope/week/{sunsign}',
'Monthly Horoscope': 'horoscope/month/{sunsign}',
'Yearly Horosope': 'horoscope/year/{sunsign}',
'Know More About a Sunsign': 'knowmore/{sunsign}',
}
})

Expand Down Expand Up @@ -69,21 +68,6 @@ def yearly_horoscope_route(sunsign):
horoscope=result['horoscope'])


###########################################
# More Information About A Sunsign
###########################################

@app.route('/knowmore/<sunsign>', methods=['GET'])
def know_more_route(sunsign):
result = dict(Horoscope.know_all_about(sunsign))
return jsonify(sanskrit_name=result['sanskrit_name'],
meaning_of_name=result['meaning_of_name'],
lord=result['lord'],
Type=result['type'],
lucky_day=result['lucky_day'],
lucky_number=result['lucky_number'])


###########################################
# Start Flask
###########################################
Expand Down

0 comments on commit d8e5bfb

Please sign in to comment.