Giter Club home page Giter Club logo

laboratorio-12-13's Introduction

Authentication and Authorization

๐Ÿ‘จโ€โš–๏ธ RESTful API of Public Connotation Cases in Ecuador ๐Ÿ‡ช๐Ÿ‡จ

The objective of the API is to create new functionalities such as creating an advanced search function that allows filtering cases based on more personable criteria, and thus improve the obtaining of information on cases of public significance in Ecuador, which are officially detailed on the website of the Attorney General's Office. This will help mitigate misinformation on social networks by having official information easily obtained with the new implemented functionalities.

RESTful API Deployment URL: https://laboratorio-12-13.onrender.com

๐Ÿš€ Get Started

To create, update, or delete data in the RESTful API, you must register and then log in using a REST Client (e.g. Postman). Credentials are included in the request body, and once logged in, a token is sent to you in the response for use within one hour. This token goes in the authentication header of the request when using the API's private routes.

REGISTER AND LOGIN

Route to register new user account:

POST /api/v1/users/register

Route to log in to the registered user account:

POST /api/v1/users/login

In the request body include the following properties:

{
  "username": "Your username",
  "email":"Your email",
  "password": "Your password"
}

๐Ÿ› ๏ธ API Architecture (CRUD Operations)

In private routes (POST, PUT and DELETE) include the token granted upon login in the authentication headers to make use of the API

Data Schema

{
  "rute": [],
  "capacity":{
    "blue": number, 
    "yellow": number, 
    "green": number
  },
  "startsAt":"",
  "endsAt":"",
ย ย "driverId":number
}

CREATE

POST /api/v1/tankers

image

READ

GET /api/v1/tankers
GET /api/v1/tankers/{id}

image

UPDATE

PUT /api/v1/tankers/{id}

image

DELETE

DELETE /api/v1/takers/{id}

image

laboratorio-12-13's People

Contributors

johnmata0427 avatar dustin1904 avatar alanriosm avatar a2lejo avatar samuelcu avatar

Stargazers

 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.