-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from lithnet/wcf-schema
Wcf schema
- Loading branch information
Showing
41 changed files
with
199 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Costura.Fody" version="1.3.3.0" targetFramework="net40" /> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" /> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
<package id="ILMerge" version="2.14.1208" targetFramework="net40" /> | ||
<package id="Lithnet.Common.ObjectModel" version="1.0.5777.18973" targetFramework="net40" /> | ||
<package id="Lithnet.Logging" version="1.0.5774.20685" targetFramework="net40" /> | ||
<package id="Lithnet.MetadirectoryServices" version="1.0.6017.24789" targetFramework="net40" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" /> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
<package id="Lithnet.Common.ObjectModel" version="1.0.5777.18973" targetFramework="net40" /> | ||
<package id="Lithnet.Common.Presentation" version="1.0.5777.18976" targetFramework="net40" /> | ||
<package id="Lithnet.Logging" version="1.0.5774.20685" targetFramework="net40" /> | ||
<package id="Lithnet.MetadirectoryServices.Resolver" version="1.0.6006.11723" targetFramework="net40" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
<package id="System.Windows.Interactivity.WPF" version="2.0.20525" targetFramework="net40" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" /> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
<package id="Lithnet.Common.ObjectModel" version="1.0.5777.18973" targetFramework="net40" /> | ||
<package id="Lithnet.Logging" version="1.0.5774.20685" targetFramework="net40" /> | ||
<package id="Lithnet.MetadirectoryServices" version="1.0.6017.24789" targetFramework="net40" /> | ||
<package id="Lithnet.MetadirectoryServices.Resolver" version="1.0.6006.11723" targetFramework="net40" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" /> | ||
<package id="System.Management.Automation" version="6.1.7601.17515" targetFramework="net40" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
<package id="System.Management.Automation" version="6.1.7601.17515" targetFramework="net40" requireReinstallation="true" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" /> | ||
<package id="Fody" version="1.29.4" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
<package id="Lithnet.Common.ObjectModel" version="1.0.5777.18973" targetFramework="net40" /> | ||
<package id="Lithnet.Logging" version="1.0.5774.20685" targetFramework="net40" /> | ||
<package id="Lithnet.MetadirectoryServices" version="1.0.6017.24789" targetFramework="net40" /> | ||
<package id="Lithnet.MetadirectoryServices.Resolver" version="1.0.6006.11723" targetFramework="net40" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" /> | ||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="net40" developmentDependency="true" requireReinstallation="true" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
src/Lithnet.Acma.ServiceModel.Client/IAcmaSchemaService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.Serialization; | ||
using System.ServiceModel; | ||
using System.Text; | ||
using Lithnet.Acma; | ||
using System.ServiceModel.Web; | ||
|
||
namespace Lithnet.Acma.ServiceModel | ||
{ | ||
[ServiceContract(Namespace = AcmaServiceConstants.SchemaNamespace)] | ||
public interface IAcmaSchemaService | ||
{ | ||
[OperationContract] | ||
[WebGet(UriTemplate = "/schema/objectclass/{name}")] | ||
string GetObjectClass(string name); | ||
|
||
[OperationContract] | ||
[WebGet(UriTemplate = "/schema/objectclass/{name}/binding/")] | ||
string GetObjectClassBindings(string name); | ||
|
||
[OperationContract] | ||
[WebGet(UriTemplate = "/schema/objectclass/{name}/backlink/")] | ||
string GetObjectClassBackLinks(string name); | ||
|
||
[OperationContract] | ||
[WebGet(UriTemplate = "/schema/objectclass/{name}/shadowlink/")] | ||
string GetObjectClassShadowLinks(string name); | ||
|
||
[OperationContract] | ||
[WebGet(UriTemplate = "/schema/attribute/{name}")] | ||
string GetAttribute(string name); | ||
|
||
[OperationContract] | ||
[WebGet(UriTemplate = "/resource/{objectType}/{key}/{keyValue}")] | ||
AcmaResource GetResourceByTypeAndKey(string objectType, string key, string keyValue); | ||
|
||
[OperationContract] | ||
[WebGet(UriTemplate = "/resource/?searchAttribute={key}&searchValue={keyValue}&operator={op}")] | ||
IList<AcmaResource> GetResourcesByAttributePair(string key, string keyValue, string op = "Equals"); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/resource/{id}", Method="PUT")] | ||
void ReplaceResource(string id, AcmaResource resource); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/resource/{id}", Method = "PATCH")] | ||
void PatchResource(string id, AcmaResource resource); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/schema/objectclass/{name}", Method = "DELETE")] | ||
void DeleteObjectClass(string name); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/schema/attribute/{name}", Method = "DELETE")] | ||
void DeleteAttribute(string name); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/schema/objectclass/{name}/binding/{attribute}", Method = "DELETE")] | ||
void DeleteBinding(string name, string attribute); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/schema/objectclass/", Method = "POST")] | ||
void CreateObjectClass(object resource); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/schema/attribute/", Method = "POST")] | ||
void CreateAttribute(object resource); | ||
|
||
[OperationContract] | ||
[WebInvoke(UriTemplate = "/schema/objectclass/{name}/binding/{attribute}", Method = "POST")] | ||
void CreateBinding(object resource); | ||
|
||
} | ||
} |
Oops, something went wrong.