DEV Community

Piyush Bag
Piyush Bag

Posted on

How do I start building an API for an application?

I am trying to build a currency exchange API using a third-party currency conversion API, which will allow users to sign up, sign in, and able to create, read, update user balance/wallet, and able to convert currency.

Can anyone guide how to start? I am planning to use Django and Django REST Framework and want to test using POSTMAN?

Top comments (3)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

I am starting to believe OpenAPI or Swagger should be used everywhere. The easiest way for Python is FastAPI.

API testing can be done with Swagger UI or Redoc.

As for Django REST framework, I think it is famous for the ORM. Not sure about OpenAPI plugins.

Collapse
 
rolfstreefkerk profile image
Rolf Streefkerk

OpenAPI seconded, it will save you a lot of time due to its ability to do code generation. Plus it will give you the API documentation you would otherwise have to write as a secondary artifact.
A lot of frameworks support OpenAPI, I'm not familiar with Django but I know Postman will allow imports and you can use that to create a test suite to start using that as an API testing setup.

Collapse
 
hnt62078 profile image
hnt62078

30 Days of Python - Day 13 - Using a REST API Service - Python TUTORIAL
youtu.be/Sg5VTTBIhqo
+
Create a Twitter-like App with Python Django JavaScript and React. Full TUTORIAL
youtu.be/f1R_bykXHGE