- Build a REST API using the Flask framework to hold addresses
- Your API should have an endpoint to add new addresses. Sample data provided below of addresses to use
a. You can use any storage engine you like. Postgres, mysql, mongodb, redis, sqllite or even store in a flat file. Just make sure you give instructions on how to setup the storage device
b. the
created
field date/times as ISO-8601 with timezones UTC format when the address was created - Create an endpoint to get all addresses stored
- Create an endpoint to filter all addresses where
value="high"
- Use at least one design pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git remote rm origin | |
$ git remote add origin git@github.com:aplikacjainfo/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
MyRunner | |
''' | |
from __future__ import absolute_import | |
# Import salt modules | |
import salt.client | |
if __name__ == "__main__": |