SlideShare una empresa de Scribd logo
1 de 10
API Specification Doc
( YUHN API v0.3)
Version Date Author Description
0.1 09/10/2013 ThuongNV Initial
0.3 09/25/2013 AnhNvt Update
Table of Contents
1) GET EVENTS 3
REQUEST 3
RESPONSE 3
2) GET POSTS // UPDATE 4
REQUEST 4
RESPONSE 4
3) GET LIST ALBUM //NEW 5
REQUEST 5
RESPONSE 5
4) GET ALBUM CONTENT // UPDATE 6
REQUEST 6
RESPONSE 6
5) GET SURVEY //UPDATE 7
REQUEST 7
6) GET QUESTION OF A SURVEY //UPDATE 7
REQUEST 8
7) GET GALLERY OF EVENT / 8
CONVENTIONS 9
STATUS CODES <NO USE> 10
Methods
1) Get events
Lấy thông tin danh sách các sự kiện ,sắp xếp theo thứ tự từ mới đến cũ.
Request
Params Value
data {handle:”on_get_events”,”page”:1}
Response
Status Response
200 An array of events.
[
{ "EventID":99,
"EventTitle":"",
"EventDescription":"",
"EventContent":"webview Link",
"Location":"",
"TimeStart":"10/09/2013 10:20:20",
"TimeEnd":"10/09/2013 10:20:20",
"TimeCreate":"10/09/2013 10:20:20",
“Image”:http://www.img.com,
“ImageThumb”:” img url”,
“UserCreate”:””,
"Avatar": "https://abc.xyz.com”, //Thieu
"FullName": "Nguyễn Duy Đức" //Thieu
“FeedID”:”123”, //Thieu
“Views”:12,
“Status”:1,
}, {},{},..
]
404 {"error":"no event found"}
2) Get Posts // Update
Lấy thông tin danh sách các bài viết
Request
Params Values
Data {handle:”on_get_posts”,”page”:1}
Response
Status Response
200 An array posts of category
[
{ "PostID":1,
“PostTitle”:””,
"PostDescription":"http://abc.com/image.jpg",
“PostContent”:”infor of content”,
“DateCreate”:”20/10/2013”,
“Image”:” http://abc.com/image.jpg”,
“ImageThumb”:” http://abc.com/image.jpg”,
“Views”:123
“Status”:1,
“FeedID”:”12312312”,
“UserCreate”:12, //Thieu
"Avatar": "https://abc.xyz.com”,
"FullName": "Nguyễn Duy Đức"
}, {},{},..
]
404 {"error”: “no gallery not found"}
3) Get list album //New
Lấy thong tin hình ảnh, video của media
Request
Params Values
Data {handle:”on_get_medias”}
Response
Status Response
200 1 arrays of medias.
[
{ "MediaID":1,
"MediaTitlte":””,
"MediaDescription”:”Description of the album”,
“Views”:15,
“Images”:””,
“ImagesThumb”:” http://abc.com/image.jpg”,
“Status”:1,
“AccountCreate”:””,
"Avatar": "https://abc.xyz.com”,
"FullName": "Nguyễn Duy Đức",
“DateCreate”:”20/10/2013”
}, {},{},..
]
404 {"error”: “No album found"}
4) Get album content // Update
Lấy tất cả hình ảnh, video của 1 album
Request
Params Values
Data {handle:" on_get_mediadetail”, "MediaID":123}
Response
Status Response
200 2 arrays of images and videos.
[
{ "MediaDetailID":1,
"MediaDetailTitle":””,
"MediaLink":123,
“MediaID”:12,
"MediaType”:1, //1:Ạnh,2:Video
"DateCreate”:””,
“Status”:1,
“FeedID”:”12312312”, //New
“AccountCreate”:123,
"Avatar": "https://abc.xyz.com”, //New
"FullName": "Nguyễn Duy Đức", //New
}, {},{},..
]
404 {"error”: “No media found"}
5) Get survey //OK
Lấy thông tin danh sách các cuộc thi của một sự kiện nào đó
Request
Params Values
data {handle:”on_get_survey”,”EventID”:1}
Status Response
200 Array surveys òf a event
[{
"SurveyID":1,
"SurveyTitle":"cuoc thi tim hieu ve HCM",
"SurveyDescription":"cuoc thi tim hieu ve HCM",
“Image”:1,
“ImageThumb”:” http://abc.com/image.jpg”
“Joins”:111,
“Status”:1
},{},{},…
]
404 {"error”: “No survet found"}
6) Get question of a survey //Update
Lấy thông tin danh sách các câu hỏi của 1 cuộc thi nào đó
Request
Params Values
data {handle:”on_get_question”,”SurveyID”:1}
Status Response
200 Array questions of a survey
[{
"QuestionID":1,
"QuestionTitle":"Cau hoi 1",
"QuestionType":1,
"SurveyID":1,
“Status”:1,
“Answers”: //New
[{
“AnswerID”:1,
“AnswersTitle”:””,
},{},{},…
]
},{},{},…
]
404 {"error”: “No question found"}
7) Get gallery of Event
Lấy tất cả hình ảnh, video của 1 su kien
Request
Params Values
Data {handle:" on_get_eventmedia”, "EventID":123}
Response
Status Response
200 2 arrays of images and videos.
[
{ "MediaID":1,
"MediaTitle":””,
"MediaType":123,
“EventID”:12,
"MediaDescription”:1, //1:Ạnh,2:Video
"DateCreate”:””,
“Views”:1,
“Image”:””,
"ImageThumb": "https://abc.xyz.com”,
"FullName": "Nguyễn Duy Đức",
“Status”:1
}, {},{},..
]
404 {"error”: “No media found"}
Glossary
Conventions
● Client - Client application.
● Status - HTTP status code of response.
● All the possible responses are listed under ‘Responses’ for each method. Only one of them
is issued per request server.
● All response is in JSON format.
● All request parameters are mandatory unless explicitly marked as [optional]
● The type of values accepted for a request parameter are shown the values column like this
[10|<any number>] .The | symbol means OR. If the parameter is [optional], the
default value is shown in blue bold text, as 10 are written in [10|<any number>].
Status Codes <No Use>
All status codes are standard HTTP status codes. The below ones are used in this API.
2XX - Success of some kind
4XX - Error occurred in client’s part
5XX - Error occurred in server’s part
Status Code Description
200 OK
201 Created
202 Accepted (Request accepted, and queued for execution)
400 Bad request
401 Authentication failure
403 Forbidden
404 Resource not found
405 Method Not Allowed
409 Conflict
412 Precondition Failed
413 Request Entity Too Large
500 Internal Server Error
501 Not Implemented
503 Service Unavailable

Más contenido relacionado

La actualidad más candente

Solr's Search Relevancy (Understand Solr's query debug)
Solr's Search Relevancy (Understand Solr's query debug)Solr's Search Relevancy (Understand Solr's query debug)
Solr's Search Relevancy (Understand Solr's query debug)Wongnai
 
第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 Datasource第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 DatasourceKaz Watanabe
 
Spring Data for KSDG 2012/09
Spring Data for KSDG 2012/09Spring Data for KSDG 2012/09
Spring Data for KSDG 2012/09永昇 陳
 
FlashAir Android App Development
FlashAir Android App DevelopmentFlashAir Android App Development
FlashAir Android App DevelopmentFlashAir Developers
 
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자Donghyeok Kang
 
6 things about perl 6
6 things about perl 66 things about perl 6
6 things about perl 6brian d foy
 
Gta v savegame
Gta v savegameGta v savegame
Gta v savegamehozayfa999
 
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at StripeBuilding Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at StripeStripe
 
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at StripeBuilding Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at StripeMongoDB
 
Database Design Patterns
Database Design PatternsDatabase Design Patterns
Database Design PatternsHugo Hamon
 
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 VersionDebugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 VersionIan Barber
 
WordPressでIoTをはじめよう
WordPressでIoTをはじめようWordPressでIoTをはじめよう
WordPressでIoTをはじめようYuriko IKEDA
 
Silex meets SOAP & REST
Silex meets SOAP & RESTSilex meets SOAP & REST
Silex meets SOAP & RESTHugo Hamon
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistenceHugo Hamon
 
Teaching Your Machine To Find Fraudsters
Teaching Your Machine To Find FraudstersTeaching Your Machine To Find Fraudsters
Teaching Your Machine To Find FraudstersIan Barber
 

La actualidad más candente (20)

php plus mysql
php plus mysqlphp plus mysql
php plus mysql
 
H base programming
H base programmingH base programming
H base programming
 
Solr's Search Relevancy (Understand Solr's query debug)
Solr's Search Relevancy (Understand Solr's query debug)Solr's Search Relevancy (Understand Solr's query debug)
Solr's Search Relevancy (Understand Solr's query debug)
 
第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 Datasource第49回Php勉強会@関東 Datasource
第49回Php勉強会@関東 Datasource
 
What's new in Liferay Mobile SDK 2.0 for Android
What's new in Liferay Mobile SDK 2.0 for AndroidWhat's new in Liferay Mobile SDK 2.0 for Android
What's new in Liferay Mobile SDK 2.0 for Android
 
Spring Data for KSDG 2012/09
Spring Data for KSDG 2012/09Spring Data for KSDG 2012/09
Spring Data for KSDG 2012/09
 
FlashAir Android App Development
FlashAir Android App DevelopmentFlashAir Android App Development
FlashAir Android App Development
 
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
[제1회 루씬 한글분석기 기술세미나] solr로 나만의 검색엔진을 만들어보자
 
6 things about perl 6
6 things about perl 66 things about perl 6
6 things about perl 6
 
Gta v savegame
Gta v savegameGta v savegame
Gta v savegame
 
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at StripeBuilding Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
 
Php
PhpPhp
Php
 
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at StripeBuilding Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
 
Database Design Patterns
Database Design PatternsDatabase Design Patterns
Database Design Patterns
 
Debugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 VersionDebugging: Rules And Tools - PHPTek 11 Version
Debugging: Rules And Tools - PHPTek 11 Version
 
WordPressでIoTをはじめよう
WordPressでIoTをはじめようWordPressでIoTをはじめよう
WordPressでIoTをはじめよう
 
ES6
ES6ES6
ES6
 
Silex meets SOAP & REST
Silex meets SOAP & RESTSilex meets SOAP & REST
Silex meets SOAP & REST
 
The History of PHPersistence
The History of PHPersistenceThe History of PHPersistence
The History of PHPersistence
 
Teaching Your Machine To Find Fraudsters
Teaching Your Machine To Find FraudstersTeaching Your Machine To Find Fraudsters
Teaching Your Machine To Find Fraudsters
 

Destacado

Get the most out of Analytics – 5 Power Ups for Your Ecommerce Site
Get the most out of Analytics – 5 Power Ups for Your Ecommerce SiteGet the most out of Analytics – 5 Power Ups for Your Ecommerce Site
Get the most out of Analytics – 5 Power Ups for Your Ecommerce SiteSamuel James
 
Intercomunicadores para Moto Bluetooth
 Intercomunicadores para Moto Bluetooth Intercomunicadores para Moto Bluetooth
Intercomunicadores para Moto BluetoothOfertas Multimedia
 
ما هو المكتب العلمى
ما هو المكتب العلمىما هو المكتب العلمى
ما هو المكتب العلمىamin mohamed
 
EasyMove Pedales Multifuncionales
EasyMove Pedales MultifuncionalesEasyMove Pedales Multifuncionales
EasyMove Pedales Multifuncionalestanitflores
 
3 comuniquemos la pastoral de la salud
3 comuniquemos la pastoral de la salud3 comuniquemos la pastoral de la salud
3 comuniquemos la pastoral de la saludPastoral Salud
 
Pro_Tools_Tier_1 cert
Pro_Tools_Tier_1 certPro_Tools_Tier_1 cert
Pro_Tools_Tier_1 certTravis Felker
 
Pro_Tools_Tier_4_Post
Pro_Tools_Tier_4_PostPro_Tools_Tier_4_Post
Pro_Tools_Tier_4_PostMartin Gray
 
Camára grabador DVR con detección de movimiento manual
Camára grabador DVR con detección de movimiento manualCamára grabador DVR con detección de movimiento manual
Camára grabador DVR con detección de movimiento manualOfertas Multimedia
 

Destacado (13)

Get the most out of Analytics – 5 Power Ups for Your Ecommerce Site
Get the most out of Analytics – 5 Power Ups for Your Ecommerce SiteGet the most out of Analytics – 5 Power Ups for Your Ecommerce Site
Get the most out of Analytics – 5 Power Ups for Your Ecommerce Site
 
Intercomunicadores para Moto Bluetooth
 Intercomunicadores para Moto Bluetooth Intercomunicadores para Moto Bluetooth
Intercomunicadores para Moto Bluetooth
 
ما هو المكتب العلمى
ما هو المكتب العلمىما هو المكتب العلمى
ما هو المكتب العلمى
 
EasyMove Pedales Multifuncionales
EasyMove Pedales MultifuncionalesEasyMove Pedales Multifuncionales
EasyMove Pedales Multifuncionales
 
SGResume ver 3.4.001 R
SGResume ver 3.4.001 RSGResume ver 3.4.001 R
SGResume ver 3.4.001 R
 
Valores para educar
Valores para educarValores para educar
Valores para educar
 
Etika bisnis
Etika bisnisEtika bisnis
Etika bisnis
 
materia de informatica
materia de informaticamateria de informatica
materia de informatica
 
Persuasive Essay
Persuasive EssayPersuasive Essay
Persuasive Essay
 
3 comuniquemos la pastoral de la salud
3 comuniquemos la pastoral de la salud3 comuniquemos la pastoral de la salud
3 comuniquemos la pastoral de la salud
 
Pro_Tools_Tier_1 cert
Pro_Tools_Tier_1 certPro_Tools_Tier_1 cert
Pro_Tools_Tier_1 cert
 
Pro_Tools_Tier_4_Post
Pro_Tools_Tier_4_PostPro_Tools_Tier_4_Post
Pro_Tools_Tier_4_Post
 
Camára grabador DVR con detección de movimiento manual
Camára grabador DVR con detección de movimiento manualCamára grabador DVR con detección de movimiento manual
Camára grabador DVR con detección de movimiento manual
 

Similar a Api docs v3.0

Api docs v4.0
Api docs v4.0Api docs v4.0
Api docs v4.0Anh Tuan
 
Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman
 
Introducing Amplify
Introducing AmplifyIntroducing Amplify
Introducing AmplifyappendTo
 
Taking Advantage of the SharePoint 2013 REST API
Taking Advantage of the SharePoint 2013 REST APITaking Advantage of the SharePoint 2013 REST API
Taking Advantage of the SharePoint 2013 REST APIEric Shupps
 
Persisting Data on SQLite using Room
Persisting Data on SQLite using RoomPersisting Data on SQLite using Room
Persisting Data on SQLite using RoomNelson Glauber Leal
 
Finch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with FinagleFinch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with FinagleVladimir Kostyukov
 
Developing application for Windows Phone 7 in TDD
Developing application for Windows Phone 7 in TDDDeveloping application for Windows Phone 7 in TDD
Developing application for Windows Phone 7 in TDDMichele Capra
 
Test driven development with behat and silex
Test driven development with behat and silexTest driven development with behat and silex
Test driven development with behat and silexDionyshs Tsoumas
 
Leveraging parse.com for Speedy Development
Leveraging parse.com for Speedy DevelopmentLeveraging parse.com for Speedy Development
Leveraging parse.com for Speedy DevelopmentAndrew Kozlik
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on AndroidSven Haiges
 
REST meets Semantic Web
REST meets Semantic WebREST meets Semantic Web
REST meets Semantic WebSteve Speicher
 
Dpilot Source Code With ScreenShots
Dpilot Source Code With ScreenShots Dpilot Source Code With ScreenShots
Dpilot Source Code With ScreenShots DeepAnshu Sharma
 
Dpilot - Source Code with Snapshots
Dpilot - Source Code with SnapshotsDpilot - Source Code with Snapshots
Dpilot - Source Code with SnapshotsKritika Phulli
 
Source Code for Dpilot
Source Code for Dpilot Source Code for Dpilot
Source Code for Dpilot Nidhi Chauhan
 
Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)Stephen Chin
 
Understanding backbonejs
Understanding backbonejsUnderstanding backbonejs
Understanding backbonejsNick Lee
 

Similar a Api docs v3.0 (20)

Api docs v4.0
Api docs v4.0Api docs v4.0
Api docs v4.0
 
Jersey
JerseyJersey
Jersey
 
Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)Postman Collection Format v2.0 (pre-draft)
Postman Collection Format v2.0 (pre-draft)
 
Introducing Amplify
Introducing AmplifyIntroducing Amplify
Introducing Amplify
 
Taking Advantage of the SharePoint 2013 REST API
Taking Advantage of the SharePoint 2013 REST APITaking Advantage of the SharePoint 2013 REST API
Taking Advantage of the SharePoint 2013 REST API
 
Persisting Data on SQLite using Room
Persisting Data on SQLite using RoomPersisting Data on SQLite using Room
Persisting Data on SQLite using Room
 
URLProtocol
URLProtocolURLProtocol
URLProtocol
 
Finch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with FinagleFinch.io - Purely Functional REST API with Finagle
Finch.io - Purely Functional REST API with Finagle
 
Developing application for Windows Phone 7 in TDD
Developing application for Windows Phone 7 in TDDDeveloping application for Windows Phone 7 in TDD
Developing application for Windows Phone 7 in TDD
 
Test driven development with behat and silex
Test driven development with behat and silexTest driven development with behat and silex
Test driven development with behat and silex
 
behat
behatbehat
behat
 
Leveraging parse.com for Speedy Development
Leveraging parse.com for Speedy DevelopmentLeveraging parse.com for Speedy Development
Leveraging parse.com for Speedy Development
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on Android
 
REST meets Semantic Web
REST meets Semantic WebREST meets Semantic Web
REST meets Semantic Web
 
Dpilot Source Code With ScreenShots
Dpilot Source Code With ScreenShots Dpilot Source Code With ScreenShots
Dpilot Source Code With ScreenShots
 
Dpilot - Source Code with Snapshots
Dpilot - Source Code with SnapshotsDpilot - Source Code with Snapshots
Dpilot - Source Code with Snapshots
 
Source Code for Dpilot
Source Code for Dpilot Source Code for Dpilot
Source Code for Dpilot
 
Jason parsing
Jason parsingJason parsing
Jason parsing
 
Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)
 
Understanding backbonejs
Understanding backbonejsUnderstanding backbonejs
Understanding backbonejs
 

Último

Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftshyamraj55
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsUXDXConf
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKUXDXConf
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfFIDO Alliance
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoUXDXConf
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 

Último (20)

Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 

Api docs v3.0

  • 1. API Specification Doc ( YUHN API v0.3) Version Date Author Description 0.1 09/10/2013 ThuongNV Initial 0.3 09/25/2013 AnhNvt Update
  • 2. Table of Contents 1) GET EVENTS 3 REQUEST 3 RESPONSE 3 2) GET POSTS // UPDATE 4 REQUEST 4 RESPONSE 4 3) GET LIST ALBUM //NEW 5 REQUEST 5 RESPONSE 5 4) GET ALBUM CONTENT // UPDATE 6 REQUEST 6 RESPONSE 6 5) GET SURVEY //UPDATE 7 REQUEST 7 6) GET QUESTION OF A SURVEY //UPDATE 7 REQUEST 8 7) GET GALLERY OF EVENT / 8 CONVENTIONS 9 STATUS CODES <NO USE> 10
  • 3. Methods 1) Get events Lấy thông tin danh sách các sự kiện ,sắp xếp theo thứ tự từ mới đến cũ. Request Params Value data {handle:”on_get_events”,”page”:1} Response Status Response 200 An array of events.
  • 4. [ { "EventID":99, "EventTitle":"", "EventDescription":"", "EventContent":"webview Link", "Location":"", "TimeStart":"10/09/2013 10:20:20", "TimeEnd":"10/09/2013 10:20:20", "TimeCreate":"10/09/2013 10:20:20", “Image”:http://www.img.com, “ImageThumb”:” img url”, “UserCreate”:””, "Avatar": "https://abc.xyz.com”, //Thieu "FullName": "Nguyễn Duy Đức" //Thieu “FeedID”:”123”, //Thieu “Views”:12, “Status”:1, }, {},{},.. ] 404 {"error":"no event found"} 2) Get Posts // Update Lấy thông tin danh sách các bài viết Request Params Values Data {handle:”on_get_posts”,”page”:1} Response Status Response 200 An array posts of category [ { "PostID":1, “PostTitle”:””,
  • 5. "PostDescription":"http://abc.com/image.jpg", “PostContent”:”infor of content”, “DateCreate”:”20/10/2013”, “Image”:” http://abc.com/image.jpg”, “ImageThumb”:” http://abc.com/image.jpg”, “Views”:123 “Status”:1, “FeedID”:”12312312”, “UserCreate”:12, //Thieu "Avatar": "https://abc.xyz.com”, "FullName": "Nguyễn Duy Đức" }, {},{},.. ] 404 {"error”: “no gallery not found"} 3) Get list album //New Lấy thong tin hình ảnh, video của media Request Params Values Data {handle:”on_get_medias”} Response Status Response 200 1 arrays of medias. [ { "MediaID":1, "MediaTitlte":””, "MediaDescription”:”Description of the album”, “Views”:15, “Images”:””, “ImagesThumb”:” http://abc.com/image.jpg”, “Status”:1, “AccountCreate”:””,
  • 6. "Avatar": "https://abc.xyz.com”, "FullName": "Nguyễn Duy Đức", “DateCreate”:”20/10/2013” }, {},{},.. ] 404 {"error”: “No album found"} 4) Get album content // Update Lấy tất cả hình ảnh, video của 1 album Request Params Values Data {handle:" on_get_mediadetail”, "MediaID":123} Response Status Response 200 2 arrays of images and videos. [ { "MediaDetailID":1, "MediaDetailTitle":””, "MediaLink":123, “MediaID”:12, "MediaType”:1, //1:Ạnh,2:Video "DateCreate”:””, “Status”:1, “FeedID”:”12312312”, //New “AccountCreate”:123, "Avatar": "https://abc.xyz.com”, //New "FullName": "Nguyễn Duy Đức", //New }, {},{},.. ]
  • 7. 404 {"error”: “No media found"} 5) Get survey //OK Lấy thông tin danh sách các cuộc thi của một sự kiện nào đó Request Params Values data {handle:”on_get_survey”,”EventID”:1} Status Response 200 Array surveys òf a event [{ "SurveyID":1, "SurveyTitle":"cuoc thi tim hieu ve HCM", "SurveyDescription":"cuoc thi tim hieu ve HCM", “Image”:1, “ImageThumb”:” http://abc.com/image.jpg” “Joins”:111, “Status”:1 },{},{},… ] 404 {"error”: “No survet found"} 6) Get question of a survey //Update Lấy thông tin danh sách các câu hỏi của 1 cuộc thi nào đó
  • 8. Request Params Values data {handle:”on_get_question”,”SurveyID”:1} Status Response 200 Array questions of a survey [{ "QuestionID":1, "QuestionTitle":"Cau hoi 1", "QuestionType":1, "SurveyID":1, “Status”:1, “Answers”: //New [{ “AnswerID”:1, “AnswersTitle”:””, },{},{},… ] },{},{},… ] 404 {"error”: “No question found"} 7) Get gallery of Event Lấy tất cả hình ảnh, video của 1 su kien Request
  • 9. Params Values Data {handle:" on_get_eventmedia”, "EventID":123} Response Status Response 200 2 arrays of images and videos. [ { "MediaID":1, "MediaTitle":””, "MediaType":123, “EventID”:12, "MediaDescription”:1, //1:Ạnh,2:Video "DateCreate”:””, “Views”:1, “Image”:””, "ImageThumb": "https://abc.xyz.com”, "FullName": "Nguyễn Duy Đức", “Status”:1 }, {},{},.. ] 404 {"error”: “No media found"} Glossary Conventions ● Client - Client application. ● Status - HTTP status code of response. ● All the possible responses are listed under ‘Responses’ for each method. Only one of them is issued per request server. ● All response is in JSON format. ● All request parameters are mandatory unless explicitly marked as [optional]
  • 10. ● The type of values accepted for a request parameter are shown the values column like this [10|<any number>] .The | symbol means OR. If the parameter is [optional], the default value is shown in blue bold text, as 10 are written in [10|<any number>]. Status Codes <No Use> All status codes are standard HTTP status codes. The below ones are used in this API. 2XX - Success of some kind 4XX - Error occurred in client’s part 5XX - Error occurred in server’s part Status Code Description 200 OK 201 Created 202 Accepted (Request accepted, and queued for execution) 400 Bad request 401 Authentication failure 403 Forbidden 404 Resource not found 405 Method Not Allowed 409 Conflict 412 Precondition Failed 413 Request Entity Too Large 500 Internal Server Error 501 Not Implemented 503 Service Unavailable