Giter VIP home page Giter VIP logo

cvwo_forum_backend's Introduction

Ruby On Rails

NO LONGER DEPLOYED ON HEROKU


USER

Description Action / URL Body (if applicable)

Creating user
POST
/users

{
    “username” string
    “Password” string
}

Login
POST
/login

{
    “username” string
    “Password” string
}

POST

Description Action / URL Body (if applicable)

Creating post
POST
/posts

{
	“title” string
	“body” string
	“category” string
}

Getting first page of posts
GET
/posts

-

Getting the lastest page of posts (sorted by creation date, optional page number argument)
GET
/posts/latest/:page_number

-

Getting a specific page of posts
GET
/posts?page=:page_number

-

Getting posts filtered by title, optional page number argument
GET
/posts?q=:title&page=:page_number

-

Getting posts filtered by category, optional page number argument
GET
/posts?cat=:category&page=:page_number

-

Get specific post
GET
/posts/:post_id

-

Updating specific post
PATCH
/posts/:post_id

{
	“title” string
	“body” string
	“category” string
}

Deleting specific post
DELETE
/posts/:post_id


COMMENT

Description Action / URL Body (if applicable)

Creating comment
POST
/comments

{
	“body” string
	“post_id” int
}

Getting all posts
GET
/comments

-

Get specific post
GET
/comments/:comment_id

-

Getting all comments regarding specific post
GET
/posts/:post_id/comments

-

Updating specific comment
PATCH
/comments/:comment_id

{
	“body” string
	“post_id” int
}

Deleting specific comment
DELETE
/comments/:comment_id

-

cvwo_forum_backend's People

Contributors

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