Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Sites API Target vs Repro Id

I don't think the Id attribute should have a trailing slash. Id's are not hierarchical so the slash makes no sense, and is not consistent with other resources such as Workspace/Project whose Id does not have a slash. I have entered:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=371408

John A



John J Barton <johnjbarton@xxxxxxxxxxxxxxx>
Sent by: orion-dev-bounces@xxxxxxxxxxx

02/12/2012 08:31 PM

Please respond to
Orion developer discussions <orion-dev@xxxxxxxxxxx>

To
Orion developer discussions <orion-dev@xxxxxxxxxxx>
cc
Subject
[orion-dev] Sites API Target vs Repro Id





http://wiki.eclipse.org/Orion/Server_API/Site_Configuration_API#Getting_all_site_configurations
has
"Mappings": [
              {
                  "Source": "/",
                  "Target": "/I"
              },
              {
                  "Source": "/github",
                  "Target": "
http://mamacdon.github.com"
              }
          ],

but
http://wiki.eclipse.org/Orion/Server_API/Git_API#Getting_the_list_of_repositories
has
{"Children": [
{
  "BranchLocation": "
http://localhost:8080/gitapi/branch/file/u/",
  "ConfigLocation": "
http://localhost:8080/gitapi/config/clone/file/u/",
  "ContentLocation": "
http://localhost:8080/file/u/",
  "GitUrl": "ssh://sfranklin@xxxxxxxxxxxxxxx/gitroot/e4/org.eclipse.orion.client.git",
  "HeadLocation": "
http://localhost:8080/gitapi/commit/HEAD/file/u/",
  "Id": "u/",
  "Location": "
http://localhost:8080/gitapi/clone/file/u/",
  "Name": "sfranklin",
  "RemoteLocation": "
http://localhost:8080/gitapi/remote/file/u/"
},
...

Notice that the id is path-segment slash while the target is slash
path-segment.  This makes identifying which repro is a Target
annoying.

jjb
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev



Back to the top