Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the API public and document it. (#1376)
* fix(API): #474 recipient properties should be array typed. * Document API and ensure not found = 404
- Loading branch information
Showing
34 changed files
with
469 additions
and
287 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
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
2 changes: 1 addition & 1 deletion
2
Rnwood.Smtp4dev/ApiModel/Client.cs → Rnwood.Smtp4dev/ApiModel/ClientSettings.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
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
2 changes: 1 addition & 1 deletion
2
Rnwood.Smtp4dev/ApiModel/Info.cs → Rnwood.Smtp4dev/ApiModel/VersionInfo.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
14 changes: 0 additions & 14 deletions
14
Rnwood.Smtp4dev/ClientApp/src/ApiClient/ClientController.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...mtp4dev/ClientApp/src/ApiClient/Client.ts → ...ClientApp/src/ApiClient/ClientSettings.ts
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
14 changes: 14 additions & 0 deletions
14
Rnwood.Smtp4dev/ClientApp/src/ApiClient/ClientSettingsController.ts
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,14 @@ | ||
import ClientSettings from "./ClientSettings"; | ||
import axios from "axios"; | ||
|
||
export default class ClientSettingsController { | ||
constructor() {} | ||
|
||
public getClientSettings_url(): string { | ||
return `api/clientsettings`; | ||
} | ||
|
||
public async getClientSettings(): Promise<ClientSettings> { | ||
return (await axios.get(this.getClientSettings_url())).data as ClientSettings; | ||
} | ||
} |
This file was deleted.
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
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
15 changes: 15 additions & 0 deletions
15
Rnwood.Smtp4dev/ClientApp/src/ApiClient/VersionController.ts
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,15 @@ | ||
import axios from "axios"; | ||
import VersionInfo from "./VersionInfo"; | ||
|
||
export default class VersionController { | ||
constructor() {} | ||
|
||
public getVersion_url(): string { | ||
return `api/Version`; | ||
} | ||
|
||
public async getVersion(): Promise<VersionInfo> { | ||
return (await axios.get(this.getVersion_url(), null || undefined)) | ||
.data as VersionInfo; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
....Smtp4dev/ClientApp/src/ApiClient/Info.ts → ...ev/ClientApp/src/ApiClient/VersionInfo.ts
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
Oops, something went wrong.