{"openapi":"3.0.0","info":{"description":"This is a basic API document guide for 4D Event System","version":"1.0.0","title":"4D Event System - Fan Info Server API","contact":{"email":"jhpark@4dreplay.com"}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/4dreplay/4d-event-system/1.0.0"},{"url":"http://localhost:4000"}],"tags":[{"name":"Common","description":"root endpoint"},{"name":"Signage Server","description":"API between Signage Server"},{"name":"4D App Server","description":"API between 4D App Server"},{"name":"Storage Server","description":"API between Storage Server"},{"name":"custom Server","description":"API Between Custom Server"}],"paths":{"/":{"get":{"tags":["Common"],"summary":"FIS connection check point","description":"Fan Info Server connection check point","operationId":"testGet","responses":{"200":{"description":"FIS connection success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"message":"FIS connection success"}}}},"400":{"description":"FIS connection fail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"message":"Cannot find Fan Info Server. Trying to find server..."}}}}}}},"/common/list":{"get":{"tags":["Common"],"summary":"Get event list","description":"Get event list from FIS","responses":{"200":{"description":"Getting event list succeed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse"},"example":{"message":"Event List"}}}}}}}},"components":{"schemas":{"objectId":{"type":"string"},"RegistrationParams":{"type":"object","properties":{"userName":{"type":"string"},"sex":{"type":"string","enum":["male","female","others"]},"birthDate":{"type":"string","format":"date-time"},"phoneNum":{"type":"string"},"email":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"eventId":{"$ref":"#/components/schemas/objectId"}}},"User":{"type":"object","properties":{"_id":{"$ref":"#/components/schemas/objectId"},"userName":{"type":"string"},"sex":{"type":"string","enum":["male","female","others"]},"birthDate":{"type":"string","format":"date-time"},"phoneNum":{"type":"string"},"email":{"type":"string"},"address":{"$ref":"#/components/schemas/Address"},"events":{"type":"array","items":{"$ref":"#/components/schemas/UserEvent"}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}}},"Address":{"type":"object","properties":{"country":{"type":"string"},"state":{"type":"string"},"detailAddress":{"type":"string"},"postCode":{"type":"string"}}},"UserEvent":{"type":"object","properties":{"eventId":{"$ref":"#/components/schemas/objectId"},"shootState":{"type":"string","description":"temporal field (could be deleted later)","enum":["Registered","On WaitList","Shot","On Making Clip","Clip Ready","On Sending Clip","Clip Sended","Complete"]}}},"Access":{"type":"object","properties":{"macAddress":{"type":"string"},"eventId":{"$ref":"#/components/schemas/objectId"}}},"Event":{"type":"object","properties":{"eventId":{"$ref":"#/components/schemas/objectId"},"venueId":{"$ref":"#/components/schemas/objectId"},"description":{"type":"string"}}},"Venue":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}},"ApiResponse":{"type":"object","properties":{"message":{"type":"string"},"data":{"type":"object"}}}}}}