Coder Social home page Coder Social logo

reporting_channel_api's Introduction

Reporting Channel RESTful API

A reporting channel API project made for studying purposes, following RESTful principles.

Made with PHP and Flight routing system.

API Reference

Get all items

  GET /api
Parameter Type Description
deleted bool Removed reports
type string Report category
order string Order results by column
order_dir string ASC or DESC
limit int Max nº of results / starting index
offset int Max nº of results when limit is passed

Create item

  POST /api
Parameter Type Description
deleted bool Required Removed reports
type string Required Report category
message string Required Report message
is_identified bool Required Anonymous report

Get item

  GET /api/${id}
Parameter Type Description
id int Required. ID of item to fetch

Update item

  PUT|PATCH /api/${id}
Parameter Type Description
id int Required. ID of item to fetch
deleted bool Removed reports
type string Report category
message string Report message
is_identified bool Anonymous report

Note: At least one of the previous parameters must be passed

Delete item

  DELETE /api/${id}
Parameter Type Description
id int Required. ID of item to fetch

Creating development environment

1- Download the code in a zip file from repository

2- Download and install Docker

3- Unzip and store all files in a directory of your choice

4- Open terminal in the directory where all files are stored

5- Build the docker image with the command bellow:

  docker-compose build

6- Start a docker container on port 8000 with the command bellow:

  docker-compose up

reporting_channel_api's People

Contributors

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