GithubHelp home page GithubHelp logo

arthurbrenno / drivescript Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28.81 MB

Rust 0.83% JavaScript 1.43% Batchfile 0.07% CSS 0.17% HTML 88.68% Vue 0.51% PHP 6.01% Blade 1.25% EJS 0.04% Java 0.04% TypeScript 0.85% Dockerfile 0.02% Go 0.10%

drivescript's Introduction

title language_tabs toc_footers includes search code_clipboard highlight_theme headingLevel generator
DriveScript v1.0.0
shell
Shell
http
HTTP
javascript
JavaScript
ruby
Ruby
python
Python
php
PHP
java
Java
go
Go
true
true
darkula
2
@tarslib/widdershins v4.0.17

DriveScript

v1.0.0

Base URLs:

Authentication

Alunos

GET /api/alunos/

GET /api/alunos/

Params

Name Location Type Required Description
x-access-token header string yes none

Response Examples

403

{
  "status": "Forbidden",
  "message": "Token não fornecido."
}

Responses

HTTP Status Code Meaning Description Data schema
403 Forbidden 403 Inline

Responses Data Schema

HTTP Status Code 403

Name Type Required Restrictions Title description
» status string true none none
» message string true none none

GET /api/alunos/{id}

GET /api/alunos/{id}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string yes none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

POST /api/alunos/criar

POST /api/alunos/criar

Body Parameters

{
  "nome": "string",
  "cpf": "string",
  "data_nascimento": "string",
  "endereco": "string",
  "telefone": "string"
}

Params

Name Location Type Required Description
x-access-token header string yes none
body body object no none
» nome body string yes none
» cpf body string yes none
» data_nascimento body string yes none
» endereco body string yes none
» telefone body string yes none

Response Examples

401

{
  "status": "Unauthorized",
  "message": "Token inválido."
}

Responses

HTTP Status Code Meaning Description Data schema
401 Unauthorized 401 Inline

Responses Data Schema

HTTP Status Code 401

Name Type Required Restrictions Title description
» status string true none none
» message string true none none

PUT /api/alunos/update/{id}

PUT /api/alunos/update/{id}

Body Parameters

{
  "nome": "string",
  "cpf": "string",
  "data_nascimento": "string",
  "endereco": "string",
  "telefone": "string"
}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string yes none
body body object no none
» nome body string yes none
» cpf body string yes none
» data_nascimento body string yes none
» endereco body string yes none
» telefone body string yes none

Response Examples

403

{
  "status": "Forbidden",
  "message": "Token não fornecido."
}

Responses

HTTP Status Code Meaning Description Data schema
403 Forbidden 403 Inline

Responses Data Schema

HTTP Status Code 403

Name Type Required Restrictions Title description
» status string true none none
» message string true none none

DELETE /api/alunos/delete/{id}

DELETE /api/alunos/delete/{id}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string yes none

Response Examples

Success

{
  "status": "OK"
}

Responses

HTTP Status Code Meaning Description Data schema
200 OK Success Inline

Responses Data Schema

HTTP Status Code 200

Name Type Required Restrictions Title description
» status string true none none

Carros

GET /api/carros

GET /api/carros

Params

Name Location Type Required Description
x-access-token header string yes none

Response Examples

403

{
  "status": "Forbidden",
  "message": "Token não fornecido."
}

Responses

HTTP Status Code Meaning Description Data schema
403 Forbidden 403 Inline

Responses Data Schema

HTTP Status Code 403

Name Type Required Restrictions Title description
» status string true none none
» message string true none none

GET /api/carros/{id}

GET /api/carros/{id}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string yes none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

POST /api/carros/criar

POST /api/carros/criar

Body Parameters

{
  "marca": "string",
  "modelo": "string",
  "ano": 0,
  "placa": "string",
  "capacidade_de_passageiros": 0
}

Params

Name Location Type Required Description
x-access-token header string yes none
body body object no none
» marca body string yes none
» modelo body string yes none
» ano body integer yes none
» placa body string yes none
» capacidade_de_passageiros body integer yes none

Response Examples

403

{
  "status": "Forbidden",
  "message": "Token não fornecido."
}

Responses

HTTP Status Code Meaning Description Data schema
403 Forbidden 403 Inline

Responses Data Schema

HTTP Status Code 403

Name Type Required Restrictions Title description
» status string true none none
» message string true none none

PUT /api/carros/alterar/{id}

PUT /api/carros/alterar/{id}

Body Parameters

{
  "marca": "string",
  "modelo": "string",
  "ano": 0,
  "placa": "string",
  "capacidade_de_passageiros": 0
}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string yes none
body body object no none
» marca body string yes none
» modelo body string yes none
» ano body integer yes none
» placa body string yes none
» capacidade_de_passageiros body integer yes none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

DELETE /api/carros/deletar/{id}

DELETE /api/carros/deletar/{id}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string yes none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

Agendamentos

GET /api/agendamentos/

GET /api/agendamentos/

Params

Name Location Type Required Description
x-access-token header string yes none

Response Examples

403

{
  "status": "Forbidden",
  "message": "Token não fornecido."
}

Responses

HTTP Status Code Meaning Description Data schema
403 Forbidden 403 Inline

Responses Data Schema

HTTP Status Code 403

Name Type Required Restrictions Title description
» status string true none none
» message string true none none

GET /api/agendamentos/{id}

GET /api/agendamentos/{id}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string no none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

POST /api/agendamentos/criar

POST /api/agendamentos/criar

Body Parameters

{
  "aluno_id": "string",
  "carro_id": "string",
  "data_aula": "string",
  "horario_aula": "string"
}

Params

Name Location Type Required Description
x-access-token header string no none
body body object no none
» aluno_id body string yes none
» carro_id body string yes none
» data_aula body string yes none
» horario_aula body string yes none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

PUT /api/agendamentos/alterar/{id}

PUT /api/agendamentos/alterar/{id}

Body Parameters

{
  "aluno_id": "string",
  "carro_id": "string",
  "data_aula": "string",
  "horario_aula": "string"
}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string no none
body body object no none
» aluno_id body string yes none
» carro_id body string yes none
» data_aula body string yes none
» horario_aula body string yes none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

DELETE /api/agendamentos/deletar/{id}

DELETE /api/agendamentos/deletar/{id}

Params

Name Location Type Required Description
id path string yes none
x-access-token header string no none

Response Examples

0

null

Responses

HTTP Status Code Meaning Description Data schema
0 Unknown 0 Inline

Responses Data Schema

Auth

POST /api/login

POST /api/login

Body Parameters

{
  "user": "string",
  "password": "string"
}

Params

Name Location Type Required Description
body body object no none
» user body string yes none
» password body string yes none

Response Examples

Success

{
  "auth": true,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyaWQiOjEsIm5pdmVsX3Blcm1pc3NhbyI6MCwiaWF0IjoxNzAxMDE2MTMzLCJleHAiOjE3MDEwMTk3MzN9.-3yzBSETiuHP2MrnTXrSP3-ASyUdXUfWZ12NM5paQLg",
  "usuario": {
    "id": 1,
    "username": "admin",
    "password": "admin",
    "nivel_perm": 0
  }
}

Responses

HTTP Status Code Meaning Description Data schema
200 OK Success Inline

Responses Data Schema

HTTP Status Code 200

Name Type Required Restrictions Title description
» auth boolean true none none
» token string true none none
» usuario object true none none
»» id integer true none none
»» username string true none none
»» password string true none none
»» nivel_perm integer true none none

Data Schema

drivescript's People

Contributors

arthurbrenno avatar welcleys 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.