Skip to content

Creating API from cookiecutter template. #4253

Closed Answered by foarsitter
DevilsAutumn asked this question in Q&A
Discussion options

You must be logged in to vote

The Python language itself is an API. Since you mention AWS I assume you want to create a HTTP API? When serving a HTTP API you need some sort of loadbalancer for your app. In this template Traefik routes you http traffic to gunicorn which serves your wsig application. I'm not enough familiar with the AWS ecosystem but I think they have an service for that (Elastic Beanstalk maybe?).

This template comes with an HTTP REST API included when using use_drf=yes, it uses https://www.django-rest-framework.org/ for that. The user app has some API endpoints:

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
5 replies
@DevilsAutumn
Comment options

@foarsitter
Comment options

@DevilsAutumn
Comment options

@foarsitter
Comment options

@DevilsAutumn
Comment options

Answer selected by DevilsAutumn
Comment options

You must be logged in to vote
2 replies
@foarsitter
Comment options

@DevilsAutumn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants