首頁 > 計算機網(wǎng)絡(luò) > 網(wǎng)絡(luò)與通信 > Building RESTful Web Services with Spring 5(Second Edition)
舉報

會員
Building RESTful Web Services with Spring 5(Second Edition)
ThisbookisintendedforthosewhowanttolearntobuildRESTfulwebserviceswiththelatestSpring5.0Framework.Tomakebestuseofthecodesamplesincludedinthebook,youshouldhaveabasicknowledgeoftheJavalanguage.PreviousexperiencewiththeSpringFrameworkwouldalsohelpyougetupandrunningquickly.
最新章節(jié)
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- Deleting tickets by CSR – API (ticket controller)
- Deleting tickets – service (TicketServivceImpl)
- CSR delete tickets
品牌:中圖公司
上架時間:2021-06-30 18:31:12
出版社:Packt Publishing
本書數(shù)字版權(quán)由中圖公司提供,并由其授權(quán)上海閱文信息技術(shù)有限公司制作發(fā)行
- Leave a review - let other readers know what you think 更新時間:2021-06-30 19:14:04
- Other Books You May Enjoy
- Summary
- Deleting tickets by CSR – API (ticket controller)
- Deleting tickets – service (TicketServivceImpl)
- CSR delete tickets
- CSR view single ticket
- Viewing all tickets by CSR – API (ticket controller)
- CSR view all tickets
- CSRTokenRequiredAspect
- CSRTokenRequired AOP
- CSR updates a ticket
- CSR Ticket management
- Deleting tickets by admin – API (ticket controller):
- Deleting tickets – service (TicketServiceImpl):
- Allowing admin to delete tickets
- Allowing admin to view a single ticket
- Updating a ticket by admin – service (TicketServiceImpl)
- Admin updates a ticket
- The AdminTokenRequiredAspect class
- The AdminTokenRequired interface
- Getting all tickets – API (ticket controller)
- Getting all tickets – service (TicketServiceImpl)
- Allowing a admin to view all tickets
- Admin Ticket management
- Deleting my ticket – API (ticket controller)
- Deleting a service – service (TicketServiceImpl)
- Deleting a ticket
- Updating a ticket – service (TicketServiceImpl)
- Allowing a customer to update a ticket
- Allowing a user to view their single ticket
- Getting my tickets – customer
- The UserTokenRequiredAspect class
- The UserTokenRequired interface
- Ticket controller
- User Ticket management
- Getting a user by token
- Ticket POJO
- Ticket management
- CSR login
- Admin login
- Customer login
- Generating a token
- Login and token management
- CSR registration
- Admin registration
- Customer registration
- User POJO
- User types
- Registration
- Ticket management using CRUD operations
- Ticket Management – Advanced CRUD
- Summary
- Eclipse MicroProfile
- HashiCorp Consul
- Netflix Turbine
- Netflix Hystrix
- Netflix Ribbon
- Spring Cloud Netflix
- Netflix Zuul
- Netflix Eureka
- Microservice tools
- Edge server
- Circuit breaker
- Service discovery
- Load balancer
- Configuration server
- Microservice components
- Benefits of microservices
- Stateless
- Automated environment
- Resilience and fault tolerance
- Independence and autonomy
- Introduction to microservices
- Monolithic architecture and its drawbacks
- Microservice Basics
- Summary
- Oracle distributed cache (Coherence)
- Amazon ElastiCache
- Other distributed caching
- Cache2k
- Infinispan
- Aerospike
- Riak
- Ehcache
- Hazelcast
- Redis
- Memcached
- Application-tier caching
- Second-level caching
- First-level caching
- Data-tier caching
- Distributed caching
- Vertical partitioning
- Sharding (horizontal partitioning)
- Database partitioning
- Load balancing in DB servers
- Use multiple masters
- Pool connections
- Read replicas
- Horizontal scaling
- Vertical scaling
- Scaling databases
- Load balancing
- Benefits of clustering
- Clustering
- Scaling
- Summary
- Customized exception
- Error handling
- RestTemplate
- Building a REST client
- Building a REST Client and Error Handling
- Summary
- Logback implementation in class
- Logging levels
- Logback dependency and configuration
- Logback framework
- SLF4J Log4J and Logback
- Logger controls
- Integrating AOP with JWT
- Testing AOP @Before annotation
- AOP (@Before) with annotation
- Testing AOP @Before execution
- AOP (@Before) with execution
- Aspect-oriented programming (AOP)
- AOP and Logger Controls
- Summary
- Caching with ETags
- The REST resource
- Cache implementation
- Last-Modified/If-Modified-Since headers
- ETags
- Cache validation
- Only-if-cached
- No-cache
- Private caching
- Public caching
- HTTP cache control
- HTTP caching
- Agent-driven content negotiation
- Server-driven content negotiation
- Content-Encoding
- Accept-Encoding
- Content negotiation
- HTTP compression
- Performance
- Summary
- Running the test cases
- Adding a user – jsoup
- Getting a user – jsoup
- jsoup
- Getting the subject from the token – SoapUI
- Generating JWT SoapUI
- Getting all the users – SoapUI
- SoapUI
- Getting the subject from the token
- Generating a JWT – Postman
- Adding a user – Postman
- Getting all the users – Postman
- Postman
- Testing a single user
- MockMvc
- JUnit
- Testing RESTful Web Services
- Summary
- Getting a subject from a token
- Getting a subject from a JWT token
- Generating a token
- Creating a JWT token
- JWT dependency
- JSON Web Token (JWT)
- Authentication and authorization
- Spring Security
- Spring Security and JWT (JSON Web Token)
- Summary
- Testing the file upload
- File uploads – REST API
- deleteUser – implementation
- updateUser – implementation
- createUser – implementation
- getUser – implementation
- getAllUsers – implementation
- CRUD operation in Spring 5 (without Reactive)
- Creating resources
- Mapping CRUD operations to HTTP methods
- CRUD Operations in Plain REST (Without Reactive) and File Upload
- Summary
- Testing the endpoint – deleteUser
- deleteUser – implementation in the handler and repository
- Testing the endpoint – updateUser
- updateUser – implementation in the handler and repository
- Testing the endpoint – createUser
- createUser – implementation in the handler and repository
- Testing the endpoint – getUser
- getUser – implementation in the handler and repository
- Testing the endpoint – getAllUsers
- getAllUsers – implementation in the handler and repository
- getAllUsers – mapping
- Sample values in the repository
- Reactive server initialization
- HTTP methods
- CRUD operations in Spring REST
- CRUD Operations in Spring REST
- Summary
- User class with Reactive – REST
- Mono
- Flux
- Basic REST API
- WebFlux
- Back pressures and Reactive Streams
- Reactive Core and Streams
- Benefits of Reactive programming
- Flux and Mono (Reactor Support) in Spring
- Summary
- Working with your favorite IDE
- Creating a project base
- Developing RESTful web services
- Spring Boot
- Dependency trees
- Adding Log4j 2.9.1 to POM dependency
- Understanding POM dependencies
- POM file structure
- Viewing a POM file after creating a project
- Creating a project with Maven
- Apache Maven
- Building RESTful Web Services in Spring 5 with Maven
- Summary
- Our RESTful web service architecture
- Reactive programming in Java and Spring 5
- Benefits of Reactive programming
- Reactive Streams
- Imperative and Reactive programming
- More on REST
- Code on demand (COD)
- Layered system
- Cacheable
- Stateless
- Client and server
- Uniform interface
- REST – a basic understanding
- A Few Basics
- Reviews
- Get in touch
- Conventions used
- Download the color images
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewer
- About the authors
- Contributors
- PacktPub.com
- Why subscribe?
- Packt Upsell
- Dedication
- Title Page
- coverpage
- coverpage
- Title Page
- Dedication
- Packt Upsell
- Why subscribe?
- PacktPub.com
- Contributors
- About the authors
- About the reviewer
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Reviews
- A Few Basics
- REST – a basic understanding
- Uniform interface
- Client and server
- Stateless
- Cacheable
- Layered system
- Code on demand (COD)
- More on REST
- Imperative and Reactive programming
- Reactive Streams
- Benefits of Reactive programming
- Reactive programming in Java and Spring 5
- Our RESTful web service architecture
- Summary
- Building RESTful Web Services in Spring 5 with Maven
- Apache Maven
- Creating a project with Maven
- Viewing a POM file after creating a project
- POM file structure
- Understanding POM dependencies
- Adding Log4j 2.9.1 to POM dependency
- Dependency trees
- Spring Boot
- Developing RESTful web services
- Creating a project base
- Working with your favorite IDE
- Summary
- Flux and Mono (Reactor Support) in Spring
- Benefits of Reactive programming
- Reactive Core and Streams
- Back pressures and Reactive Streams
- WebFlux
- Basic REST API
- Flux
- Mono
- User class with Reactive – REST
- Summary
- CRUD Operations in Spring REST
- CRUD operations in Spring REST
- HTTP methods
- Reactive server initialization
- Sample values in the repository
- getAllUsers – mapping
- getAllUsers – implementation in the handler and repository
- Testing the endpoint – getAllUsers
- getUser – implementation in the handler and repository
- Testing the endpoint – getUser
- createUser – implementation in the handler and repository
- Testing the endpoint – createUser
- updateUser – implementation in the handler and repository
- Testing the endpoint – updateUser
- deleteUser – implementation in the handler and repository
- Testing the endpoint – deleteUser
- Summary
- CRUD Operations in Plain REST (Without Reactive) and File Upload
- Mapping CRUD operations to HTTP methods
- Creating resources
- CRUD operation in Spring 5 (without Reactive)
- getAllUsers – implementation
- getUser – implementation
- createUser – implementation
- updateUser – implementation
- deleteUser – implementation
- File uploads – REST API
- Testing the file upload
- Summary
- Spring Security and JWT (JSON Web Token)
- Spring Security
- Authentication and authorization
- JSON Web Token (JWT)
- JWT dependency
- Creating a JWT token
- Generating a token
- Getting a subject from a JWT token
- Getting a subject from a token
- Summary
- Testing RESTful Web Services
- JUnit
- MockMvc
- Testing a single user
- Postman
- Getting all the users – Postman
- Adding a user – Postman
- Generating a JWT – Postman
- Getting the subject from the token
- SoapUI
- Getting all the users – SoapUI
- Generating JWT SoapUI
- Getting the subject from the token – SoapUI
- jsoup
- Getting a user – jsoup
- Adding a user – jsoup
- Running the test cases
- Summary
- Performance
- HTTP compression
- Content negotiation
- Accept-Encoding
- Content-Encoding
- Server-driven content negotiation
- Agent-driven content negotiation
- HTTP caching
- HTTP cache control
- Public caching
- Private caching
- No-cache
- Only-if-cached
- Cache validation
- ETags
- Last-Modified/If-Modified-Since headers
- Cache implementation
- The REST resource
- Caching with ETags
- Summary
- AOP and Logger Controls
- Aspect-oriented programming (AOP)
- AOP (@Before) with execution
- Testing AOP @Before execution
- AOP (@Before) with annotation
- Testing AOP @Before annotation
- Integrating AOP with JWT
- Logger controls
- SLF4J Log4J and Logback
- Logback framework
- Logback dependency and configuration
- Logging levels
- Logback implementation in class
- Summary
- Building a REST Client and Error Handling
- Building a REST client
- RestTemplate
- Error handling
- Customized exception
- Summary
- Scaling
- Clustering
- Benefits of clustering
- Load balancing
- Scaling databases
- Vertical scaling
- Horizontal scaling
- Read replicas
- Pool connections
- Use multiple masters
- Load balancing in DB servers
- Database partitioning
- Sharding (horizontal partitioning)
- Vertical partitioning
- Distributed caching
- Data-tier caching
- First-level caching
- Second-level caching
- Application-tier caching
- Memcached
- Redis
- Hazelcast
- Ehcache
- Riak
- Aerospike
- Infinispan
- Cache2k
- Other distributed caching
- Amazon ElastiCache
- Oracle distributed cache (Coherence)
- Summary
- Microservice Basics
- Monolithic architecture and its drawbacks
- Introduction to microservices
- Independence and autonomy
- Resilience and fault tolerance
- Automated environment
- Stateless
- Benefits of microservices
- Microservice components
- Configuration server
- Load balancer
- Service discovery
- Circuit breaker
- Edge server
- Microservice tools
- Netflix Eureka
- Netflix Zuul
- Spring Cloud Netflix
- Netflix Ribbon
- Netflix Hystrix
- Netflix Turbine
- HashiCorp Consul
- Eclipse MicroProfile
- Summary
- Ticket Management – Advanced CRUD
- Ticket management using CRUD operations
- Registration
- User types
- User POJO
- Customer registration
- Admin registration
- CSR registration
- Login and token management
- Generating a token
- Customer login
- Admin login
- CSR login
- Ticket management
- Ticket POJO
- Getting a user by token
- User Ticket management
- Ticket controller
- The UserTokenRequired interface
- The UserTokenRequiredAspect class
- Getting my tickets – customer
- Allowing a user to view their single ticket
- Allowing a customer to update a ticket
- Updating a ticket – service (TicketServiceImpl)
- Deleting a ticket
- Deleting a service – service (TicketServiceImpl)
- Deleting my ticket – API (ticket controller)
- Admin Ticket management
- Allowing a admin to view all tickets
- Getting all tickets – service (TicketServiceImpl)
- Getting all tickets – API (ticket controller)
- The AdminTokenRequired interface
- The AdminTokenRequiredAspect class
- Admin updates a ticket
- Updating a ticket by admin – service (TicketServiceImpl)
- Allowing admin to view a single ticket
- Allowing admin to delete tickets
- Deleting tickets – service (TicketServiceImpl):
- Deleting tickets by admin – API (ticket controller):
- CSR Ticket management
- CSR updates a ticket
- CSRTokenRequired AOP
- CSRTokenRequiredAspect
- CSR view all tickets
- Viewing all tickets by CSR – API (ticket controller)
- CSR view single ticket
- CSR delete tickets
- Deleting tickets – service (TicketServivceImpl)
- Deleting tickets by CSR – API (ticket controller)
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-06-30 19:14:04