rodraxphysics / Clientes_API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clientes_API

  1. Activate the virtual environment: venv/Scripts/Activate
    (In case you don't have it, create a new one: python -m venv venv)
  2. Install all the necessary packages from the requirements.txt file: pip install -r requirements.txt
  3. Run the local server with the manage.py file located in the backend folder: python manage.py runserver 8000
  4. To create a new client, enter to POSTMAN and send a POST request to the url: localhost:8000/clientes/ Captura de pantalla (406)
  5. To see this recently created client and the list of clients, enter to POSTMAN and send a GET request to the url: localhost:8000/clientes/ Captura de pantalla (407)
  6. To update the data of the 1st client, enter to POSTMAN and send a PUT request to the url: localhost:8000/clientes/1/update/Captura de pantalla (408)
  7. To check these changes in the list of clients, enter to POSTMAN and send again a GET request to the url: localhost:8000/clientes/Captura de pantalla (409)
  8. To delete the 1st client, enter to POSTMAN and send a DELETE request to the url: localhost:8000/clientes/1/delete/Captura de pantalla (410)
  9. To check if the 1st client was deleted, enter to POSTMAN and send again a GET request to the url: localhost:8000/clientes/Captura de pantalla (411) -Also to check field validations we can send a POST request with blanks and wrong formats: Captura de pantalla (412) ... and the API will ask you to enter valid fields: Captura de pantalla (419)

About


Languages

Language:Python 97.2%Language:HTML 1.2%Language:JavaScript 0.8%Language:CSS 0.7%Language:PowerShell 0.1%Language:Batchfile 0.0%