SlideShare une entreprise Scribd logo
1  sur  136
Web API Basics




     Learn More @ http://www.learnnowonline.com
        Copyright © by Application Developers Training Company
Objectives




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Objectives
• See how REST and web services can be
  used to access data




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Objectives
• See how REST and web services can be
  used to access data
• Build your first Web API service




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Objectives
• See how REST and web services can be
  used to access data
• Build your first Web API service
• Use Web API naming conventions for
  routing




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Objectives
• See how REST and web services can be
  used to access data
• Build your first Web API service
• Use Web API naming conventions for
  routing
• Modify your service for basic CRUD
  operations


         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




     Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   What Is ASP.NET Web API?
•   Create Your First Web API Service
•   Web API Routing
•   Create a Web API Service for CRUD
    Operations




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing
• Create a Web API Service for CRUD
  Operations
• Filtering Data with Parameters



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
What Is ASP.NET Web API?




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
What Is ASP.NET Web API?
• Next iteration of WCF REST




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
What Is ASP.NET Web API?
• Next iteration of WCF REST
• Incorporated into ASP.NET MVC 4




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
What Is ASP.NET Web API?
• Next iteration of WCF REST
• Incorporated into ASP.NET MVC 4
• Framework for developing REST
  oriented services




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
REST




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
REST
• Uses HTTP protocols




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
REST
• Uses HTTP protocols
• URLs and methods




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
REST
• Uses HTTP protocols
• URLs and methods
• Accessible from a wide variety of
  clients




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
REST
• Uses HTTP protocols
• URLs and methods
• Accessible from a wide variety of
  clients
• HTTP methods:




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
REST
• Uses HTTP protocols
• URLs and methods
• Accessible from a wide variety of
  clients
• HTTP methods:
  • GET




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
REST
• Uses HTTP protocols
• URLs and methods
• Accessible from a wide variety of
  clients
• HTTP methods:
  • GET
  • POST



           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
REST
• Uses HTTP protocols
• URLs and methods
• Accessible from a wide variety of
  clients
• HTTP methods:
  • GET
  • POST
  • PUT


           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
GET




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
GET
• Primarily just a URL making a simple
  request for a resource, e.g., a web page




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
GET
• Primarily just a URL making a simple
  request for a resource, e.g., a web page
• Response is sent back




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
GET
• Primarily just a URL making a simple
  request for a resource, e.g., a web page
• Response is sent back
• Additional information is put in a query
  string




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
GET
• Primarily just a URL making a simple
  request for a resource, e.g., a web page
• Response is sent back
• Additional information is put in a query
  string
• Generally used to Select data




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
GET
• Primarily just a URL making a simple
  request for a resource, e.g., a web page
• Response is sent back
• Additional information is put in a query
  string
• Generally used to Select data
• Selecting all:




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
GET
• Primarily just a URL making a simple
  request for a resource, e.g., a web page
• Response is sent back
• Additional information is put in a query
  string
• Generally used to Select data
• Selecting all:
http://www.root.com/products/



          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
GET
• Primarily just a URL making a simple
  request for a resource, e.g., a web page
• Response is sent back
• Additional information is put in a query
  string
• Generally used to Select data
• Selecting all:
http://www.root.com/products/
• Selecting one:

          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
POST




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
POST
• Sends collection of name-value pairs
  along with the request




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
POST
• Sends collection of name-value pairs
  along with the request
• Commonly used with forms on the web




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
POST
• Sends collection of name-value pairs
  along with the request
• Commonly used with forms on the web
• Used to add new resources (Insert)




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
POST
• Sends collection of name-value pairs
  along with the request
• Commonly used with forms on the web
• Used to add new resources (Insert)
• Should return an appropriate HTTP
  success code



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
PUT




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
PUT
• Used to store a resource at the
  supplied URL




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
PUT
• Used to store a resource at the
  supplied URL
• Generally used for Editing existing
  resources




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
DELETE




     Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
DELETE
• Used for deleting resources




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
DELETE
• Used for deleting resources
• Should return an appropriate HTTP
  code




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




     Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   What Is ASP.NET Web API?
•   Create Your First Web API Service
•   Web API Routing
•   Create a Web API Service for CRUD
    Operations




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing
• Create a Web API Service for CRUD
  Operations
• Filtering Data with Parameters



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Create Your First Web API




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Create Your First Web API
 • Create a repository




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Create Your First Web API
 • Create a repository
 • Create an API controller to use the
   repository




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Create Your First Web API
 • Create a repository
 • Create an API controller to use the
   repository
 • Try it out in a browser




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Agenda




     Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   What Is ASP.NET Web API?
•   Create Your First Web API Service
•   Web API Routing
•   Create a Web API Service for CRUD
    Operations




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing
• Create a Web API Service for CRUD
  Operations
• Filtering Data with Parameters



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Web API Routing




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Web API Routing
• Interpretation of URLs by the server to
  decide what code should handle the
  request




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Web API Routing
• Interpretation of URLs by the server to
  decide what code should handle the
  request
• Operates similarly to ASP.NET MVC
  routing




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Web API Routing
• Interpretation of URLs by the server to
  decide what code should handle the
  request
• Operates similarly to ASP.NET MVC
  routing
• Actions determined by HTTP method
  used


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Default Mapping




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Default Mapping
• Configured in Global.asax




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Default Mapping
• Configured in Global.asax
• Uses “api” as URL segment




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Default Mapping
• Configured in Global.asax
• Uses “api” as URL segment
• Adds word “Controller” to the
  controller part of URL




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Default Mapping
• Configured in Global.asax
• Uses “api” as URL segment
• Adds word “Controller” to the
  controller part of URL
• Looks for action that begins with the
  HTTP method



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Default Mapping
• Configured in Global.asax
• Uses “api” as URL segment
• Adds word “Controller” to the
  controller part of URL
• Looks for action that begins with the
  HTTP method
• Additional URL parameters are mapped
  as action parameters

         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Alternative Routing




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Alternative Routing
• Rarely necessary for most Web API
  services




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Alternative Routing
• Rarely necessary for most Web API
  services
• Several options to change URL routing




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HTTP Method Attributes




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
HTTP Method Attributes
• Very similar to ASP.NET MVC




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HTTP Method Attributes
• Very similar to ASP.NET MVC
• Use attributes to bind HTTP methods
  to specific actions




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HTTP Method Attributes
• Very similar to ASP.NET MVC
• Use attributes to bind HTTP methods
  to specific actions
[HttpGet]




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HTTP Method Attributes
• Very similar to ASP.NET MVC
• Use attributes to bind HTTP methods
  to specific actions
[HttpGet]
[HttpPost]




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HTTP Method Attributes
• Very similar to ASP.NET MVC
• Use attributes to bind HTTP methods
  to specific actions
[HttpGet]
[HttpPost]
[HttpPut]



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
HTTP Method Attributes
• Very similar to ASP.NET MVC
• Use attributes to bind HTTP methods
  to specific actions
[HttpGet]
[HttpPost]
[HttpPut]
[HttpDelete]

         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
AcceptVerbs Attribute




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
AcceptVerbs Attribute
• Also used on actions




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
AcceptVerbs Attribute
• Also used on actions
• Specify HTTP methods as strings




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
AcceptVerbs Attribute
• Also used on actions
• Specify HTTP methods as strings
• Especially useful for atypical HTTP
  methods




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Action Names in the URL




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Action Names in the URL
• Makes URLs route identically to
  ASP.NET MVC




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Action Names in the URL
• Makes URLs route identically to
  ASP.NET MVC
• Must change routeTemplate in
  Global.asax




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Action Names in the URL
• Makes URLs route identically to
  ASP.NET MVC
• Must change routeTemplate in
  Global.asax
• Must also add HTTP method attributes
  to actions



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Removing Actions from




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Removing Actions from
• Used when a resource’s URL would
  trigger an action, but this is not
  desired




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Removing Actions from
• Used when a resource’s URL would
  trigger an action, but this is not
  desired
• Use the NonAction attribute on the
  method




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda




     Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   What Is ASP.NET Web API?
•   Create Your First Web API Service
•   Web API Routing
•   Create a Web API Service for CRUD
    Operations




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing
• Create a Web API Service for CRUD
  Operations
• Filtering Data with Parameters



        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Create a Web API Service for
CRUD Operations




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Create a Web API Service for
CRUD Operations

• Create – POST




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Create a Web API Service for
CRUD Operations

• Create – POST
• Read – GET




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Create a Web API Service for
CRUD Operations

• Create – POST
• Read – GET
• Update – PUT




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Create a Web API Service for
CRUD Operations

•   Create – POST
•   Read – GET
•   Update – PUT
•   Delete – DELETE




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Create a Web API Service for
CRUD Operations

•   Create – POST
•   Read – GET
•   Update – PUT
•   Delete – DELETE
•   Basic functionality that most services
    will have


           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Create a Web API Service for
CRUD Operations

• Create – POST
• Read – GET
• Update – PUT
• Delete – DELETE
• Basic functionality that most services
  will have
• Try it out!
        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Agenda




     Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Agenda
•   What Is ASP.NET Web API?
•   Create Your First Web API Service
•   Web API Routing
•   Create a Web API Service for CRUD
    Operations




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Agenda
• What Is ASP.NET Web API?
• Create Your First Web API Service
• Web API Routing
• Create a Web API Service for CRUD
  Operations
• Filtering Data with Parameters



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Filtering Data with




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Filtering Data with
• Uses the OData protocol




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Filtering Data with
• Uses the OData protocol
• Special query strings can be used to:




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Filtering Data with
• Uses the OData protocol
• Special query strings can be used to:
  • Filter




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Filtering Data with
• Uses the OData protocol
• Special query strings can be used to:
  • Filter
  • Page




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Filtering Data with
• Uses the OData protocol
• Special query strings can be used to:
  • Filter
  • Page
  • Sort




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Filtering Data with
• Uses the OData protocol
• Special query strings can be used to:
  • Filter
  • Page
  • Sort
  • And more…




             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Filter




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Filter
• Condition that evaluates to true or
  false




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Filter
• Condition that evaluates to true or
  false
• Uses OData-specific keywords




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Filter
• Condition that evaluates to true or
  false
• Uses OData-specific keywords
• Must be sendable in a URL




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Order By




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Order By
• Specifies the sort order of returned
  data




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Order By
• Specifies the sort order of returned
  data
• Can sort by multiple properties




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Order By
• Specifies the sort order of returned
  data
• Can sort by multiple properties
• Can specify ASC and DESC sorting




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Paging




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Paging
• Done by using $skip and $top




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Paging
• Done by using $skip and $top
• $skip passes over a number of records




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Paging
• Done by using $skip and $top
• $skip passes over a number of records
• $skip should be set to: page number *
  page size




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Paging
• Done by using $skip and $top
• $skip passes over a number of records
• $skip should be set to: page number *
  page size
• $top selects a certain number to return




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Paging
• Done by using $skip and $top
• $skip passes over a number of records
• $skip should be set to: page number *
  page size
• $top selects a certain number to return
• $top should be set to page size



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
There’s More




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
There’s More
• There are other OData query strings




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
There’s More
• There are other OData query strings
• Other query keywords for $filter




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
There’s More
• There are other OData query strings
• Other query keywords for $filter
• www.odata.org




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Learn More!




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company

Contenu connexe

Tendances

Tendances (20)

What is an API
What is an APIWhat is an API
What is an API
 
Rest API
Rest APIRest API
Rest API
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
 
Web api
Web apiWeb api
Web api
 
Rest api standards and best practices
Rest api standards and best practicesRest api standards and best practices
Rest api standards and best practices
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
 
Understanding REST
Understanding RESTUnderstanding REST
Understanding REST
 
Overview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB APIOverview of Rest Service and ASP.NET WEB API
Overview of Rest Service and ASP.NET WEB API
 
introduction about REST API
introduction about REST APIintroduction about REST API
introduction about REST API
 
What is an API?
What is an API?What is an API?
What is an API?
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
 
API for Beginners
API for BeginnersAPI for Beginners
API for Beginners
 
RESTful API - Best Practices
RESTful API - Best PracticesRESTful API - Best Practices
RESTful API - Best Practices
 
ASP.NET Web API
ASP.NET Web APIASP.NET Web API
ASP.NET Web API
 
REST-API overview / concepts
REST-API overview / conceptsREST-API overview / concepts
REST-API overview / concepts
 
Api presentation
Api presentationApi presentation
Api presentation
 
API
APIAPI
API
 
API Basics
API BasicsAPI Basics
API Basics
 
Introduction to spring boot
Introduction to spring bootIntroduction to spring boot
Introduction to spring boot
 
What's an api
What's an apiWhat's an api
What's an api
 

En vedette

Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...
Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...
Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...WSO2
 
Multi Tenant API management with WSO2 API Manager
Multi Tenant API management with WSO2 API Manager Multi Tenant API management with WSO2 API Manager
Multi Tenant API management with WSO2 API Manager WSO2
 
Customizing the API Store & Publisher in WSO2 API Manager
Customizing the API Store & Publisher in WSO2 API ManagerCustomizing the API Store & Publisher in WSO2 API Manager
Customizing the API Store & Publisher in WSO2 API ManagerWSO2
 
Introduction to g reg 4.6.0
Introduction to g reg 4.6.0Introduction to g reg 4.6.0
Introduction to g reg 4.6.0WSO2
 
API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)3scale
 
API 101 - Understanding APIs
API 101 - Understanding APIsAPI 101 - Understanding APIs
API 101 - Understanding APIs3scale
 
An Introduction to the WSO2 API Manager
An Introduction to the WSO2 API Manager An Introduction to the WSO2 API Manager
An Introduction to the WSO2 API Manager WSO2
 
API designing with WSO2 API Manager
API designing with WSO2 API ManagerAPI designing with WSO2 API Manager
API designing with WSO2 API ManagerWSO2
 
WSO2 Identity Server 5.3.0 - Product Release Webinar
WSO2 Identity Server 5.3.0 - Product Release WebinarWSO2 Identity Server 5.3.0 - Product Release Webinar
WSO2 Identity Server 5.3.0 - Product Release WebinarWSO2
 
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...WSO2
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsIdo Flatow
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTC# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTDr. Awase Khirni Syed
 
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...WSO2
 
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...WSO2
 
WSO2Con USA 2017: DevOps Best Practices in 7 Steps
WSO2Con USA 2017: DevOps Best Practices in 7 StepsWSO2Con USA 2017: DevOps Best Practices in 7 Steps
WSO2Con USA 2017: DevOps Best Practices in 7 StepsWSO2
 
Best Practices for API Management
Best Practices for API Management Best Practices for API Management
Best Practices for API Management WSO2
 
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...WSO2
 
API Management architect presentation
API Management architect presentationAPI Management architect presentation
API Management architect presentationsflynn073
 

En vedette (18)

Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...
Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...
Enterprise Use Case Webinar – Development Governance with the WSO2 Governance...
 
Multi Tenant API management with WSO2 API Manager
Multi Tenant API management with WSO2 API Manager Multi Tenant API management with WSO2 API Manager
Multi Tenant API management with WSO2 API Manager
 
Customizing the API Store & Publisher in WSO2 API Manager
Customizing the API Store & Publisher in WSO2 API ManagerCustomizing the API Store & Publisher in WSO2 API Manager
Customizing the API Store & Publisher in WSO2 API Manager
 
Introduction to g reg 4.6.0
Introduction to g reg 4.6.0Introduction to g reg 4.6.0
Introduction to g reg 4.6.0
 
API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)API Management Workshop (at Startupbootcamp Berlin)
API Management Workshop (at Startupbootcamp Berlin)
 
API 101 - Understanding APIs
API 101 - Understanding APIsAPI 101 - Understanding APIs
API 101 - Understanding APIs
 
An Introduction to the WSO2 API Manager
An Introduction to the WSO2 API Manager An Introduction to the WSO2 API Manager
An Introduction to the WSO2 API Manager
 
API designing with WSO2 API Manager
API designing with WSO2 API ManagerAPI designing with WSO2 API Manager
API designing with WSO2 API Manager
 
WSO2 Identity Server 5.3.0 - Product Release Webinar
WSO2 Identity Server 5.3.0 - Product Release WebinarWSO2 Identity Server 5.3.0 - Product Release Webinar
WSO2 Identity Server 5.3.0 - Product Release Webinar
 
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTC# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENT
 
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...
 
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...
 
WSO2Con USA 2017: DevOps Best Practices in 7 Steps
WSO2Con USA 2017: DevOps Best Practices in 7 StepsWSO2Con USA 2017: DevOps Best Practices in 7 Steps
WSO2Con USA 2017: DevOps Best Practices in 7 Steps
 
Best Practices for API Management
Best Practices for API Management Best Practices for API Management
Best Practices for API Management
 
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...
 
API Management architect presentation
API Management architect presentationAPI Management architect presentation
API Management architect presentation
 

Similaire à Web API Basics

Managing site collections
Managing site collectionsManaging site collections
Managing site collectionsLearnNowOnline
 
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5LearnNowOnline
 
SharePoint Document Management
SharePoint Document ManagementSharePoint Document Management
SharePoint Document ManagementLearnNowOnline
 
Asynchronous Programming
Asynchronous ProgrammingAsynchronous Programming
Asynchronous ProgrammingLearnNowOnline
 
What's new in Silverlight 5
What's new in Silverlight 5What's new in Silverlight 5
What's new in Silverlight 5LearnNowOnline
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVCLearnNowOnline
 
SharePoint: Introduction to InfoPath
SharePoint: Introduction to InfoPathSharePoint: Introduction to InfoPath
SharePoint: Introduction to InfoPathLearnNowOnline
 
KnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVCKnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVCLearnNowOnline
 
Object-Oriented JavaScript
Object-Oriented JavaScriptObject-Oriented JavaScript
Object-Oriented JavaScriptLearnNowOnline
 
Using The .NET Framework
Using The .NET FrameworkUsing The .NET Framework
Using The .NET FrameworkLearnNowOnline
 
Bring a Web Page Alive with jQuery
Bring a Web Page Alive with jQueryBring a Web Page Alive with jQuery
Bring a Web Page Alive with jQueryLearnNowOnline
 
Создание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружениеСоздание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружениеSQALab
 
.NET Variables and Data Types
.NET Variables and Data Types.NET Variables and Data Types
.NET Variables and Data TypesLearnNowOnline
 
Working with Controllers and Actions in MVC
Working with Controllers and Actions in MVCWorking with Controllers and Actions in MVC
Working with Controllers and Actions in MVCLearnNowOnline
 
New in the Visual Studio 2012 IDE
New in the Visual Studio 2012 IDENew in the Visual Studio 2012 IDE
New in the Visual Studio 2012 IDELearnNowOnline
 

Similaire à Web API Basics (20)

Web API HTTP Pipeline
Web API HTTP PipelineWeb API HTTP Pipeline
Web API HTTP Pipeline
 
Managing site collections
Managing site collectionsManaging site collections
Managing site collections
 
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5Building Windows 8 Metro Style Applications Using JavaScript and HTML5
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
 
SharePoint Document Management
SharePoint Document ManagementSharePoint Document Management
SharePoint Document Management
 
Asynchronous Programming
Asynchronous ProgrammingAsynchronous Programming
Asynchronous Programming
 
What's new in Silverlight 5
What's new in Silverlight 5What's new in Silverlight 5
What's new in Silverlight 5
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
SharePoint: Introduction to InfoPath
SharePoint: Introduction to InfoPathSharePoint: Introduction to InfoPath
SharePoint: Introduction to InfoPath
 
KnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVCKnockOutJS with ASP.NET MVC
KnockOutJS with ASP.NET MVC
 
Object-Oriented JavaScript
Object-Oriented JavaScriptObject-Oriented JavaScript
Object-Oriented JavaScript
 
Using The .NET Framework
Using The .NET FrameworkUsing The .NET Framework
Using The .NET Framework
 
Bring a Web Page Alive with jQuery
Bring a Web Page Alive with jQueryBring a Web Page Alive with jQuery
Bring a Web Page Alive with jQuery
 
Introducing LINQ
Introducing LINQIntroducing LINQ
Introducing LINQ
 
WPF Binding
WPF BindingWPF Binding
WPF Binding
 
Создание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружениеСоздание API, которое полюбят разработчики. Глубокое погружение
Создание API, которое полюбят разработчики. Глубокое погружение
 
.NET Variables and Data Types
.NET Variables and Data Types.NET Variables and Data Types
.NET Variables and Data Types
 
SQL Server: Security
SQL Server: SecuritySQL Server: Security
SQL Server: Security
 
Working with Controllers and Actions in MVC
Working with Controllers and Actions in MVCWorking with Controllers and Actions in MVC
Working with Controllers and Actions in MVC
 
New in the Visual Studio 2012 IDE
New in the Visual Studio 2012 IDENew in the Visual Studio 2012 IDE
New in the Visual Studio 2012 IDE
 
The Entity Data Model
The Entity Data ModelThe Entity Data Model
The Entity Data Model
 

Plus de LearnNowOnline

Windows 8: Shapes and Geometries
Windows 8: Shapes and GeometriesWindows 8: Shapes and Geometries
Windows 8: Shapes and GeometriesLearnNowOnline
 
SQL: Permissions and Data Protection
SQL: Permissions and Data ProtectionSQL: Permissions and Data Protection
SQL: Permissions and Data ProtectionLearnNowOnline
 
Attributes, reflection, and dynamic programming
Attributes, reflection, and dynamic programmingAttributes, reflection, and dynamic programming
Attributes, reflection, and dynamic programmingLearnNowOnline
 
WPF: Working with Data
WPF: Working with DataWPF: Working with Data
WPF: Working with DataLearnNowOnline
 
Object oriented techniques
Object oriented techniquesObject oriented techniques
Object oriented techniquesLearnNowOnline
 
Sql 2012 development and programming
Sql 2012  development and programmingSql 2012  development and programming
Sql 2012 development and programmingLearnNowOnline
 
Expression Blend Motion & Interaction Design
Expression Blend Motion & Interaction DesignExpression Blend Motion & Interaction Design
Expression Blend Motion & Interaction DesignLearnNowOnline
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity FrameworkLearnNowOnline
 
Creating a User Interface
Creating a User InterfaceCreating a User Interface
Creating a User InterfaceLearnNowOnline
 
.Net branching and flow control
.Net branching and flow control.Net branching and flow control
.Net branching and flow controlLearnNowOnline
 

Plus de LearnNowOnline (12)

Windows 8: Shapes and Geometries
Windows 8: Shapes and GeometriesWindows 8: Shapes and Geometries
Windows 8: Shapes and Geometries
 
SQL: Permissions and Data Protection
SQL: Permissions and Data ProtectionSQL: Permissions and Data Protection
SQL: Permissions and Data Protection
 
Attributes, reflection, and dynamic programming
Attributes, reflection, and dynamic programmingAttributes, reflection, and dynamic programming
Attributes, reflection, and dynamic programming
 
WPF: Working with Data
WPF: Working with DataWPF: Working with Data
WPF: Working with Data
 
A tour of SQL Server
A tour of SQL ServerA tour of SQL Server
A tour of SQL Server
 
Generics
GenericsGenerics
Generics
 
Object oriented techniques
Object oriented techniquesObject oriented techniques
Object oriented techniques
 
Sql 2012 development and programming
Sql 2012  development and programmingSql 2012  development and programming
Sql 2012 development and programming
 
Expression Blend Motion & Interaction Design
Expression Blend Motion & Interaction DesignExpression Blend Motion & Interaction Design
Expression Blend Motion & Interaction Design
 
Introducing the Entity Framework
Introducing the Entity FrameworkIntroducing the Entity Framework
Introducing the Entity Framework
 
Creating a User Interface
Creating a User InterfaceCreating a User Interface
Creating a User Interface
 
.Net branching and flow control
.Net branching and flow control.Net branching and flow control
.Net branching and flow control
 

Dernier

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 

Dernier (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Web API Basics

  • 1. Web API Basics Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 2. Objectives Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 3. Objectives • See how REST and web services can be used to access data Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 4. Objectives • See how REST and web services can be used to access data • Build your first Web API service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 5. Objectives • See how REST and web services can be used to access data • Build your first Web API service • Use Web API naming conventions for routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 6. Objectives • See how REST and web services can be used to access data • Build your first Web API service • Use Web API naming conventions for routing • Modify your service for basic CRUD operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 7. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 8. Agenda • What Is ASP.NET Web API? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 9. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 10. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 11. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 12. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations • Filtering Data with Parameters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 13. What Is ASP.NET Web API? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 14. What Is ASP.NET Web API? • Next iteration of WCF REST Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 15. What Is ASP.NET Web API? • Next iteration of WCF REST • Incorporated into ASP.NET MVC 4 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 16. What Is ASP.NET Web API? • Next iteration of WCF REST • Incorporated into ASP.NET MVC 4 • Framework for developing REST oriented services Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 17. REST Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 18. REST • Uses HTTP protocols Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 19. REST • Uses HTTP protocols • URLs and methods Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 20. REST • Uses HTTP protocols • URLs and methods • Accessible from a wide variety of clients Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 21. REST • Uses HTTP protocols • URLs and methods • Accessible from a wide variety of clients • HTTP methods: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 22. REST • Uses HTTP protocols • URLs and methods • Accessible from a wide variety of clients • HTTP methods: • GET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 23. REST • Uses HTTP protocols • URLs and methods • Accessible from a wide variety of clients • HTTP methods: • GET • POST Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 24. REST • Uses HTTP protocols • URLs and methods • Accessible from a wide variety of clients • HTTP methods: • GET • POST • PUT Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 25. GET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 26. GET • Primarily just a URL making a simple request for a resource, e.g., a web page Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 27. GET • Primarily just a URL making a simple request for a resource, e.g., a web page • Response is sent back Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 28. GET • Primarily just a URL making a simple request for a resource, e.g., a web page • Response is sent back • Additional information is put in a query string Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 29. GET • Primarily just a URL making a simple request for a resource, e.g., a web page • Response is sent back • Additional information is put in a query string • Generally used to Select data Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 30. GET • Primarily just a URL making a simple request for a resource, e.g., a web page • Response is sent back • Additional information is put in a query string • Generally used to Select data • Selecting all: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 31. GET • Primarily just a URL making a simple request for a resource, e.g., a web page • Response is sent back • Additional information is put in a query string • Generally used to Select data • Selecting all: http://www.root.com/products/ Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 32. GET • Primarily just a URL making a simple request for a resource, e.g., a web page • Response is sent back • Additional information is put in a query string • Generally used to Select data • Selecting all: http://www.root.com/products/ • Selecting one: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 33. POST Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 34. POST • Sends collection of name-value pairs along with the request Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 35. POST • Sends collection of name-value pairs along with the request • Commonly used with forms on the web Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 36. POST • Sends collection of name-value pairs along with the request • Commonly used with forms on the web • Used to add new resources (Insert) Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 37. POST • Sends collection of name-value pairs along with the request • Commonly used with forms on the web • Used to add new resources (Insert) • Should return an appropriate HTTP success code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 38. PUT Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 39. PUT • Used to store a resource at the supplied URL Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 40. PUT • Used to store a resource at the supplied URL • Generally used for Editing existing resources Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 41. DELETE Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 42. DELETE • Used for deleting resources Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 43. DELETE • Used for deleting resources • Should return an appropriate HTTP code Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 44. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 45. Agenda • What Is ASP.NET Web API? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 46. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 47. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 48. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 49. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations • Filtering Data with Parameters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 50. Create Your First Web API Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 51. Create Your First Web API • Create a repository Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 52. Create Your First Web API • Create a repository • Create an API controller to use the repository Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 53. Create Your First Web API • Create a repository • Create an API controller to use the repository • Try it out in a browser Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 54. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 55. Agenda • What Is ASP.NET Web API? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 56. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 57. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 58. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 59. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations • Filtering Data with Parameters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 60. Web API Routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 61. Web API Routing • Interpretation of URLs by the server to decide what code should handle the request Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 62. Web API Routing • Interpretation of URLs by the server to decide what code should handle the request • Operates similarly to ASP.NET MVC routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 63. Web API Routing • Interpretation of URLs by the server to decide what code should handle the request • Operates similarly to ASP.NET MVC routing • Actions determined by HTTP method used Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 64. Default Mapping Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 65. Default Mapping • Configured in Global.asax Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 66. Default Mapping • Configured in Global.asax • Uses “api” as URL segment Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 67. Default Mapping • Configured in Global.asax • Uses “api” as URL segment • Adds word “Controller” to the controller part of URL Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 68. Default Mapping • Configured in Global.asax • Uses “api” as URL segment • Adds word “Controller” to the controller part of URL • Looks for action that begins with the HTTP method Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 69. Default Mapping • Configured in Global.asax • Uses “api” as URL segment • Adds word “Controller” to the controller part of URL • Looks for action that begins with the HTTP method • Additional URL parameters are mapped as action parameters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 70. Alternative Routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 71. Alternative Routing • Rarely necessary for most Web API services Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 72. Alternative Routing • Rarely necessary for most Web API services • Several options to change URL routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 73. HTTP Method Attributes Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 74. HTTP Method Attributes • Very similar to ASP.NET MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 75. HTTP Method Attributes • Very similar to ASP.NET MVC • Use attributes to bind HTTP methods to specific actions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 76. HTTP Method Attributes • Very similar to ASP.NET MVC • Use attributes to bind HTTP methods to specific actions [HttpGet] Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 77. HTTP Method Attributes • Very similar to ASP.NET MVC • Use attributes to bind HTTP methods to specific actions [HttpGet] [HttpPost] Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 78. HTTP Method Attributes • Very similar to ASP.NET MVC • Use attributes to bind HTTP methods to specific actions [HttpGet] [HttpPost] [HttpPut] Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 79. HTTP Method Attributes • Very similar to ASP.NET MVC • Use attributes to bind HTTP methods to specific actions [HttpGet] [HttpPost] [HttpPut] [HttpDelete] Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 80. AcceptVerbs Attribute Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 81. AcceptVerbs Attribute • Also used on actions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 82. AcceptVerbs Attribute • Also used on actions • Specify HTTP methods as strings Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 83. AcceptVerbs Attribute • Also used on actions • Specify HTTP methods as strings • Especially useful for atypical HTTP methods Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 84. Action Names in the URL Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 85. Action Names in the URL • Makes URLs route identically to ASP.NET MVC Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 86. Action Names in the URL • Makes URLs route identically to ASP.NET MVC • Must change routeTemplate in Global.asax Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 87. Action Names in the URL • Makes URLs route identically to ASP.NET MVC • Must change routeTemplate in Global.asax • Must also add HTTP method attributes to actions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 88. Removing Actions from Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 89. Removing Actions from • Used when a resource’s URL would trigger an action, but this is not desired Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 90. Removing Actions from • Used when a resource’s URL would trigger an action, but this is not desired • Use the NonAction attribute on the method Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 91. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 92. Agenda • What Is ASP.NET Web API? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 93. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 94. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 95. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 96. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations • Filtering Data with Parameters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 97. Create a Web API Service for CRUD Operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 98. Create a Web API Service for CRUD Operations • Create – POST Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 99. Create a Web API Service for CRUD Operations • Create – POST • Read – GET Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 100. Create a Web API Service for CRUD Operations • Create – POST • Read – GET • Update – PUT Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 101. Create a Web API Service for CRUD Operations • Create – POST • Read – GET • Update – PUT • Delete – DELETE Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 102. Create a Web API Service for CRUD Operations • Create – POST • Read – GET • Update – PUT • Delete – DELETE • Basic functionality that most services will have Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 103. Create a Web API Service for CRUD Operations • Create – POST • Read – GET • Update – PUT • Delete – DELETE • Basic functionality that most services will have • Try it out! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 104. Agenda Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 105. Agenda • What Is ASP.NET Web API? Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 106. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 107. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 108. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 109. Agenda • What Is ASP.NET Web API? • Create Your First Web API Service • Web API Routing • Create a Web API Service for CRUD Operations • Filtering Data with Parameters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 110. Filtering Data with Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 111. Filtering Data with • Uses the OData protocol Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 112. Filtering Data with • Uses the OData protocol • Special query strings can be used to: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 113. Filtering Data with • Uses the OData protocol • Special query strings can be used to: • Filter Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 114. Filtering Data with • Uses the OData protocol • Special query strings can be used to: • Filter • Page Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 115. Filtering Data with • Uses the OData protocol • Special query strings can be used to: • Filter • Page • Sort Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 116. Filtering Data with • Uses the OData protocol • Special query strings can be used to: • Filter • Page • Sort • And more… Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 117. Filter Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 118. Filter • Condition that evaluates to true or false Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 119. Filter • Condition that evaluates to true or false • Uses OData-specific keywords Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 120. Filter • Condition that evaluates to true or false • Uses OData-specific keywords • Must be sendable in a URL Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 121. Order By Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 122. Order By • Specifies the sort order of returned data Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 123. Order By • Specifies the sort order of returned data • Can sort by multiple properties Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 124. Order By • Specifies the sort order of returned data • Can sort by multiple properties • Can specify ASC and DESC sorting Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 125. Paging Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 126. Paging • Done by using $skip and $top Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 127. Paging • Done by using $skip and $top • $skip passes over a number of records Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 128. Paging • Done by using $skip and $top • $skip passes over a number of records • $skip should be set to: page number * page size Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 129. Paging • Done by using $skip and $top • $skip passes over a number of records • $skip should be set to: page number * page size • $top selects a certain number to return Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 130. Paging • Done by using $skip and $top • $skip passes over a number of records • $skip should be set to: page number * page size • $top selects a certain number to return • $top should be set to page size Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 131. There’s More Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 132. There’s More • There are other OData query strings Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 133. There’s More • There are other OData query strings • Other query keywords for $filter Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 134. There’s More • There are other OData query strings • Other query keywords for $filter • www.odata.org Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 135. Learn More! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 136. Learn More! • This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n
  58. \n
  59. \n
  60. \n
  61. \n
  62. \n
  63. \n
  64. \n
  65. \n
  66. \n
  67. \n
  68. \n
  69. \n
  70. \n
  71. \n
  72. \n
  73. \n
  74. \n
  75. \n
  76. \n
  77. \n
  78. \n
  79. \n
  80. \n
  81. \n
  82. \n
  83. \n
  84. \n
  85. \n
  86. \n
  87. \n
  88. \n
  89. \n
  90. \n
  91. \n
  92. \n
  93. \n
  94. \n
  95. \n
  96. \n
  97. \n
  98. \n
  99. \n
  100. \n
  101. \n
  102. \n
  103. \n
  104. \n
  105. \n
  106. \n
  107. \n
  108. \n
  109. \n
  110. \n
  111. \n
  112. DEMO: rest of section\n