package guestbook; import javax.inject.Named; import com.google.api.server.spi.config.Api; @Api public class GreetingsEndpoint { public Greeting getGreeting(@Named("id") Integer id) { return createGreeting(id); } public Greeting[] listGreetings() { Greeting[] greetings = new Greeting[] { createGreeting(1), createGreeting(2) }; return greetings; } private Greeting createGreeting(Integer id) { Greeting greeting = new Greeting(); greeting.setMessage("Hello " + id); return greeting; } }
// get a secure URL for uploading a private file URL url = blobEndpoint.getUploadUrl("receipts", getReceiptFileName(),"PRIVATE") .execute().getShortLivedUrl());
// get a secure URL for downloading a file URL url = blobEndpoint.getDownloadUrl("receipts", getReceiptFileName()) .execute().getShortLivedUrl());
Demonstrate your proficiency to design, build and manage solutions on Google Cloud Platform.