Giter Site home page Giter Site logo

tickets-api's Introduction

Tickets API

This repository contains the source code for a small Symfony application that allows users to create listings with tickets for sale, verify listings, and buy tickets.

Setup

Clone the repository, then simply run php bin/console server:run. You can then make API calls to localhost:8000.

Functionality

This application is database-agnostic (no persistence layer), so API calls that rely on existing persisted data may not yield exactly the results you want :). Regardless, here are the API's 3 endpoints:

  • POST /listings/create to create a new listing. Example request body:
{
	"seller": "alice",
	"barcodes": [
		{
			"type": "xxx",
			"value": "001"
		},
		{
			"type": "xxx",
			"value": "002"
		}
	],
	"price": {
		"amount": 50,
		"currency": "EUR"
	}
}
  • POST /listings/{listingId}/verify to verify a listing.
{
	"verifier": "liza"
}
  • POST /tickets/{ticketId}/buy to buy a ticket.
{
	"buyer": "ana"
}

tickets-api's People

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.