Skip to content

Latest commit

 

History

History
 
 

google-ruby-simple-http-endpoint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Simple HTTP Endpoint Example

This example demonstrates how to setup a simple Ruby HTTP GET endpoint.

Use Cases

  • Wrapping an existing internal or external endpoint/service

Development

The GCF Ruby environment has the following requirements:

  • The code to be invoked must be defined in the app.rb file using FunctionsFramework
  • Any dependencies must be specified in the Gemfile

https://cloud.google.com/functions/docs/concepts/ruby-runtime https://github.com/GoogleCloudPlatform/functions-framework-ruby

Deploy

Run the following to deploy:

serverless deploy