This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/juneau-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 5d1a8c4  Petstore documentation.
5d1a8c4 is described below

commit 5d1a8c46d6a9bbee886392b739e4b8b89ba131fc
Author: JamesBognar <[email protected]>
AuthorDate: Fri Sep 13 13:23:36 2019 -0400

    Petstore documentation.
---
 content/petstore.html | 51 ++++++++++++++++++++++++---------------------------
 1 file changed, 24 insertions(+), 27 deletions(-)

diff --git a/content/petstore.html b/content/petstore.html
index d9b8185..7b87e31 100644
--- a/content/petstore.html
+++ b/content/petstore.html
@@ -190,15 +190,15 @@
        <ja>@SpringBootApplication</ja>
        <jk>public class</jk> App {
        
-           <jk>public static void</jk> main(String[] args) {
-               <jk>new</jk> App().start(args);
-           }
+               <jk>public static void</jk> main(String[] args) {
+                       <jk>new</jk> App().start(args);
+               }
        
-           <jk>protected void</jk> start(String[] args) {
-               <jk>new</jk> SpringApplicationBuilder(App.<jk>class</jk>)
-                       .initializers(<jk>new</jk> 
JuneauRestInitializer(App.<jk>class</jk>)) 
-                       .run(args);
-           }
+               <jk>protected void</jk> start(String[] args) {
+                       <jk>new</jk> 
SpringApplicationBuilder(App.<jk>class</jk>)
+                               .initializers(<jk>new</jk> 
JuneauRestInitializer(App.<jk>class</jk>)) 
+                               .run(args);
+               }
        }
                </p>
                
@@ -207,21 +207,21 @@
        <ja>@Configuration</ja>
        <jk>public class</jk> AppConfiguration {
        
-           <ja>@Bean</ja>
-           <jk>public</jk> PetStoreService petStoreService() {
-               <jk>return new</jk> PetStoreService();
-           }
+               <ja>@Bean</ja>
+               <jk>public</jk> PetStoreService petStoreService() {
+                       <jk>return new</jk> PetStoreService();
+               }
        
-           <ja>@Bean</ja>
-           <ja>@JuneauRestRoot</ja>
-           <jk>public</jk> RootResources rootResources() {
-               <jk>return new</jk> RootResources();
-           }
+               <ja>@Bean</ja>
+               <ja>@JuneauRestRoot</ja>
+               <jk>public</jk> RootResources rootResources() {
+                       <jk>return new</jk> RootResources();
+               }
        
-           <ja>@Bean</ja>
-           <jk>public</jk> PetStoreResource petStoreResource() {
-               <jk>return new</jk> PetStoreResource();
-           }
+               <ja>@Bean</ja>
+               <jk>public</jk> PetStoreResource petStoreResource() {
+                       <jk>return new</jk> PetStoreResource();
+               }
        }
                </p>
                <p>
@@ -465,6 +465,9 @@
        )
        <jk>public long</jk> createPet(CreatePet pet) <jk>throws</jk> 
IdConflict, NotAcceptable, UnsupportedMediaType {
                <jk>return</jk> <jf>store</jf>.create(pet).getId();
+       }
+       
+       ...
                </p>            
                <p>
                        After running the <c>Main</c> method in the client code 
to populate the database, the page renders as follows:
@@ -529,9 +532,3 @@
        </div>
 </div>
 </body>
-
-
-
-
-
-

Reply via email to