Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-2595

Note about naming the paths on the class and the method levels

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Add a note to https://docs.magnolia-cms.com/product-docs/6.2/Developing/Development-how-tos/How-to-create-a-custom-Java-based-REST-endpoint.html about naming the path on the class and the method levels.

      Problem

      if you name your class path (CP) to begin with same string as your method path (MP), for example,

      (CP) /hello/v1

      (MP) /hello

      the endpoint will not work and the Could not find resource for full path: ... error message is generated.

      The note

      The note should give a hint that the class path should not begin with the same string as the method path. 

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdrapela Martin Drápela
              mdrapela Martin Drápela
              Documentation
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR