Bonnes Pratiques Web & Cloud
58.8K views | +0 today
Bonnes Pratiques Web & Cloud
Administration cloud et développement web
Curated by Mickael Ruau
Your new post is loading...
Your new post is loading...

Popular Tags

Current selected tag: 'api - web service'. Clear
Scooped by Mickael Ruau
Scoop.it!

amertum/adresse-postale: API de la norme AFNOR XP Z 10-011 de mai 1997 du format d'adresse postale français. Interface et implementation de base en java

amertum/adresse-postale: API de la norme AFNOR XP Z 10-011 de mai 1997 du format d'adresse postale français. Interface et implementation de base en java | Bonnes Pratiques Web & Cloud | Scoop.it
API de la norme AFNOR XP Z 10-011 de mai 1997 du format d'adresse postale français. Interface et implementation de base en java - GitHub - amertum/adresse-postale: API de la norme AFNOR XP Z 10-011 de mai 1997 du format d'adresse postale français. Interface et implementation de base en java
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

The Pros and Cons of Jamstack Architecture and What the Future Holds for It

The Pros and Cons of Jamstack Architecture and What the Future Holds for It | Bonnes Pratiques Web & Cloud | Scoop.it

A Transitional Year for Jamstack

According to Davis, Jamstack is constantly evolving and 2021 felt very much like a transitional year. He went on to warn about a current identity crisis with the Jamstack pattern. “With Next.js absolutely exploding in 2020, it brought into question what Jamstack really means,” he said. “The community led by Netlify evolved the definition to suit their product, while working to preserve the original benefits of Jamstack. It is still evolving in my mind. What is Jamstack became a difficult question for anyone to answer, and it's been the theme of 2021. Lots of people with lots of opinions out there.”

Davis' hope is that 2022 will see the architecture grow and mature a bit.
Mickael Ruau's insight:

Losing Control in Decoupled World

Jamstack means decoupling, which also means everything that goes into a site is a separate thing, according to Davis. “With our old Rails apps,” Davis said, “almost everything about the application was done inside Rails — authentication, form submission, page rendering, searching, the entire CMS application. In a decoupled world, most of those pieces of the puzzle are handled by a different service.” According to Davis, the challenges that come with this are:

  • The promise of cost savings decreases with scale. All these tools need to make money, and while they tend to have free tiers, they get expensive at scale.
  • Decision-makers (CTO, tech leads, etc.) need a vast understanding of the current landscape to be able to put the right tools in place. It's not enough to know how Rails does authentication. Now we have to know who the authentication providers are, how they compare to one another, and choose the right one for each job.
  • Stitching these pieces together to build a seamless web experience takes effort. This can be abstracted and made efficient over time — if teams have the luxury of consistent requirements and ability to make decisions on service providers — but it takes time, and money, to get there, according to Davis.

Are Content Creators Left Behind?

The Jamstack movement made great promises to developers and to end users, Davis said, but it left behind the content creators: marketers, editors, etc., people responsible for building pages and working the CMS. “Suddenly marketers had to learn how structured content works,” he said. “And they were editing without context. In our coupled, custom CMS days, it was trivial to provide real-time, in-context previews. Content editors loved it. With the Jamstack, especially in the early days, it was extremely difficult. And the landscape still has a long way to go to mature in this space.”

Related Article: What Is a Content Experience Platform?

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

A Proper Guide For RESTful API - DZone Web Dev

A Proper Guide For RESTful API - DZone Web Dev | Bonnes Pratiques Web & Cloud | Scoop.it

The flexibility of the REST arthropod allows developers to create an associated level API that meets your wishes as well as the wishes of very different customers.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

API Editor - Download or Try it in the Cloud

API Editor - Download or Try it in the Cloud | Bonnes Pratiques Web & Cloud | Scoop.it
Design, describe, and document your API on the first open source editor fully dedicated to OpenAPI-based APIs. The Swagger Editor is an easy way to get started with the OpenAPI Specification (formerly known as Swagger), with support for Swagger 2.0 and OpenAPI 3.0.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

swagger-api/swagger-inflector

swagger-api/swagger-inflector | Bonnes Pratiques Web & Cloud | Scoop.it
Contribute to swagger-api/swagger-inflector development by creating an account on GitHub.
Mickael Ruau's insight:

This project uses the Swagger Specification to drive an API implementation. Rather than a typical top-down or bottom-up swagger integration, the Inflector uses the swagger specification as a DSL for the REST API. The spec drives the creation of routes and controllers automatically, matching methods and method signatures from the implementation. This brings a similar integration approach to the JVM as swagger-node brings to the javascript world.

To allow for an iterative development, the framework will mock responses for any unimplemented methods, based on the specification. That means you can ship your API to your consumers for review immediately as you build it out.

You have full control over the mapping of controllers to classes and methods as well as models.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

How to Create a RESTful API with Java (Spring Boot) | RapidAPI

How to Create a RESTful API with Java (Spring Boot) | RapidAPI | Bonnes Pratiques Web & Cloud | Scoop.it
In this tutorial, we explore how to design and implement a RESTful API using Java. After finishing, you should better understand the following topics:

Restful API Design,
implementing a REST API using Java,
documenting that REST API using Swagger,
and publishing your API on RapidAPI.

Understanding this tutorial requires at least a cursory understanding of Java and the following Java technologies:

JAX-RS 2.0,
Spring Boot,
JSON, and the
Jackson JSON library.

However, the tutorial does not presuppose an in-depth knowledge of these technologies.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

GraphQL On The Front-End (React And Apollo) —

GraphQL On The Front-End (React And Apollo) — | Bonnes Pratiques Web & Cloud | Scoop.it
Within the last decade, technologies like GraphQL have changed how we build web apps and how they communicate with each other. GraphQL provides certain benefits over REST APIs — let’s find out what they are.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

10 Rules To Integrate Third-Party Scripts - DZone Performance

10 Rules To Integrate Third-Party Scripts - DZone Performance | Bonnes Pratiques Web & Cloud | Scoop.it
The increasing importance of Google's Core Web Vital score increases the impact of third-party scripts on SEO rankings. Learn the best practices to stay on top!
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

A Guide To REST API Testing Strategy - DZone Performance

A Guide To REST API Testing Strategy - DZone Performance | Bonnes Pratiques Web & Cloud | Scoop.it
A REST API is a type of API that adheres to REST limitations and allows interactions with other sites. Any page that follows REST constraints is informally called RESTful API. Below are some of its core features.

A RESTful API is stateless
It supports JSON and XML alike
It offers simplified implementation versus the standard SOAP
Every architectural modification in the REST API should reflect in its documentation
It provides developers with an extensive range of error messages

Here’s a REST API example in an e-commerce setting. If you want to purchase affordable running shoes, you use a search engine, type in keywords, and receive a list of options in return. In most cases, the results are relevant to your search. If used correctly, this tool should enhance a client’s experience with your brand.

Before you run tests, here are some guidelines to follow on how to create REST API:

Use HTTPS
Include a timestamp to requests
Limit HTTP methods
Apply input validation if necessary
Use OAuth
Avoid showing sensitive data on URLs
Mickael Ruau's insight:

 

Several test actions make up one API test, making them essential in a test flow. Every API request should include the following:

  1. Verify HTTP Status Code: This step is crucial to quickly finding and fixing broken links. You can create a resource to return un-permitted requests like redirections, client errors, and server errors.
  2. Verify Response Headers: Response headers are HTTP requests that don’t relate to the message. You can use factors like age, location, or server to gain more context about a response. This step is crucial because it affects both the security and performance of your site.
  3. Verify Response Payloads: Apart from letting you see replies from curl or Postman, this action will help you make use of JSON data. The information should include field names, types, values, and errors.
  4. Verify Basic Performance Sanity: Sanity testing makes sure that there are no bugs in the system and that they will not affect code changes. It also checks for the completion speed of any test.
  5. Verify Application State: This action may be optional, but we highly recommend taking it. You can use it for manual testing or when you have access to an interface such as UI.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Comment améliorer la documentation des API avec Swagger et OpenAPI

Comment améliorer la documentation des API avec Swagger et OpenAPI | Bonnes Pratiques Web & Cloud | Scoop.it
Découvrez pourquoi les développeurs devraient utiliser les avantages de Swagger et des spécifications OpenAPI pour rationaliser la conception, la documentation et la gestion des API en particulier des API RESTful.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Tutoriel pour apprendre les bases des API

Tutoriel pour apprendre les bases des API | Bonnes Pratiques Web & Cloud | Scoop.it
Croyez à la puissance des API ! Votre entreprise a besoin de créer des solutions omnicanal, d'innover plus vite que la concurrence et de devenir une entreprise mobile ou de travailler dans un environnement de cloud hybride. Les API modernes vous permettent d'utiliser des écosystèmes ouverts et de nouveaux modèles économiques. Ce guide pratique vous explique comment utiliser les API pour le bénéfice de votre entreprise.

Considérez une API comme un produit : elle représente quelque chose que vous avez choisi de partager avec un public cible.
Testez tôt, apprenez vite et adaptez facilement : découvrez une approche expérimentale des API.
Utilisez toujours les API pour délimiter votre domaine : gardez un contrôle et une visibilité sur les trafics entrant et sortant.
Utilisez des plates-formes d'API spécialisées : simplifiez et sécurisez à 100 % le partage d'API.
Mickael Ruau's insight:

Table des matières

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

How We Design Our APIs at Slack

How We Design Our APIs at Slack | Bonnes Pratiques Web & Cloud | Scoop.it
More than five years ago, we launched the Slack Platform, giving developers an easy way to build apps in Slack and publish them in our App Directory. Today, millions of users bring their work into Slack, and those apps built by over 885,000 active developers on the platform are key to further improving collaboration in …
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Les Pièges Et Les Patterns Dans La Gestion Des Dépendances Dans Une Architecture Microservice

Les Pièges Et Les Patterns Dans La Gestion Des Dépendances Dans Une Architecture Microservice | Bonnes Pratiques Web & Cloud | Scoop.it
Silvia Esparrachiari nous explique comment un changement mineur peut impacter un système, et souligne l’importance d’en avoir une vision globale pour mieux comprendre l’impact d’une modification.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Connaître les technologies « cachées » d’un site - 01Script

Connaître les technologies « cachées » d’un site - 01Script | Bonnes Pratiques Web & Cloud | Scoop.it
Voici une liste des services Web et d’extensions pour Google Chrome et Firefox permettant de savoir facilement quelles technologies, framework, CMS, bibliothèque (JavaScript, CSS, …), etc. utilise un site Web. « Chrome Sniffer » est une extension pour le navigateur Google Chrome qui permet de connaitre les frameworks et CMS (Joomla, WordPress, Drupal, …), service […]
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Webhooks vs. API: The Complete Guide

Webhooks vs. API: The Complete Guide | Bonnes Pratiques Web & Cloud | Scoop.it
A webhook is an API endpoint that serves a different purpose: instead of just being there to look up information like a typical GET API endpoint, we can POST to the webhook with some JSON data, and then it'll do something internally. That means webhooks can serve as a sort of event system. Using the same company analogy, if the API is like the team responding to inquiries from other parties, webhooks would be the team that takes action when an approved partner says it's time, like the team who updates the inventory when the supplier says they have more items in stock.

So basically, webhooks are like anti-API endpoints. They take in data and do internal work where regular API endpoints return data so that the client asking for that data can do something with it.

OK! So that probably answers your question, right? You found your way to this article trying to work out the difference between APIs and webhooks, and there it is, explained in two easy sentences. So are we done?

Didn't think so. You want to see this in practice... well alright then! Let's jump in.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

swagger-api/swagger-js: Javascript library to connect to swagger-enabled APIs via browser or nodejs

swagger-api/swagger-js: Javascript library to connect to swagger-enabled APIs via browser or nodejs | Bonnes Pratiques Web & Cloud | Scoop.it
Javascript library to connect to swagger-enabled APIs via browser or nodejs - GitHub - swagger-api/swagger-js: Javascript library to connect to swagger-enabled APIs via browser or nodejs
Mickael Ruau's insight:

Swagger Client is a JavaScript module that allows you to fetch, resolve, and interact with Swagger/OpenAPI documents.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

swagger-api/swagger-node: Swagger module for node.js

swagger-api/swagger-node: Swagger module for node.js | Bonnes Pratiques Web & Cloud | Scoop.it

The swagger module provides tools for designing and building Swagger-compliant APIs entirely in Node.js. It integrates with popular Node.js servers, including Express, Hapi, Restify, and Sails, as well as any Connect-based middleware. With swagger, you can specify, build, and test your API from the very beginning, on your laptop. It allows you to change and iterate your design without rewriting the logic of your implementation.

 

Remember, one great thing about this approach is that all of the Swagger validation logic is handled for you, and all of the routing logic is managed through the Swagger configuration. You don't have to code (or recode!) any of that stuff yourself.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

REST API Documentation Tool | Swagger UI

REST API Documentation Tool | Swagger UI | Bonnes Pratiques Web & Cloud | Scoop.it
Swagger UI allows anyone — be it your development team or your end consumers — to visualize and interact with the API’s resources without having any of the implementation logic in place. It’s automatically generated from your OpenAPI (formerly known as Swagger) Specification, with the visual documentation making it easy for back end implementation and client side consumption.
Mickael Ruau's insight:
Dependency Free The UI works in any development environment, be it locally or in the web
 
Human Friendly Allow end developers to effortlessly interact and try out every single operation your API exposes for easy consumption Easy to Navigate Quickly find and work with resources and endpoints with neatly categorized documentation All Browser Support Cater to every possible scenario with Swagger UI working in all major browsers Fully Customizable Style and tweak your Swagger UI the way you want with full source code access Complete OAS Support Visualize APIs defined in Swagger 2.0 or OAS 3.0
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

How To Use an API with Java (Java API Tutorial For Beginners)

How To Use an API with Java (Java API Tutorial For Beginners) | Bonnes Pratiques Web & Cloud | Scoop.it
In this article, we will talk about the best technology of the interaction between software and test it on the most popular language for creating software This is a tough question so we'll divide it into a few parts
Mickael Ruau's insight:

Before we get started, we’ll need to find an easy API to test. Sometimes it is difficult to find free and useful API for testing purposes. At RapidAPI, you’ll find over 10,000 APIs to test and connect with. Here you can test your programming skills, build useful apps, and even create your own APIs.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

WICG Publishes New HTML Sanitizer API Proposal against mXSS Attacks

WICG Publishes New HTML Sanitizer API Proposal against mXSS Attacks | Bonnes Pratiques Web & Cloud | Scoop.it
The Web Platform Incubator Community Group recently published the Draft Community Group Report for the HTML Sanitizer API. The HTML Sanitizer API lets developers take untrusted strings of HTML and sanitize those strings for safe insertion into a document’s DOM. The most common use case of HTML string sanitization is to prevent cross-site scripting (XSS) attacks.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

E-Commerce Development Essentials - DZone Refcardz

E-Commerce Development Essentials - DZone Refcardz | Bonnes Pratiques Web & Cloud | Scoop.it
Since the dot com boom, e-commerce has meant big business for all involved. If you are considering setting up your own e-commerce offering, there is a lot you need to consider. From SDKs and APIs to general architecture decisions, this Refcard will help you navigate those options.
Mickael Ruau's insight:
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Les bases du test des API RESTful

Les bases du test des API RESTful | Bonnes Pratiques Web & Cloud | Scoop.it
Le test d’API RESTful insuffle au sein de l’entreprise une culture de tests en continu et d’une forme de responsabilité de l’équipe. Greg Sypolt passe en revue les composants clés d’un programme de test.
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

How to Integrate Google APIs with Python Django

How to Integrate Google APIs with Python Django | Bonnes Pratiques Web & Cloud | Scoop.it
Google has a bunch of different APIs. It can be tricky to figure out how to incorporate them into a Django project. We just released a course on the freeCodeCamp.org YouTube channel that will teach you how to build a Django app that uses multiple Google APIs. Bobby Stearman
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

JavaScript - Apprendre le développement web | MDN

JavaScript - Apprendre le développement web | MDN | Bonnes Pratiques Web & Cloud | Scoop.it
JavaScript est un langage de programmation qui vous permet de mettre en œuvre des éléments complexes sur des pages Web (une page Web contenant plus que de simples informations statiques). Chaque fois qu'une page affiche des mises à jour de contenu en temps réel, des cartes interactives, des animations graphiques 2D / 3D ou un juke-box vidéo défilant, etc. — vous pouvez parier que JavaScript est probablement impliqué.
Mickael Ruau's insight:

 

 

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

Karate Framework Tutorial: Automated API Testing With Karate

Karate Framework Tutorial: Automated API Testing With Karate | Bonnes Pratiques Web & Cloud | Scoop.it
What You Will Learn: [hide]

What Is Karate Framework
History Of Karate Framework
Comparing Karate Vs Rest-Assured
Tools Required For Working With Karate Framework
Structure Of Karate Test Script
Creating The First Basic Karate Test Script
Conclusion
Recommended Reading
Mickael Ruau's insight:

This tutorial is an introduction to API Testing using Karate Framework. Learn about the structure of Karate Test Script and steps to build the first test script:

No comment yet.