GithubHelp home page GithubHelp logo

ada-api's Introduction

Get It Started -

  • Create a database ada-api in your Postgres local instance
  • Rename .env.exmaple to .env.
  • Add in the database user and password for your postgres instance containing the database ada-api.
  • In the root folder run go run main.go.
  • Get the API docs at http://localhost:3000/swagger/index.html

Tasks

Endpoints

  • /api/student

    • / [GET] returns all students
    • /:school_id [GET] returns a specific student
    • / [POST] creates a new student
    • /:school_id [PUT] updates the student data
    • /:school_id [DELETE] deletes the specified student
  • /api/instructor

    • / [GET] returns all instructors
    • /:school_id [GET] returns a specific instructor
    • / [POST] creates a new instructor
    • /:school_id [PUT] updates the instructor data
    • /:school_id [DELETE] deletes the specified instructor
  • /api/building

    • / [GET] returns all buildings
    • /:name [GET] returns a specific building
    • / [POST] creates a new building
    • /:name [PUT] updates the building data
    • /:name [DELETE] deletes the specified building
  • /api/room

    • / [GET] returns all rooms
    • /:building_name [GET] returns all rooms on a specified building_name
    • /:name [GET] returns a specific room
    • / [POST] creates a new room
    • /:name [PUT] updates the room data
    • /:name [DELETE] deletes the specified room
  • /api/key

    • /:bulding_name [GET] get all keys in a building
    • / [POST] creates a new key
    • /:rfid [PUT] updates a key
    • /:rfid [DELETE] deletes a key
  • /api/record

    • / [GET] get all records
    • / [POST] creates a new record
      • should also update the key status

ENDPOINTS POTENTIAL PROBLEMS/BUGS

  • implement a limit or range of records

  • fix /api/room/:name [GET] endpoint

  • create unit tests for all handlers

ada-api's People

Contributors

marcbentoy 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.