An django rest api for Aweber widgets
Build Docker Image:
cd api
docker build -t aweber_widget_api .
Run Docker Container:
docker run -d -p 8080:8000 --name aweber_widget_api aweber_widget_api
-
To see all of the endpoints navigate to the swagger ui 127.0.0.1:8080/schema/swagger-ui
-
To download the OpenAPI spec document navigate to 127.0.0.1:8080/schema
-
To Create a new widget
- Go to 127.0.0.1:8080/widgets/
- At the bottom you can type in the name and number of parts for a new widget and hit the "post" button. This will save a new widget.
-
To update/read/delete an existing widget
- Navigate to 127.0.0.1:8080/widgets/
- At the bottom you will be able to edit the widgets name and number_of_parts field and put or patch.