Closed zamaniamin closed 1 year ago
Because this is an API I suggest to use API keyword behind each path
path("/api/user/signup")
. I think its better and looks nicer. For each part of our app we can use some sort of pattern likepath("/api/{APP_NAME}/{ACTION}"
And one thing is that if you wanna have different releases, you will need versioning the api, in this way if you make changes in your api, there won't be much refactoring on front-end side. you can handle this with just simple solutions like addingvx
->v1
after api keyword.Final form
path("api/v1/{APP_NAME}/", include('{APP_NAME}.urls'))
well, but if I set the routes like your suggestion, we have some config conflict with swagger
. so we need to sync this with swagger.
if you are interested in, we can create a new issue and leave it to you.
I coded the
user Sign-in and Sign-up
, pleas test and review the code and give me your feedback. thank you.I will start this issues:
update: you can test as
superuser
andsimple user