Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Task 0 - Server and service provisioning (July Developer Challenge - "Reverse APIs")

qmacro
Developer Advocate
Developer Advocate
15,414

This is a task in the July Developer Challenge - "Reverse APIs".

📺 We covered this task, both the "Simple deployment to BTP " approach, and the "Local deployment plus ngrok tunnel " approach, in the Hands-on SAP Dev live stream episode on Fri 05 Jul, and you can watch the replay of this coverage here: https://www.youtube.com/live/0hindK_fQ8c?si=FCId-oEln1ISGjwe&t=1098

This task is start you off gently so you can become comfortable with making a simple CAP powered service available in the cloud. This is so your API endpoints within services served by a CAP server can be reached from the TESTER service and checked for "correctness" (read the main challenge blog post July Developer Challenge - "Reverse APIs" for what this means).

What you need to do is simply follow the guidelines in the "Making your service available to test" in the 2024-07 "Reverse APIs" SAP Developer Challenge blog post, choosing either the "Simple deployment to BTP" approach, or the "Local deployment plus ngrok tunnel" approach, or indeed an approach of your own choosing.

NOTE: Whichever approach you choose, please ensure you choose a unique application name, ideally one that relates to your SAP Community ID. For example, my SAP Community ID is "qmacro" hence the application names in the guidelines referenced here are "qmacro-simplest-deployment" and "qmacro-simplest-deployment". Please make sure you use different names 👍

In this particular "pre" task (Task 0), there's no testing of whatever you get up and running; testing of your service endpoints starts with Task 1.

This thread is for us to discuss working through this task, to make comments and observations, and also to help each other get through the steps needed.

Optionally, once you get a simple CAP server up and running and the service URL exposed to the cloud, let us know here in the comments and share the URL.

Other than that, there's nothing to be done, nothing specific you need to have your test service endpoint return, and there will be nothing tested. It's just to make sure you know how to spin something up for the remaining 10 tasks.

Remember

  • You do NOT need to call the TESTER service for this task.
  • When choosing an application name, choose something unique, for example related to your SAP Community ID

Off you go!

 

34 REPLIES 34
Read only

ajmaradiaga
Developer Advocate
Developer Advocate
15,353

I've completed task 0! Yep, I know... there is no validation for this task hehe. Just getting ready for task 1 😉

ajmaradiaga_0-1720002882836.png

 

Read only

qmacro
Developer Advocate
Developer Advocate
0 Likes
15,352

Nicely tested though anyway 😉

Actually, this allows me to point out to folks the importance of what the `serviceurl` is.

In your screenshot you have:

`https://ajmadariaga-simplest-deployment.cfapps.us10-001.hana.ondemand.com/odata/v4/catalog/Books`

... but this is NOT a service URL. It's the URL of a specific entity set

`/Books`

_within_ the service

`/odata/v4/catalog`

So the value for the serviceurl here should have been:

`https://ajmadariaga-simplest-deployment.cfapps.us10-001.hana.ondemand.com/odata/v4/catalog`

Please note the difference, folks! Services can have multiple endpoints, e.g. `/Books`, `/Authors`, etc, each with their own specific URLs.

Thank you for providing me with an opportunity to make this distinction clear!

Read only

gphadnis2000
Participant
15,265

I have completed my task 0 and below is the screenshot.

gphadnis2000_0-1720014057611.png

 

Read only

qmacro
Developer Advocate
Developer Advocate
0 Likes
15,216

Calling the TESTER with a made-up task name ("task-0-provisioning") is not described in this task and not part of it 🙂 ...it's just @ajmaradiaga messing with our heads 😄

Read only

MioYasutake
SAP Champion
SAP Champion
15,090

My service is up and running on Cloud Foundry!

MioYasutake_0-1720040929577.png

 

Read only

johnsonjos16
Participant
15,090

URL: qmacro-simplest-deployment.cfapps.us10-001.hana.ondemand.com

Dev Challenge 202407 task 0.png

Read only

shrinivasan_neelamegam
Developer Advocate
Developer Advocate
15,037

Love the one liner to create a cap app and deploy to cloud foundry 🙂

https://neelames-simplest-deployment.cfapps.eu11.hana.ondemand.com/

 

Read only

0 Likes
14,952

Heheh, thanks, I love one-liners. They celebrate the true power of the shell, but also allow us to iterate fast and become more productive as developers.

Read only

mwn
Participant
14,921

I started with the local execution option, but when I looked at getting ngrok, I lost interest and went back to the simple CF option.

Hence, I have this hybrid URL: https://qmacro-local-execution.cfapps.us10-001.hana.ondemand.com/

Read only

Alpesa1990
Participant
Read only

SushmitaG98
Participant
Read only

dvvelzen
Participant
14,099

Just to confirm it's up and running:

dvvelzen_0-1720164425822.png

 

Read only

geek61
Participant
Read only

tobiasz_h
Active Participant
14,034

Hello,

The service is up and running locally with Ngrok:

tobiasz_h_0-1720177936533.png

 

Read only

ManojKumarVarma
Explorer
13,857

Hello qmacro,

I have completed the task! below are the url and screenshot for the task.

https://qmacro-simplest-deployment12.cfapps.us10-001.hana.ondemand.com/

ManojKumarVarma_0-1720185934873.png

ManojKumarVarma_1-1720186110601.pngManojKumarVarma_2-1720186114015.pngManojKumarVarma_3-1720186116342.png

 

Regards,

Manoj Kumar Potharaju.

Read only

SingireddySunil
Explorer
13,849

Hi @qmacro ,

I have completed the Task 0 and here is my CAP service CF deployed URL
https://qmacro-simplest-deployment123.cfapps.us10-001.hana.ondemand.com
Please find the attached images for the reference.

SingireddySunil_0-1720186146432.pngSingireddySunil_1-1720186155664.pngSingireddySunil_2-1720186161300.png

Thanks,
Sunil Sigireddy.

Read only

Ruthiel
Product and Topic Expert
Product and Topic Expert
13,794

Hello everyone!
Nice Challange!

Ruthiel_0-1720197227069.png

Ruthiel_2-1720197372665.png

 

 

 

Read only

spassaro
Participant
13,707

Great start and amazing one-liner!! Off we go!

 

spassaro_0-1720262858035.png

 

Read only

YogSSohanee
Participant
12,899

I have completed the task 0 - provisioning. 

YogSSohanee_2-1720378704142.png

 

YogSSohanee_3-1720378776891.png

Read only

M-K
Active Participant
Read only

sudarshan_b
Participant
12,484

Little late, but my submission for Task-0

sudarshan_b_0-1720543623623.png

 

Read only

qmacro
Developer Advocate
Developer Advocate
12,268

Not too late! I may deduct some points for calling the TESTER service (see the instructions above), plus the comments here) but will certainly add lots more on for using curl, having jq natively, having a nice shell prompt, using bash, and ... possibly (given the name of the host) using a dev container? Nice work! 🚀

Read only

krishnan-jr
Participant
Read only

vineelaallamnen
Explorer
12,124

Complete task 0

vineelaallamnen_1-1720645883996.png

 

 

 

Read only

ajay_soreng
Developer Advocate
Developer Advocate
Read only

HPSeitz
Active Participant
11,912

Part of the game, using RestClient in BAS:

Bildschirmfoto 2024-07-12 um 06.50.10.png

Read only

CameronWilson
Explorer
Read only

Jordi_C
Explorer
11,305

Using the Ngrok method:
Completed "task 0" a little late

https://66bc-169-0-105-127.ngrok-free.app/

task0.png

Read only

harsh_itaverma
Participant
11,008

I know July month is over! But I m still going to complete this one. 🙂

harsh_itaverma_0-1722537448713.png

 

Read only

10,918

No worries - great to see you here! 🙂 

Read only

Hemanth2406
Explorer
0 Likes
6,411

I know am late to the party. When i tried to deploy am getting error APP "hr2406-simplest-deployment' is not found.

Could someone help me to resolve this issue. I am using BTP Trial Account

Thanks,

Hemanth

Read only

qmacro
Developer Advocate
Developer Advocate
0 Likes
6,370

Hello Hemanth - did you watch the video that covers this (link at the top of this thread), and did you follow the steps? If so, and you're still getting an error, you'll need to help us to help you, by giving much more detail here. What did you do? What are the details? What about screenshots? What else did you try? Thanks. DJ