GithubHelp home page GithubHelp logo

sales-platform-api's Introduction

API-Overview

This is an API for a sales platform web application, where anyone can create an user and list items for sale. These postings can be modified or deleted. Anyone can search for postings based on their creation date, category or location.

This API has the following endpoints:

/

GET - The main page for the API

/registeruser

GET - Used for creating a new user account. Username and password must be provided in the body. Additionally in this version of the API, a randomized user id must also be provided.

Body requirements:

  • id - string
  • username - string
  • password - string

/login

GET - Used for logging an user in, providing access to posting, modifying and deleting postings.

Body requirements:

  • username - string
  • password - string

/logout

GET - Logging the user out.

Body requirements:

  • id - string

/postings

GET - Getting postings created by all users. Can be queried with Time, Location and/or Category

Optional query parameters:

  • time - string
  • category - string
  • location - string

POST - Creating a new posting - login is required.

Body requirements (strings):

  • id
  • postingid
  • title
  • description
  • category
  • location
  • images
  • price
  • dateofposting (UNIX stamp)
  • deliverytype
  • sellername
  • sellerphone

/postings/:id

PUT - Modifying an existing posting's title, description and price (LOGIN REQUIRED)

Body requirements (id = userid):

  • id - string
  • newTitle - string
  • newDescription - string
  • newPrice - string

DELETE - Deleting an existing posting (LOGIN REQUIRED)

Body requirements (id = userid):

  • id - string

sales-platform-api's People

Contributors

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