-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
106 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
namespace WoofWare.Myriad.Plugins | ||
|
||
open System | ||
|
||
/// Module containing duplicates of the supported RestEase attributes, in case you don't want | ||
/// to take a dependency on RestEase. | ||
[<RequireQualifiedAccess>] | ||
module RestEase = | ||
/// Indicates that a method represents an HTTP Get query to the specified endpoint. | ||
type GetAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that a method represents an HTTP Post query to the specified endpoint. | ||
type PostAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that a method represents an HTTP Delete query to the specified endpoint. | ||
type DeleteAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that a method represents an HTTP Head query to the specified endpoint. | ||
type HeadAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that a method represents an HTTP Options query to the specified endpoint. | ||
type OptionsAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that a method represents an HTTP Put query to the specified endpoint. | ||
type PutAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that a method represents an HTTP Patch query to the specified endpoint. | ||
type PatchAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that a method represents an HTTP Trace query to the specified endpoint. | ||
type TraceAttribute (path : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that this argument to a method is interpolated into the HTTP request at runtime | ||
/// by setting a query parameter (with the given name) to the value of the annotated argument. | ||
type QueryAttribute (paramName : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that this interface represents a REST client which accesses an API whose paths are | ||
/// all relative to the given address. | ||
type BaseAddressAttribute (addr : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that this interface member causes the interface to set a header with the given name, | ||
/// whose value is obtained whenever required by a fresh call to the interface member. | ||
type HeaderAttribute (header : string) = | ||
inherit Attribute () | ||
|
||
/// Indicates that this argument to a method is interpolated into the request path at runtime | ||
/// by writing it into the templated string that specifies the HTTP query e.g. in the `[<Get "/foo/{template}">]`. | ||
type PathAttribute () = | ||
inherit Attribute () |
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,7 +1,7 @@ | ||
{ | ||
"version": "2.2", | ||
"version": "2.3", | ||
"publicReleaseRefSpec": [ | ||
"^refs/heads/main$" | ||
], | ||
"pathFilters": null | ||
} | ||
} |
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