obidient / 23ForObiApi

MIT License
4 stars 8 forks source link

States #9

Closed phemmylintry closed 2 years ago

phemmylintry commented 2 years ago

States are provided by bigfastapi. Import the states module

Example

from bigfastapi.countries import app as countries

app.include_router(countries, tags=["Countries"])

Task

mikenrowland commented 2 years ago

@phemmylintry assign this to me

mikenrowland commented 2 years ago

Hi boss @phemmylintry I've been trying to wrap my head round this issue. So after my setup and importing countries from bigFast, I can't seem to understand what else this endpoint should be doing since BigFastAPI already returns a list of all states @ this url http://127.0.0.1:7001/countries/NGA/states

phemmylintry commented 2 years ago

@mykie88 For state details, please create a model to store extra state details such as

phemmylintry commented 2 years ago

This has been implemented