Skip to content

Commit

Permalink
Merge 1f5da89 into 5412e84
Browse files Browse the repository at this point in the history
  • Loading branch information
jmusila authored Oct 25, 2018
2 parents 5412e84 + 1f5da89 commit 1e3d57e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Application/app/api/v1/views/sales.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ def get(self, id):
for sale in Sales:
if sale['sale_id'] == id:
return sale, 200

api.abort(404)

3 changes: 2 additions & 1 deletion Application/app/api/v1/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ def get(self):
'''List all sales'''
return Users, 200


@api.route('/login')
class UserLogin(Resource):
"""
A method to login a user
Params:Password, Email
"""

@api.route('/login')
class UserLogin(Resource):
"""
Expand All @@ -101,4 +103,3 @@ def post(self):
return {"message": "User does not exist"}, 404



1 change: 0 additions & 1 deletion Application/app/tests/test_products.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,3 @@ def tearDown(self):

if __name__ == '__main__':
unittest.main()

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jonathanmusila/store_manager_api/blob/master/LICENSE)
[![Build Status](https://travis-ci.com/jonathanmusila/store_manager_api.svg?branch=master)](https://travis-ci.org/jonathanmusila/store_manager_api)
[![Coverage Status](https://coveralls.io/repos/github/jonathanmusila/store_manager_api/badge.svg?branch=master)](https://coveralls.io/github/jonathanmusila/store_manager_api?branch=master)
[![Build Status](https://travis-ci.com/jonathanmusila/store_manager_api.svg?branch=chore-updated-readme-161408978)](https://travis-ci.com/jonathanmusila/store_manager_api)
[![Coverage Status](https://coveralls.io/repos/github/jonathanmusila/store_manager_api/badge.svg?branch=ch-refatoring-code-161464947)](https://coveralls.io/github/jonathanmusila/store_manager_api?branch=ch-refatoring-code-161464947)
[![Code Climate](https://codeclimate.com/github/codeclimate/codeclimate/badges/gpa.svg)](https://codeclimate.com/github/jonathanmusila/store_manager_api)

## Store Manager
Expand Down Expand Up @@ -49,7 +49,7 @@ cd path/to/directory-your-directory
- Install postman to test the various endpoints

## Testing
Manually open the index.html file in your preferred browser. Navigate through the pages with the links provided.
Manually open Postman and test all the endpoints.

## Built With
* python
Expand Down

0 comments on commit 1e3d57e

Please sign in to comment.