Coder Social home page Coder Social logo

docker-php-mysql-caddy's Introduction

docker-php-mysql-caddy

Dev

docker-compose up -d --build 
docker-compose stop <service> 
docker-compose rm <service> 

Api Doc

[ Base URL: localhost:9000 ]

/api/getAttendees.php

取得所有參加者

Response

200 Success
{
    "status": 200,
    "data": [
        {
            "pkid": 1,
            "event": "Event",
            "session": "台中場",
            "job": "職稱",
            "dept": "所屬單位",
            "rocid": "A123456789",
            "name": "俊翔",
            "phone": "0988123456",
            "email": "[email protected]",
            "status": 1,
            "deleted_at": null,
            "updated_at": "2019-09-13 03:45:26"
        },
        ...
    ]
}

/api/postAttendee.php

新增參加者

Request

FormData
{
    "event": "Event",
    "session": "台中場",
    "job": "職稱",
    "dept": "所屬單位",
    "rocid": "A123456789" || null,
    "name": "Freddy",
    "phone": "0900000000",
    "email": "[email protected]"
}

Response

200 Success
{
    "status": 200,
    "data": "Success"
}
400 資料不完整
{
    "status": 400,
    "data": "Bad Request: Incomplete Request"
}
400 場次錯誤(關閉或下線)
{
    "status": 400,
    "data": "Bad Request: Error Session"
}
409 重複資料
{
    "status": 409,
    "data": "Conflict: Duplicate Data"
}
500 伺服器錯誤
{
    "status": 500,
    "data": <PDOException>
}

/api/getSessions.php

取得場次狀態

Response

200 Success
{
    "status": 200,
    "data": [
        {
            "pkid": 1,
            "session": "總論壇",
            "limit": null,
            "status": 1, // 0: Off , 1: On
            "deleted_at": null,
            "updated_at": "2019-11-30 08:50:05",
            "created_at": "2019-11-30 08:48:50"
        }
    ]
}

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.