SlideShare uma empresa Scribd logo
1 de 10
API Specification Doc
( YUHN API v0.4)
Version

Date

Author

Description

0.1

09/10/2013

ThuongNV

Initial

0.3

09/25/2013

AnhNvt

Update

0.4

09/30/2013

ThuongNV

Update
Table of Contents
1) GET EVENTS //OK
REQUEST
RESPONSE
2) GET POSTS //OK
REQUEST
RESPONSE
3) GET LIST ALBUM //OK
REQUEST
RESPONSE
4) GET ALBUM CONTENT //OK
REQUEST
RESPONSE
5) GET SURVEY //OK
REQUEST
6) GET QUESTION OF A SURVEY //UPDATE
REQUEST
7) GET GALLERY OF EVENT //OK
REQUEST
RESPONSE
CONVENTIONS
STATUS CODES <NO USE>

3
3
3
4
4
4
4
4
5
5
5
6
6
6
7
7
8
8
8
9
9
Methods
1) Get events //OK
Lấythông tin danhsáchcácsựkiện ,sắpxếptheothứtựtừmớiđếncũ, phântrang (20 bảnghi/1trang )

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”:”imgurl”,
“UserCreate”:””,
"Avatar": "https://abc.xyz.com”,
"FullName": "NguyễnDuyĐức"
“FeedID”:”123”,
//Thieu
“Views”:12,
“Status”:1,
}, {},{},..
]

404

{"error":"no event found"}
2) Get Posts//OK
Lấythông tin danhsáchcácbàiviết

Request
Params

Values

Data

{handle:"on_get_posts","page":1}

Response
Status

Response

200

An array posts of posts
[
{ "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,
"Avatar": "https://abc.xyz.com”,
"FullName": "NguyễnDuyĐức"
}, {},{},..
]

404

{"error”: “no gallery not found"}

3) Get list album //OK
Lấy thong tin danhsachhinhanhcủa gallery

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,
“Image”:””,
“ImageThumb”:”http://abc.com/image.jpg”,
“Status”:1,
“AccountCreate”:””,
"Avatar": "https://abc.xyz.com”,
"FullName": "NguyễnDuyĐức",
“DateCreate”:”20/10/2013”,
“FeedID”:””
}, {},{},..
]

404

{"error”: “Noalbum found"}

4) Get album content //Update
Lấytấtcả thong tin hìnhảnh, video của 1 album

Request
Params

Values

Data

{handle:"on_get_mediadetail", "MediaID":1}
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”,
“AccountCreate”:123,
"Avatar": "https://abc.xyz.com”,
"FullName": "NguyễnDuyĐức",
“Views”:1212//News
}, {},{},..
]

404

{"error”: “No media found"}

5) Get survey//OK
Lấythông tin danhsáchcáccuộcthicủamộtsựkiệnnàođó

Request
Params

Values

data

{handle:"on_get_survey","EventID":1}

Status

Response

200

Arraysurveys òf a event
[{
"SurveyID":1,
"SurveyTitle":"cuocthitimhieuveHCM",
"SurveyDescription":"cuocthitimhieuve 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ấythông tin danhsáchcáccâuhỏicủa 1 cuộcthinà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,
“lisanswer”:
[{
“AnswerID”:1,
“AnswersTitle”:””,
},{},{},…
]
},{},{},…
]
404

{"error”: “No question found"}

7) Get gallery of Event//OK
Lấytấtcảhìnhảnh, video của 1 sukien

Request
Params

Values

Data

{handle:"on_get_eventmedia","EventID":1}

Response
Status

Response

200

An array of eventmedia
[
{ "MediaID":1,
"MediaTitle":””,
"MediaType":123,
“EventID”:12,
"MediaDescription”:1, //1:Ạnh,2:Video
"DateCreate”:””,
“Views”:1,
“Image”:””,
"ImageThumb": "https://abc.xyz.com”,
"FullName": "NguyễnDuyĐức",
“FeedID”:””,
"Avatar":"https://cdn2.iconfinder.com/data/icons/piconsessentials/57/user-256.png",
“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 10are 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

Mais conteúdo relacionado

Mais procurados

MongoDB Performance Tuning
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance TuningPuneet Behl
 
MongoDB World 2016: Deciphering .explain() Output
MongoDB World 2016: Deciphering .explain() OutputMongoDB World 2016: Deciphering .explain() Output
MongoDB World 2016: Deciphering .explain() OutputMongoDB
 
Introduction to devsecdotio
Introduction to devsecdotioIntroduction to devsecdotio
Introduction to devsecdotioBram Vogelaar
 
Java Web Programming [9/9] : Web Application Security
Java Web Programming [9/9] : Web Application SecurityJava Web Programming [9/9] : Web Application Security
Java Web Programming [9/9] : Web Application SecurityIMC Institute
 
Top 10 F5 iRules to migrate to a modern load balancing platform
Top 10 F5 iRules to migrate to a modern load balancing platformTop 10 F5 iRules to migrate to a modern load balancing platform
Top 10 F5 iRules to migrate to a modern load balancing platformAvi Networks
 
Building Your First Data Science Applicatino in MongoDB
Building Your First Data Science Applicatino in MongoDBBuilding Your First Data Science Applicatino in MongoDB
Building Your First Data Science Applicatino in MongoDBMongoDB
 
Windows Phone 8 Sensors
Windows Phone 8 SensorsWindows Phone 8 Sensors
Windows Phone 8 SensorsDavid Isbitski
 
A Implementer's Story - Integrating Maavis with the GPII
A Implementer's Story - Integrating Maavis with the GPIIA Implementer's Story - Integrating Maavis with the GPII
A Implementer's Story - Integrating Maavis with the GPIIDissemination Cloud4all
 
It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?MongoDB
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on AndroidSven Haiges
 
Search Evolution - Von Lucene zu Solr und ElasticSearch
Search Evolution - Von Lucene zu Solr und ElasticSearchSearch Evolution - Von Lucene zu Solr und ElasticSearch
Search Evolution - Von Lucene zu Solr und ElasticSearchFlorian Hopf
 
Webinar: MongoDB Persistence with Java and Morphia
Webinar: MongoDB Persistence with Java and MorphiaWebinar: MongoDB Persistence with Java and Morphia
Webinar: MongoDB Persistence with Java and MorphiaMongoDB
 
node.js Module Development
node.js Module Developmentnode.js Module Development
node.js Module DevelopmentJay Harris
 
Morphia: Simplifying Persistence for Java and MongoDB
Morphia:  Simplifying Persistence for Java and MongoDBMorphia:  Simplifying Persistence for Java and MongoDB
Morphia: Simplifying Persistence for Java and MongoDBJeff Yemin
 
JavaScript Proxy (ES6)
JavaScript Proxy (ES6)JavaScript Proxy (ES6)
JavaScript Proxy (ES6)Aries Cs
 
E2 appspresso hands on lab
E2 appspresso hands on labE2 appspresso hands on lab
E2 appspresso hands on labNAVER D2
 
The Testing Games: Mocking, yay!
The Testing Games: Mocking, yay!The Testing Games: Mocking, yay!
The Testing Games: Mocking, yay!Donny Wals
 
The Big Picture and How to Get Started
The Big Picture and How to Get StartedThe Big Picture and How to Get Started
The Big Picture and How to Get Startedguest1af57e
 

Mais procurados (20)

MongoDB Performance Tuning
MongoDB Performance TuningMongoDB Performance Tuning
MongoDB Performance Tuning
 
MongoDB World 2016: Deciphering .explain() Output
MongoDB World 2016: Deciphering .explain() OutputMongoDB World 2016: Deciphering .explain() Output
MongoDB World 2016: Deciphering .explain() Output
 
Introduction to devsecdotio
Introduction to devsecdotioIntroduction to devsecdotio
Introduction to devsecdotio
 
Java Web Programming [9/9] : Web Application Security
Java Web Programming [9/9] : Web Application SecurityJava Web Programming [9/9] : Web Application Security
Java Web Programming [9/9] : Web Application Security
 
Top 10 F5 iRules to migrate to a modern load balancing platform
Top 10 F5 iRules to migrate to a modern load balancing platformTop 10 F5 iRules to migrate to a modern load balancing platform
Top 10 F5 iRules to migrate to a modern load balancing platform
 
Building Your First Data Science Applicatino in MongoDB
Building Your First Data Science Applicatino in MongoDBBuilding Your First Data Science Applicatino in MongoDB
Building Your First Data Science Applicatino in MongoDB
 
Windows Phone 8 Sensors
Windows Phone 8 SensorsWindows Phone 8 Sensors
Windows Phone 8 Sensors
 
A Implementer's Story - Integrating Maavis with the GPII
A Implementer's Story - Integrating Maavis with the GPIIA Implementer's Story - Integrating Maavis with the GPII
A Implementer's Story - Integrating Maavis with the GPII
 
Html5 For Jjugccc2009fall
Html5 For Jjugccc2009fallHtml5 For Jjugccc2009fall
Html5 For Jjugccc2009fall
 
How to integrate with GPII
How to integrate with GPIIHow to integrate with GPII
How to integrate with GPII
 
It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?It's 10pm: Do You Know Where Your Writes Are?
It's 10pm: Do You Know Where Your Writes Are?
 
CouchDB on Android
CouchDB on AndroidCouchDB on Android
CouchDB on Android
 
Search Evolution - Von Lucene zu Solr und ElasticSearch
Search Evolution - Von Lucene zu Solr und ElasticSearchSearch Evolution - Von Lucene zu Solr und ElasticSearch
Search Evolution - Von Lucene zu Solr und ElasticSearch
 
Webinar: MongoDB Persistence with Java and Morphia
Webinar: MongoDB Persistence with Java and MorphiaWebinar: MongoDB Persistence with Java and Morphia
Webinar: MongoDB Persistence with Java and Morphia
 
node.js Module Development
node.js Module Developmentnode.js Module Development
node.js Module Development
 
Morphia: Simplifying Persistence for Java and MongoDB
Morphia:  Simplifying Persistence for Java and MongoDBMorphia:  Simplifying Persistence for Java and MongoDB
Morphia: Simplifying Persistence for Java and MongoDB
 
JavaScript Proxy (ES6)
JavaScript Proxy (ES6)JavaScript Proxy (ES6)
JavaScript Proxy (ES6)
 
E2 appspresso hands on lab
E2 appspresso hands on labE2 appspresso hands on lab
E2 appspresso hands on lab
 
The Testing Games: Mocking, yay!
The Testing Games: Mocking, yay!The Testing Games: Mocking, yay!
The Testing Games: Mocking, yay!
 
The Big Picture and How to Get Started
The Big Picture and How to Get StartedThe Big Picture and How to Get Started
The Big Picture and How to Get Started
 

Destaque

Biblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-Sonsonate
Biblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-SonsonateBiblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-Sonsonate
Biblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-SonsonateCE Lot San Antonio Sonsonate
 
Autoridad de los padres pubertad
Autoridad de los padres pubertadAutoridad de los padres pubertad
Autoridad de los padres pubertadmarimolinari
 
Elementos de la comunicación prof. elva casas m.
Elementos de la comunicación prof. elva casas m.Elementos de la comunicación prof. elva casas m.
Elementos de la comunicación prof. elva casas m.kata-lina
 
Lego Mindstorms
Lego MindstormsLego Mindstorms
Lego Mindstormsbrayanmi
 
Expocisioninformatica 131010095618-phpapp01
Expocisioninformatica 131010095618-phpapp01Expocisioninformatica 131010095618-phpapp01
Expocisioninformatica 131010095618-phpapp01JuliethMarimon
 
Comercios minoristas. El marketing es posible (muy posible!)
Comercios minoristas. El marketing es posible (muy posible!)Comercios minoristas. El marketing es posible (muy posible!)
Comercios minoristas. El marketing es posible (muy posible!)Pedro Antonio López
 

Destaque (8)

Biblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-Sonsonate
Biblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-SonsonateBiblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-Sonsonate
Biblioteca Escolar Activa: C.E. Crìo. Lot. San Antonio-Sonsonate
 
Autoridad de los padres pubertad
Autoridad de los padres pubertadAutoridad de los padres pubertad
Autoridad de los padres pubertad
 
Elementos de la comunicación prof. elva casas m.
Elementos de la comunicación prof. elva casas m.Elementos de la comunicación prof. elva casas m.
Elementos de la comunicación prof. elva casas m.
 
Lego Mindstorms
Lego MindstormsLego Mindstorms
Lego Mindstorms
 
Papercraft collection
Papercraft collectionPapercraft collection
Papercraft collection
 
Expocisioninformatica 131010095618-phpapp01
Expocisioninformatica 131010095618-phpapp01Expocisioninformatica 131010095618-phpapp01
Expocisioninformatica 131010095618-phpapp01
 
Comprensión lectora con cuento
Comprensión lectora con cuentoComprensión lectora con cuento
Comprensión lectora con cuento
 
Comercios minoristas. El marketing es posible (muy posible!)
Comercios minoristas. El marketing es posible (muy posible!)Comercios minoristas. El marketing es posible (muy posible!)
Comercios minoristas. El marketing es posible (muy posible!)
 

Semelhante a Api docs v4.0

Context Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsContext Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsFernando Lopez Aguilar
 
adaptTo() 2014 - Integrating Open Source Search with CQ/AEM
adaptTo() 2014 - Integrating Open Source Search with CQ/AEMadaptTo() 2014 - Integrating Open Source Search with CQ/AEM
adaptTo() 2014 - Integrating Open Source Search with CQ/AEMtherealgaston
 
e10sとアプリ間通信
e10sとアプリ間通信e10sとアプリ間通信
e10sとアプリ間通信Makoto Kato
 
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...MongoDB
 
Nk API - examples
Nk API - examplesNk API - examples
Nk API - examplesnasza-klasa
 
Api Statistics- The Scalable Way
Api Statistics- The Scalable WayApi Statistics- The Scalable Way
Api Statistics- The Scalable WayWSO2
 
HTML5 on Mobile
HTML5 on MobileHTML5 on Mobile
HTML5 on MobileAdam Lu
 
Orion Context Broker
Orion Context Broker Orion Context Broker
Orion Context Broker TIDChile
 
REST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practiceREST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practicehamnis
 
Web Standards Support in WebKit
Web Standards Support in WebKitWeb Standards Support in WebKit
Web Standards Support in WebKitJoone Hur
 
Open analytics | Cameron Sim
Open analytics | Cameron SimOpen analytics | Cameron Sim
Open analytics | Cameron SimOpen Analytics
 
WSO2Con USA 2017: Building a Secure Enterprise
WSO2Con USA 2017: Building a Secure EnterpriseWSO2Con USA 2017: Building a Secure Enterprise
WSO2Con USA 2017: Building a Secure EnterpriseWSO2
 
Michael Poremba, Director, Data Architecture at Practice Fusion
Michael Poremba, Director, Data Architecture at Practice FusionMichael Poremba, Director, Data Architecture at Practice Fusion
Michael Poremba, Director, Data Architecture at Practice FusionMongoDB
 
Sherlock: an anomaly detection service on top of Druid
Sherlock: an anomaly detection service on top of Druid Sherlock: an anomaly detection service on top of Druid
Sherlock: an anomaly detection service on top of Druid DataWorks Summit
 
Building a Microgateway in Ballerina_KubeCon 2108
Building a Microgateway in Ballerina_KubeCon 2108Building a Microgateway in Ballerina_KubeCon 2108
Building a Microgateway in Ballerina_KubeCon 2108Ballerina
 
JLeRN Paradata Challenge at Dev8D 2012
JLeRN Paradata Challenge at Dev8D 2012JLeRN Paradata Challenge at Dev8D 2012
JLeRN Paradata Challenge at Dev8D 2012Bharti Gupta
 
The unconventional devices for the video streaming in Android
The unconventional devices for the video streaming in AndroidThe unconventional devices for the video streaming in Android
The unconventional devices for the video streaming in AndroidAlessandro Martellucci
 
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"Andreas Falk
 

Semelhante a Api docs v4.0 (20)

Context Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsContext Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basics
 
adaptTo() 2014 - Integrating Open Source Search with CQ/AEM
adaptTo() 2014 - Integrating Open Source Search with CQ/AEMadaptTo() 2014 - Integrating Open Source Search with CQ/AEM
adaptTo() 2014 - Integrating Open Source Search with CQ/AEM
 
e10sとアプリ間通信
e10sとアプリ間通信e10sとアプリ間通信
e10sとアプリ間通信
 
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...
Practice Fusion & MongoDB: Transitioning a 4 TB Audit Log from SQL Server to ...
 
AWS CodeDeploy
AWS CodeDeployAWS CodeDeploy
AWS CodeDeploy
 
Nk API - examples
Nk API - examplesNk API - examples
Nk API - examples
 
Api Statistics- The Scalable Way
Api Statistics- The Scalable WayApi Statistics- The Scalable Way
Api Statistics- The Scalable Way
 
HTML5 on Mobile
HTML5 on MobileHTML5 on Mobile
HTML5 on Mobile
 
Orion Context Broker
Orion Context Broker Orion Context Broker
Orion Context Broker
 
REST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practiceREST teori og praksis; REST in theory and practice
REST teori og praksis; REST in theory and practice
 
Web Standards Support in WebKit
Web Standards Support in WebKitWeb Standards Support in WebKit
Web Standards Support in WebKit
 
Open analytics | Cameron Sim
Open analytics | Cameron SimOpen analytics | Cameron Sim
Open analytics | Cameron Sim
 
WSO2Con USA 2017: Building a Secure Enterprise
WSO2Con USA 2017: Building a Secure EnterpriseWSO2Con USA 2017: Building a Secure Enterprise
WSO2Con USA 2017: Building a Secure Enterprise
 
Michael Poremba, Director, Data Architecture at Practice Fusion
Michael Poremba, Director, Data Architecture at Practice FusionMichael Poremba, Director, Data Architecture at Practice Fusion
Michael Poremba, Director, Data Architecture at Practice Fusion
 
Sherlock: an anomaly detection service on top of Druid
Sherlock: an anomaly detection service on top of Druid Sherlock: an anomaly detection service on top of Druid
Sherlock: an anomaly detection service on top of Druid
 
URLProtocol
URLProtocolURLProtocol
URLProtocol
 
Building a Microgateway in Ballerina_KubeCon 2108
Building a Microgateway in Ballerina_KubeCon 2108Building a Microgateway in Ballerina_KubeCon 2108
Building a Microgateway in Ballerina_KubeCon 2108
 
JLeRN Paradata Challenge at Dev8D 2012
JLeRN Paradata Challenge at Dev8D 2012JLeRN Paradata Challenge at Dev8D 2012
JLeRN Paradata Challenge at Dev8D 2012
 
The unconventional devices for the video streaming in Android
The unconventional devices for the video streaming in AndroidThe unconventional devices for the video streaming in Android
The unconventional devices for the video streaming in Android
 
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
AllTheTalks.Online 2020: "Basics of OAuth 2.0 and OpenID Connect"
 

Último

Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...ScyllaDB
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?Paolo Missier
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...FIDO Alliance
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
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
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!Memoori
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxFIDO Alliance
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch TuesdayIvanti
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
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
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideStefan Dietze
 
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
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxFIDO Alliance
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jNeo4j
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 

Último (20)

Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
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
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
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
 
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The InsideCollecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
Collecting & Temporal Analysis of Behavioral Web Data - Tales From The Inside
 
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
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 

Api docs v4.0

  • 1. API Specification Doc ( YUHN API v0.4) Version Date Author Description 0.1 09/10/2013 ThuongNV Initial 0.3 09/25/2013 AnhNvt Update 0.4 09/30/2013 ThuongNV Update
  • 2. Table of Contents 1) GET EVENTS //OK REQUEST RESPONSE 2) GET POSTS //OK REQUEST RESPONSE 3) GET LIST ALBUM //OK REQUEST RESPONSE 4) GET ALBUM CONTENT //OK REQUEST RESPONSE 5) GET SURVEY //OK REQUEST 6) GET QUESTION OF A SURVEY //UPDATE REQUEST 7) GET GALLERY OF EVENT //OK REQUEST RESPONSE CONVENTIONS STATUS CODES <NO USE> 3 3 3 4 4 4 4 4 5 5 5 6 6 6 7 7 8 8 8 9 9
  • 3. Methods 1) Get events //OK Lấythông tin danhsáchcácsựkiện ,sắpxếptheothứtựtừmớiđếncũ, phântrang (20 bảnghi/1trang ) 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”:”imgurl”, “UserCreate”:””, "Avatar": "https://abc.xyz.com”, "FullName": "NguyễnDuyĐức" “FeedID”:”123”, //Thieu “Views”:12, “Status”:1, }, {},{},.. ] 404 {"error":"no event found"}
  • 4. 2) Get Posts//OK Lấythông tin danhsáchcácbàiviết Request Params Values Data {handle:"on_get_posts","page":1} Response Status Response 200 An array posts of posts [ { "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, "Avatar": "https://abc.xyz.com”, "FullName": "NguyễnDuyĐức" }, {},{},.. ] 404 {"error”: “no gallery not found"} 3) Get list album //OK Lấy thong tin danhsachhinhanhcủa gallery Request
  • 5. 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, “Image”:””, “ImageThumb”:”http://abc.com/image.jpg”, “Status”:1, “AccountCreate”:””, "Avatar": "https://abc.xyz.com”, "FullName": "NguyễnDuyĐức", “DateCreate”:”20/10/2013”, “FeedID”:”” }, {},{},.. ] 404 {"error”: “Noalbum found"} 4) Get album content //Update Lấytấtcả thong tin hìnhảnh, video của 1 album Request Params Values Data {handle:"on_get_mediadetail", "MediaID":1}
  • 6. 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”, “AccountCreate”:123, "Avatar": "https://abc.xyz.com”, "FullName": "NguyễnDuyĐức", “Views”:1212//News }, {},{},.. ] 404 {"error”: “No media found"} 5) Get survey//OK Lấythông tin danhsáchcáccuộcthicủamộtsựkiệnnàođó Request Params Values data {handle:"on_get_survey","EventID":1} Status Response 200 Arraysurveys òf a event
  • 7. [{ "SurveyID":1, "SurveyTitle":"cuocthitimhieuveHCM", "SurveyDescription":"cuocthitimhieuve 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ấythông tin danhsáchcáccâuhỏicủa 1 cuộcthinà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, “lisanswer”: [{ “AnswerID”:1,
  • 8. “AnswersTitle”:””, },{},{},… ] },{},{},… ] 404 {"error”: “No question found"} 7) Get gallery of Event//OK Lấytấtcảhìnhảnh, video của 1 sukien Request Params Values Data {handle:"on_get_eventmedia","EventID":1} Response Status Response 200 An array of eventmedia [ { "MediaID":1, "MediaTitle":””, "MediaType":123, “EventID”:12, "MediaDescription”:1, //1:Ạnh,2:Video "DateCreate”:””, “Views”:1, “Image”:””, "ImageThumb": "https://abc.xyz.com”, "FullName": "NguyễnDuyĐức", “FeedID”:””,
  • 9. "Avatar":"https://cdn2.iconfinder.com/data/icons/piconsessentials/57/user-256.png", “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 10are 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
  • 10. 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