Giter Club home page Giter Club logo

zach_noises_api's Introduction

The Zach Noise API

Zach makes a lot of noises, they should be reported and saved.

Usage

Where

https://zach-noise-api.herokuapp.com/api/

Api Key

All requests must include an api_key to be processed.

Name Required Example
api_key yes ?api_key=API_KEY

Routes

GET /api/noises

Returns all noises


GET /api/noises/:id

Name Required Description
id yes Number

Returns a single noise


POST /api/noises

Body
Name Required Description
type yes Number (type id)
severity yes Float (min:1, max:6)
reporter No Number (reporter id)

Saves a noise to the database


PATCH /api/noises/:id

Name Required Description
id yes Number
Body
Name Required Description
Severity No Number (ID)
Reporter No Number (ID)
Type No Number (ID)

Updates a noise at a specific ID


DELETE /api/noises/:id

Name Required Description
id yes Number

Deletes a noise from the database


GET /api/types

Returns all types


GET /api/types/:id

Name Required Description
id yes Number

Returns a single type


POST /api/types

Body
Name Required Description
name yes String

Saves a noise type to the database


PATCH /api/types/:id

Name Required Description
id yes Number
Body
Name Required Description
Name Yes String

Updates a type at a specific ID


DELETE /api/types/:id

Name Required Description
id yes Number

Deletes a type from the database


GET /api/search?query=[QUERY]&more_than=[NUMBER]&less_than=[NUMBER]

Name Required Description
query yes String
more_than no Number
less_than no Number

Returns all noises of that type
Returns all noises of that type with a severity more than x
Returns all noises of that type with a severity less than y

zach_noises_api's People

Contributors

dependabot[bot] avatar xdagency 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.