SlideShare a Scribd company logo
1 of 1
Download to read offline
Method   Parmenter          Resource (from root)                Return value      Description
GET                         date/                               String            Generates un unique String for the challenge login exchange.

GET                         users/                              List<User>        List all users
PUT      user               users/                              String            Add a user (register).
                                                                                  The return value is the token.
                                                                                  User parameter is the representation of the user that want to
                                                                                  be added.
POST     TU_challenge       users/login                         HTTP 200 OK       Login a user
         email,                                                                   TU_challenge is a HTTP header for the challenge login
         hash(password)                                                           exchange.

GET                         categories                          List<Category>    List all the categories
GET                         categories/{$d                      Category          Info. of one Category ($id)
GET                         categories/{id }/charts             List<BaseChart>   List all charts that exist in the same category

GET      sort: {date,       charts?sort=$sort&concrete=$1,2,3   List<BaseChart>   List all the charts.
         popular,                                                                 With the parameter concrete, the client indicates which
         name}                                                                    chart_ids wants.
         concrete
GET      sort: {date,       charts/new                          List<BaseChart>   List all the new charts.
         popular,                                                                 New charts are considered the ones uploaded in the last 5
         name}                                                                    days.
GET                         charts/null                         Double            Null value defined for Y points without value.
GET      x,    y,   year,   charts/$id?x=$x&y=$y                Chart             Info. of one chart ($id).
         month,    week,    &year=$year&month=$month                              x  width resolution of the mobile.
         day, type          &week=$week&day=$day&type=$type                       y  height resolution of the mobile.
                                                                                  type  algorithm selected (average or dispersion)
GET                         charts/$id/series                   List<Serie>       List all the lines related with this chart
GET                         charts/$id/comment                  List<Comment>     List all the comments related with a chart
GET                         charts/$id/comment/$id              Comment           Info. about the comment (id_comment)
PUT      comment            charts/$id/comment                  Comment           Add a comment to the chart ($id).
                                                                                  comment parameter is the representation of the comment that
                                                                                  want to be added.
DELETE                      charts/$id/comment/$id              HTTP 200 OK       Delete the comment $comment_id from the chart $chart_id

More Related Content

What's hot (19)

Sql commands
Sql commandsSql commands
Sql commands
 
Lab 4
Lab 4Lab 4
Lab 4
 
Exploring collections with example
Exploring collections with exampleExploring collections with example
Exploring collections with example
 
Js types
Js typesJs types
Js types
 
Sql tutorial
Sql tutorialSql tutorial
Sql tutorial
 
comboboxentry - glade - ruby - guide
comboboxentry - glade - ruby - guidecomboboxentry - glade - ruby - guide
comboboxentry - glade - ruby - guide
 
Breaking down data silos with the open data protocol
Breaking down data silos with the open data protocolBreaking down data silos with the open data protocol
Breaking down data silos with the open data protocol
 
Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)Database Systems - SQL - DDL Statements (Chapter 3/2)
Database Systems - SQL - DDL Statements (Chapter 3/2)
 
Commands of DML in SQL
Commands of DML in SQLCommands of DML in SQL
Commands of DML in SQL
 
Nested Queries Lecture
Nested Queries LectureNested Queries Lecture
Nested Queries Lecture
 
DML Commands
DML CommandsDML Commands
DML Commands
 
Why async and functional programming in PHP7 suck and how to get overr it?
Why async and functional programming in PHP7 suck and how to get overr it?Why async and functional programming in PHP7 suck and how to get overr it?
Why async and functional programming in PHP7 suck and how to get overr it?
 
Db1 lecture4
Db1 lecture4Db1 lecture4
Db1 lecture4
 
Django 1.4-cheatsheet
Django 1.4-cheatsheetDjango 1.4-cheatsheet
Django 1.4-cheatsheet
 
Oracle: DDL
Oracle: DDLOracle: DDL
Oracle: DDL
 
Sql dml & tcl 2
Sql   dml & tcl 2Sql   dml & tcl 2
Sql dml & tcl 2
 
Spufi
SpufiSpufi
Spufi
 
$$$ +$$+$$ _+_$+$$_$+$$$_+$$_$
$$$ +$$+$$ _+_$+$$_$+$$$_+$$_$$$$ +$$+$$ _+_$+$$_$+$$$_+$$_$
$$$ +$$+$$ _+_$+$$_$+$$$_+$$_$
 
Assignment#04
Assignment#04Assignment#04
Assignment#04
 

Viewers also liked

TU-Charts Project - First Spring
TU-Charts Project - First SpringTU-Charts Project - First Spring
TU-Charts Project - First SpringDidac Montero
 
Graphical display of statistical data on Android
Graphical display of statistical data on AndroidGraphical display of statistical data on Android
Graphical display of statistical data on AndroidDidac Montero
 
Indoor Positioning System
Indoor Positioning SystemIndoor Positioning System
Indoor Positioning SystemDidac Montero
 
Precision (Indoor) Real Time Location Systems
Precision (Indoor) Real Time Location SystemsPrecision (Indoor) Real Time Location Systems
Precision (Indoor) Real Time Location SystemsPeter Batty
 
Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...
Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...
Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...AnalyzeFuture
 
Indoor Positioning Systems
Indoor Positioning SystemsIndoor Positioning Systems
Indoor Positioning SystemsProjectENhANCE
 
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...Localz
 

Viewers also liked (8)

TU-Charts Project - First Spring
TU-Charts Project - First SpringTU-Charts Project - First Spring
TU-Charts Project - First Spring
 
Graphical display of statistical data on Android
Graphical display of statistical data on AndroidGraphical display of statistical data on Android
Graphical display of statistical data on Android
 
Indoor Positioning System
Indoor Positioning SystemIndoor Positioning System
Indoor Positioning System
 
Precision (Indoor) Real Time Location Systems
Precision (Indoor) Real Time Location SystemsPrecision (Indoor) Real Time Location Systems
Precision (Indoor) Real Time Location Systems
 
Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...
Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...
Real Time Locating Systems (RTLS, RFID, Bluetooth, Wi-Fi, UWB, GPS, IR, NFER,...
 
Indoor positioning system
Indoor positioning systemIndoor positioning system
Indoor positioning system
 
Indoor Positioning Systems
Indoor Positioning SystemsIndoor Positioning Systems
Indoor Positioning Systems
 
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
Whats the best micro-location technology? We compare: ibeacon, ble, nfc, qr a...
 

Similar to REST API

Алексей Кутумов, Вектор с нуля
Алексей Кутумов, Вектор с нуляАлексей Кутумов, Вектор с нуля
Алексей Кутумов, Вектор с нуляSergey Platonov
 
DBIx-DataModel v2.0 in detail
DBIx-DataModel v2.0 in detail DBIx-DataModel v2.0 in detail
DBIx-DataModel v2.0 in detail Laurent Dami
 
Hibernate Mapping
Hibernate MappingHibernate Mapping
Hibernate MappingInnovationM
 
Hibernate Mapping
Hibernate MappingHibernate Mapping
Hibernate MappingInnovationM
 
I am getting these errors for getcountgroupbymedia Cannot infer type a (1).docx
I am getting these errors for getcountgroupbymedia Cannot infer type a (1).docxI am getting these errors for getcountgroupbymedia Cannot infer type a (1).docx
I am getting these errors for getcountgroupbymedia Cannot infer type a (1).docxPaulntmMilleri
 
Introduction à Dart
Introduction à DartIntroduction à Dart
Introduction à DartSOAT
 
Generic Types in Java (for ArtClub @ArtBrains Software)
Generic Types in Java (for ArtClub @ArtBrains Software)Generic Types in Java (for ArtClub @ArtBrains Software)
Generic Types in Java (for ArtClub @ArtBrains Software)Andrew Petryk
 
Android App Development - 11 Lists, grids, adapters, dialogs and toasts
Android App Development - 11 Lists, grids, adapters, dialogs and toastsAndroid App Development - 11 Lists, grids, adapters, dialogs and toasts
Android App Development - 11 Lists, grids, adapters, dialogs and toastsDiego Grancini
 
Sql server ___________session 3(sql 2008)
Sql server  ___________session 3(sql 2008)Sql server  ___________session 3(sql 2008)
Sql server ___________session 3(sql 2008)Ehtisham Ali
 
Micro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicateMicro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicateKiev ALT.NET
 
Rails vs Web2py
Rails vs Web2pyRails vs Web2py
Rails vs Web2pyjonromero
 
Stata cheat sheet: data transformation
Stata  cheat sheet: data transformationStata  cheat sheet: data transformation
Stata cheat sheet: data transformationTim Essam
 
BP208 Fabulous Feats with @Formula
BP208 Fabulous Feats with @FormulaBP208 Fabulous Feats with @Formula
BP208 Fabulous Feats with @FormulaKathy Brown
 
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdfSummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdfARORACOCKERY2111
 
Intermediate SQL with Ecto - LoneStar ElixirConf 2018
Intermediate SQL with Ecto - LoneStar ElixirConf 2018Intermediate SQL with Ecto - LoneStar ElixirConf 2018
Intermediate SQL with Ecto - LoneStar ElixirConf 2018wreckoning
 

Similar to REST API (20)

Алексей Кутумов, Вектор с нуля
Алексей Кутумов, Вектор с нуляАлексей Кутумов, Вектор с нуля
Алексей Кутумов, Вектор с нуля
 
Getters_And_Setters.pptx
Getters_And_Setters.pptxGetters_And_Setters.pptx
Getters_And_Setters.pptx
 
DBIx-DataModel v2.0 in detail
DBIx-DataModel v2.0 in detail DBIx-DataModel v2.0 in detail
DBIx-DataModel v2.0 in detail
 
Hibernate Mapping
Hibernate MappingHibernate Mapping
Hibernate Mapping
 
Hibernate Mapping
Hibernate MappingHibernate Mapping
Hibernate Mapping
 
I am getting these errors for getcountgroupbymedia Cannot infer type a (1).docx
I am getting these errors for getcountgroupbymedia Cannot infer type a (1).docxI am getting these errors for getcountgroupbymedia Cannot infer type a (1).docx
I am getting these errors for getcountgroupbymedia Cannot infer type a (1).docx
 
Introduction à Dart
Introduction à DartIntroduction à Dart
Introduction à Dart
 
Generic Types in Java (for ArtClub @ArtBrains Software)
Generic Types in Java (for ArtClub @ArtBrains Software)Generic Types in Java (for ArtClub @ArtBrains Software)
Generic Types in Java (for ArtClub @ArtBrains Software)
 
Sql functions
Sql functionsSql functions
Sql functions
 
Android App Development - 11 Lists, grids, adapters, dialogs and toasts
Android App Development - 11 Lists, grids, adapters, dialogs and toastsAndroid App Development - 11 Lists, grids, adapters, dialogs and toasts
Android App Development - 11 Lists, grids, adapters, dialogs and toasts
 
Sql server ___________session 3(sql 2008)
Sql server  ___________session 3(sql 2008)Sql server  ___________session 3(sql 2008)
Sql server ___________session 3(sql 2008)
 
Java Persistence API
Java Persistence APIJava Persistence API
Java Persistence API
 
Module03
Module03Module03
Module03
 
Csharp4 generics
Csharp4 genericsCsharp4 generics
Csharp4 generics
 
Micro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicateMicro-ORM Introduction - Don't overcomplicate
Micro-ORM Introduction - Don't overcomplicate
 
Rails vs Web2py
Rails vs Web2pyRails vs Web2py
Rails vs Web2py
 
Stata cheat sheet: data transformation
Stata  cheat sheet: data transformationStata  cheat sheet: data transformation
Stata cheat sheet: data transformation
 
BP208 Fabulous Feats with @Formula
BP208 Fabulous Feats with @FormulaBP208 Fabulous Feats with @Formula
BP208 Fabulous Feats with @Formula
 
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdfSummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
 
Intermediate SQL with Ecto - LoneStar ElixirConf 2018
Intermediate SQL with Ecto - LoneStar ElixirConf 2018Intermediate SQL with Ecto - LoneStar ElixirConf 2018
Intermediate SQL with Ecto - LoneStar ElixirConf 2018
 

REST API

  • 1. Method Parmenter Resource (from root) Return value Description GET date/ String Generates un unique String for the challenge login exchange. GET users/ List<User> List all users PUT user users/ String Add a user (register). The return value is the token. User parameter is the representation of the user that want to be added. POST TU_challenge users/login HTTP 200 OK Login a user email, TU_challenge is a HTTP header for the challenge login hash(password) exchange. GET categories List<Category> List all the categories GET categories/{$d Category Info. of one Category ($id) GET categories/{id }/charts List<BaseChart> List all charts that exist in the same category GET sort: {date, charts?sort=$sort&concrete=$1,2,3 List<BaseChart> List all the charts. popular, With the parameter concrete, the client indicates which name} chart_ids wants. concrete GET sort: {date, charts/new List<BaseChart> List all the new charts. popular, New charts are considered the ones uploaded in the last 5 name} days. GET charts/null Double Null value defined for Y points without value. GET x, y, year, charts/$id?x=$x&y=$y Chart Info. of one chart ($id). month, week, &year=$year&month=$month x  width resolution of the mobile. day, type &week=$week&day=$day&type=$type y  height resolution of the mobile. type  algorithm selected (average or dispersion) GET charts/$id/series List<Serie> List all the lines related with this chart GET charts/$id/comment List<Comment> List all the comments related with a chart GET charts/$id/comment/$id Comment Info. about the comment (id_comment) PUT comment charts/$id/comment Comment Add a comment to the chart ($id). comment parameter is the representation of the comment that want to be added. DELETE charts/$id/comment/$id HTTP 200 OK Delete the comment $comment_id from the chart $chart_id