Typescript endpoint to list users in Django

So I have a Django project and I want to create a typescript endpoint to list which users live in a certain postal code. I have never used typescript so I don't know how to create it and integrate it with the django project. Help is much appreciated.

the models.py if it is useful:

class UsuarioMaster(models.Model):
nombre = models.CharField(max_length=50)


class UsuarioDetalle(models.Model):
    usuario = models.ForeignKey(UsuarioMaster, on_delete=models.CASCADE, null=True)
    codigo_postal = models.CharField(max_length=5)
    ciudad = models.CharField(max_length=50)
    pais = models.CharField(max_length=50, default='')
Back to Top