This shows how to convert a basic REST ApiGateway template to its equivalent HTTP ApiGatewayV2.
The original code before refactoring to ApiGatewayV2 comes from this article
Replace MY_PROFILE, MY_REGION and MY_STACK_NAME
| /** | |
| * This magically uses batchexecute protocol. It's not documented, but it works. | |
| * | |
| * Licensed under: MIT License | |
| * | |
| * Copyright (c) 2024 Ruslan Gainutdinov | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
This shows how to convert a basic REST ApiGateway template to its equivalent HTTP ApiGatewayV2.
The original code before refactoring to ApiGatewayV2 comes from this article
Replace MY_PROFILE, MY_REGION and MY_STACK_NAME
| import { Linking } from 'expo'; | |
| import * as WebBrowser from 'expo-web-browser'; | |
| /**Amplify documentation has this example */ | |
| const urlOpenerExpo = async (url, redirectUrl) => { | |
| console.log(">>>>>>>>> in urlOpener") | |
| // On Expo, use WebBrowser.openAuthSessionAsync to open the Hosted UI pages. | |
| const { type, url: newUrl } = await WebBrowser.openAuthSessionAsync(url, redirectUrl); | |
| console.log("Type") |
| <template> | |
| <span id="time" v-html="time"></span> | |
| </template> | |
| <style> | |
| </style> | |
| <script> | |
| module.exports = { |
| /** | |
| * @file | |
| * Sparse matrix. | |
| * | |
| * Implementation with singly linked list, through the nested class SparseMatrixNode. | |
| * It's used nested class to improve encapsulation. | |
| * | |
| * @author Pedro Furtado | |
| */ |