Giter Club home page Giter Club logo

plataforma's Introduction

examples:

login

curl --location --request POST 'http://127.0.0.1:8080/rentings/api/api-token-auth' \ --form 'username="pepeBusiness"' \ --form 'password="321Asd1_"'

post Room

curl --location --request POST 'http://127.0.0.1:8080/rentings/api/Room/' \ --header 'Authorization: token c3e266c7970c57c865f4fd4e92ecd9ff2fc26520' \ --form 'name="room1"' \ --form 'capacity="1"'

post Event

curl --location --request POST 'http://127.0.0.1:8080/rentings/api/Event/' \ --header 'Authorization: token c3e266c7970c57c865f4fd4e92ecd9ff2fc26520' \ --form 'id_room="8"' \ --form 'name="event1"' \ --form 'types="public"' \ --form 'date="2022-08-10"'

test

you could execute the test with python manage.py test

superuser

{
	user: edutel,
	password: 12345678
}

other user

{
	{
		'user': 'eduardoCustomer',
		'password': '321Asd1_'
	},
	{
		'user': 'pepeBusiness',
		'password': '321Asd1_'
	},
	{
		'user': 'juanCustomer',
		'password': '321Asd1_'
	},
	{
		'user': 'ricardoCustomer',
		'password': '321Asd1_'
	}
}

python manage.py createsuperuser python manage.py runserver 8080 python manage.py migrate python manage.py makemigrations

from apps.rentings.models import Event, Through_Event_User_customer

.

plataforma's People

Contributors

edutel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.