- python-dotenv
- flask
- Flask restfull
- Mongodb
- MongoEngine
- Pymongo
- Flask-Marshmallow
- ipython
- ipdb
- flask-shell-ipython
- isort
- pytest-flask
- flake8
- pytest
- pytest-cov
- pytest-runner
- Faker
- flask-mongoengine
- gunicorn
- marshmallow
Flask-B2W is a Restful API, a CRUD of planets was implemented using MongoDB database, this challenge for the backend developer position on B2W DIGITAL.
- enter in directory flask-b2w
- run the command pip install pipenv
- run the command pipenv install
- run the command python application.py or make run
- Open postman.
- Go to file tab and click import or Ctrl+O
- Open file in directory flask-b2w/docs/API-B2W.postman_collection.json
- Do the operations according to the documentation
- id
- name
- climate
- terrain
- films
- films_appearances
- created_at
Path | Method | Status Code | Description |
---|---|---|---|
/planets |
GET |
200 | List all planets |
/planets/<string:planet_id> |
GET |
200 | Get a planet by id |
/planets |
POST |
201 | Create a planet |
/planets/<string:planet_id> |
PUT |
200 | Update all fields |
/planets/<string:planet_id> |
DELETE |
204 | Delete a planet |
/planets/name/<string:planet_name> |
GET |
200 | Get a planet by name |
make test