Skip to content

Instantly share code, notes, and snippets.

View sercand's full-sized avatar

Sercan Değirmenci sercand

  • Otsimo
  • Turkey
View GitHub Profile

Transparent Restaurant Backend

In this task, you're going to implement a REST API for a interacting with a menu of a restaurant. The menu is given to you as a JSON file which you will parse and perform operations on. The required features will be listed below.

Description

In this restaurant, honesty is extremely promoted. So extreme, that the restaurant declares that differing quality of ingredients are used in their meals. Like that's not enough, it also allows the customers to choose the ingredients of each meal in different qualities. Each ingredient has the following quality levels:

  • low: the cheapest
  • medium: moderate
@sercand
sercand / main.go
Created January 7, 2018 20:49 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@sercand
sercand / vega-schema.json
Last active December 6, 2016 18:41
vega schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Vega 3.0 Visualization Specification Language",
"defs": {
"autosize": {
"enum": [
"pad",
"fit",
"none"
],
@sercand
sercand / service.json
Created November 15, 2016 14:01
service.json
{
"swagger": "2.0",
"info": {
"title": "service.proto",
"version": "version not set"
},
"schemes": [
"http",
"https"
],
@sercand
sercand / stress.yaml
Created July 1, 2016 07:36
Kubernetes Stress Job
apiVersion: batch/v1
kind: Job
metadata:
name: pi-with-timeout
spec:
parallelism: 20
completions: 100
template:
metadata:
name: pi