-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of new API/Webservice to replace XMWS #70
Comments
Great ! to see rest API!! |
Don't need any help at the moment buddy as I'm going to lay down the API On 24 October 2014 17:58, MBlagui [email protected] wrote:
|
My pleasure... Try to think about the api in it's own Vhost/port ;-) |
Thats a good idea, I'll completely decouple the API from the control panel On 26 October 2014 11:06, MBlagui [email protected] wrote:
|
Api is first layer before we can think multiserver panel. But implementation is not so hard in DB. We need to add serverID in all packages/ressources ( web/ftp/email) so we know where the ressource will be setup. We can easily move into that model. |
Bobby, If you want, I'd love to help out with this. I've been looking to see how I could bootstrap zpanel, so I could use the functions. Rest is best. :) What rest walkable tree structure are you thinking of? Some better rest classes I've used have included:
The below is just a sample, I grabbed from another RESTful API (http://rallydev.com). It's a sample query for say a user. {
QueryResult: {
_versionAPIMajor: "2",
_versionAPIMinor: "0",
Errors: [ ],
Warnings: [ ],
TotalResultCount: 1,
StartIndex: 1,
PageSize: 20,
Results: [
{
_rallyAPIMajor: "2",
_rallyAPIMinor: "0",
_ref: "http://localhost/api/webservice/v2.0/user/19223487150",
_refObjectUUID: "some UUID",
_refObjectName: "Alpha1125",
_type: "User"
}
]
}
} Where underscored prefixes, are system values. |
I intend of completely overhauling the current XML based API to a more standardised format. - I'm sure everyone agrees that this is probably wayyyy overdue! lol
The new solution will be a RESTful based web-service (which can talk both JSON and XML based on user preference - Simply by requesting the desire content-ype in the header) I will also complete the implementation of the remaining functionality for all core modules as at present only about 20% of the core functionality is covered by the core at present..
I intend to use a standard 'Resource' type design and utilising RESTful practice to CREATE (POST), READ (GET), UPDATE (PUT) and DELETE (DELETE).
The text was updated successfully, but these errors were encountered: