Contents #
- ApiDescriptionExtensions
- DoctorController
- DoctorScheduleController
- HelpController
- HelpPageApiModel
- HelpPageConfig
- HelpPageConfigurationExtensions
- GetHelpPageApiModel(config,apiDescriptionId)
- GetHelpPageSampleGenerator(config)
- GetModelDescriptionGenerator(config)
- SetActualRequestType(config,type,controllerName,actionName)
- SetActualRequestType(config,type,controllerName,actionName,parameterNames)
- SetActualResponseType(config,type,controllerName,actionName)
- SetActualResponseType(config,type,controllerName,actionName,parameterNames)
- SetDocumentationProvider(config,documentationProvider)
- SetHelpPageSampleGenerator(config,sampleGenerator)
- SetSampleForMediaType(config,sample,mediaType)
- SetSampleForType(config,sample,mediaType,type)
- SetSampleObjects(config,sampleObjects)
- SetSampleRequest(config,sample,mediaType,controllerName,actionName)
- SetSampleRequest(config,sample,mediaType,controllerName,actionName,parameterNames)
- SetSampleResponse(config,sample,mediaType,controllerName,actionName)
- SetSampleResponse(config,sample,mediaType,controllerName,actionName,parameterNames)
- HelpPageSampleGenerator
- #ctor()
- ActionSamples
- ActualHttpMessageTypes
- SampleObjectFactories
- SampleObjects
- GetActionSample(controllerName,actionName,parameterNames,type,formatter,mediaType,sampleDirection)
- GetSample(api,sampleDirection)
- GetSampleObject(type)
- GetSampleRequests(api)
- GetSampleResponses(api)
- ResolveHttpRequestMessageType(api)
- ResolveType(api,controllerName,actionName,parameterNames,sampleDirection,formatters)
- WriteSampleObjectUsingFormatter(formatter,value,type,mediaType)
- HelpPageSampleKey
- ImageSample
- InvalidSample
- LoginController
- MedicalCardController
- MembershipController
- ModelDescription
- ModelDescriptionGenerator
- ModelNameAttribute
- ObjectGenerator
- PatientDataController
- AddMedicalRecord(model)
- AddPatientAllergy(model)
- AddPatientDisease(model)
- ClosePatientAllergy(model)
- ClosePatientDisease(model)
- GetActiveAllergyInfo(idPatient,idAllergy)
- GetCategories()
- GetClosedAllergiesInfo(idPatient)
- GetClosedDiseaseInfo(idPatient)
- GetDiagnoseInfo(idPatient,idDisease)
- GetDiseases(id)
- GetPatientActiveAllergies(id)
- GetPatientActiveDiseases(id)
- GetPatientDataByPatientId(id)
- GetPatientDiseases(idPatient,idDisease)
- GetPatientNoNActiveAllergies(id)
- GetSubCategories(id)
- RegistrationController
- RuleController
- SalaryController
- SampleDirection
- ScheduleController
- SimpleInjectorWebApiInitializer
- TextSample
- UserController
- ChangeRole(currentUser,userId,role,idProffesion)
- EditUserInfo(model)
- FilterAllUsers(numberPage,countInPage,isAdmin,isDoctor,firstOrlastname)
- GetInfoAboutAllUsers(numberPage,countInPage)
- GetUserAvailableRole(idUser)
- GetUserInfoById(UserInfoId)
- GetUserRole(idUser)
- ListFirstLastname(text)
- NumbersOfPage(countInPage)
- NumbersOfPageFiltered(countInPage,isAdmin,isDoctor,firstOrlastname)
- XmlDocumentationProvider
HoReD.Areas.HelpPage
Generates an URI-friendly ID for the ApiDescription. E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}"
The ID as a string.
Name | Type | Description |
---|---|---|
description | System.Web.Http.Description.ApiDescription | The ApiDescription. |
HoReD.Controllers
Controller that represents information about Doctors
Gets information about Doctor events
List of instances of the class Event
This method has no parameters.
http://localhost:*****/DoctorEvents/{doctorId}/{dateStart}/{dateFinish}
Similar to GetDoctorEvents, but also returns id and name of user, that has session in relevant event
Name | Type | Description |
---|---|---|
doctorId | System.Int32 | |
dateStart | System.DateTime | |
dateFinish | System.DateTime |
Get doctor's general salary statistics in specific range of time
Instance of the class SalaryStatistics
Name | Type | Description |
---|---|---|
doctorId | System.Int32 | |
dateStart | System.DateTime | |
dateFinish | System.DateTime |
http://localhost:*****/DoctorGeneralSalaryStatistics/{doctorId}/{dateStart}/{dateFinish}
Gets full information about Doctors in database
List of instances of the class DoctorInfo
This method has no parameters.
http://localhost:*****/api/Doctor/
Get doctor's salary statistics in specific range of time for each day
List of instances of the class SalaryStatistics
Name | Type | Description |
---|---|---|
doctorId | System.Int32 | |
dateStart | System.DateTime | |
dateFinish | System.DateTime |
http://localhost:*****/DoctorSalaryStatistics/{doctorId}/{dateStart}/{dateFinish}
Returns all doctors' ID, name and surname with current profession ID
Name | Type | Description |
---|---|---|
professionId | System.Int32 |
HoReD.Controllers
Controller that represents information about doctors schedule
Gets doctor's schedule from database
List of instances of the worcing hour of Doctor
This method has no parameters.
http://localhost:*****/GetDoctorSchedule/{doctorId}
HoReD.Areas.HelpPage.Controllers
The controller that will handle requests for the help page.
HoReD.Areas.HelpPage.Models
The model that represents an API displayed on the help page.
Initializes a new instance of the HelpPageApiModel class.
This constructor has no parameters.
Gets or sets the ApiDescription that describes the API.
Gets the error messages associated with this model.
Gets the request body parameter descriptions.
Gets or sets the documentation for the request.
Gets or sets the ModelDescription that describes the request body.
Gets or sets the ModelDescription that describes the resource.
Gets the resource property descriptions.
Gets the sample requests associated with the API.
Gets the sample responses associated with the API.
Gets or sets the ParameterDescription collection that describes the URI parameters for the API.
HoReD.Areas.HelpPage
Use this class to customize the Help Page. For example you can set a custom IDocumentationProvider to supply the documentation or you can provide the samples for the requests/responses.
HoReD.Areas.HelpPage
Gets the model that represents an API displayed on the help page. The model is initialized on the first call and cached for subsequent calls.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
apiDescriptionId | System.String | The ApiDescription ID. |
Gets the help page sample generator.
The help page sample generator.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
Gets the model description generator.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The configuration. |
Specifies the actual type of ObjectContent`1 passed to the HttpRequestMessage in an action. The help page will use this information to produce more accurate request samples.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
type | System.Type | The type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
Specifies the actual type of ObjectContent`1 passed to the HttpRequestMessage in an action. The help page will use this information to produce more accurate request samples.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
type | System.Type | The type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.String[] | The parameter names. |
Specifies the actual type of ObjectContent`1 returned as part of the HttpRequestMessage in an action. The help page will use this information to produce more accurate response samples.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
type | System.Type | The type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
Specifies the actual type of ObjectContent`1 returned as part of the HttpRequestMessage in an action. The help page will use this information to produce more accurate response samples.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
type | System.Type | The type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.String[] | The parameter names. |
Sets the documentation provider for help page.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
documentationProvider | System.Web.Http.Description.IDocumentationProvider | The documentation provider. |
Sets the help page sample generator.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sampleGenerator | HoReD.Areas.HelpPage.HelpPageSampleGenerator | The help page sample generator. |
Sets the sample directly for all actions with the specified media type.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sample | System.Object | The sample. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
Sets the sample directly for all actions with the specified type and media type.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sample | System.Object | The sample. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
type | System.Type | The parameter type or return type of an action. |
Sets the objects that will be used by the formatters to produce sample requests/responses.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sampleObjects | System.Collections.Generic.IDictionary{System.Type,System.Object} | The sample objects. |
Sets the sample request directly for the specified media type and action.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sample | System.Object | The sample request. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
Sets the sample request directly for the specified media type and action with parameters.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sample | System.Object | The sample request. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.String[] | The parameter names. |
Sets the sample request directly for the specified media type of the action.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sample | System.Object | The sample response. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
Sets the sample response directly for the specified media type of the action with specific parameters.
Name | Type | Description |
---|---|---|
config | System.Web.Http.HttpConfiguration | The HttpConfiguration. |
sample | System.Object | The sample response. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.String[] | The parameter names. |
HoReD.Areas.HelpPage
This class will generate the samples for the help page.
Initializes a new instance of the HelpPageSampleGenerator class.
This constructor has no parameters.
Gets the objects that are used directly as samples for certain actions.
Gets CLR types that are used as the content of HttpRequestMessage or HttpResponseMessage.
Gets factories for the objects that the supported formatters will serialize as samples. Processed in order, stopping when the factory successfully returns a non- object.
Collection includes just GenerateObject initially. Use
SampleObjectFactories.Insert(0, func)
to provide an override and
SampleObjectFactories.Add(func)
to provide a fallback.
Gets the objects that are serialized as samples by the supported formatters.
GetActionSample(controllerName,actionName,parameterNames,type,formatter,mediaType,sampleDirection) method
# =
Search for samples that are provided directly through ActionSamples.
The sample that matches the parameters.
Name | Type | Description |
---|---|---|
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.Collections.Generic.IEnumerable{System.String} | The parameter names. |
type | System.Type | The CLR type. |
formatter | System.Net.Http.Formatting.MediaTypeFormatter | The formatter. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
sampleDirection | HoReD.Areas.HelpPage.SampleDirection | The value indicating whether the sample is for a request or for a response. |
Gets the request or response body samples.
The samples keyed by media type.
Name | Type | Description |
---|---|---|
api | System.Web.Http.Description.ApiDescription | The ApiDescription. |
sampleDirection | HoReD.Areas.HelpPage.SampleDirection | The value indicating whether the sample is for a request or for a response. |
Gets the sample object that will be serialized by the formatters. First, it will look at the SampleObjects. If no sample object is found, it will try to create one using DefaultSampleObjectFactory (which wraps an ObjectGenerator) and other factories in SampleObjectFactories.
The sample object.
Name | Type | Description |
---|---|---|
type | System.Type | The type. |
Gets the request body samples for a given ApiDescription.
The samples keyed by media type.
Name | Type | Description |
---|---|---|
api | System.Web.Http.Description.ApiDescription | The ApiDescription. |
Gets the response body samples for a given ApiDescription.
The samples keyed by media type.
Name | Type | Description |
---|---|---|
api | System.Web.Http.Description.ApiDescription | The ApiDescription. |
Resolves the actual type of ObjectContent`1 passed to the HttpRequestMessage in an action.
The type.
Name | Type | Description |
---|---|---|
api | System.Web.Http.Description.ApiDescription | The ApiDescription. |
Resolves the type of the action parameter or return value when HttpRequestMessage or HttpResponseMessage is used.
Name | Type | Description |
---|---|---|
api | System.Web.Http.Description.ApiDescription | The ApiDescription. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.Collections.Generic.IEnumerable{System.String} | The parameter names. |
sampleDirection | HoReD.Areas.HelpPage.SampleDirection | The value indicating whether the sample is for a request or a response. |
formatters | System.Collections.ObjectModel.Collection{System.Net.Http.Formatting.MediaTypeFormatter}@ | The formatters. |
Writes the sample object using formatter.
Name | Type | Description |
---|---|---|
formatter | System.Net.Http.Formatting.MediaTypeFormatter | The formatter. |
value | System.Object | The value. |
type | System.Type | The type. |
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | Type of the media. |
HoReD.Areas.HelpPage
This is used to identify the place where the sample should be applied.
Creates a new HelpPageSampleKey based on media type.
Name | Type | Description |
---|---|---|
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
Creates a new HelpPageSampleKey based on media type and CLR type.
Name | Type | Description |
---|---|---|
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
type | System.Type | The CLR type. |
Creates a new HelpPageSampleKey based on SampleDirection, controller name, action name and parameter names.
Name | Type | Description |
---|---|---|
sampleDirection | HoReD.Areas.HelpPage.SampleDirection | The SampleDirection. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.Collections.Generic.IEnumerable{System.String} | The parameter names. |
Creates a new HelpPageSampleKey based on media type, SampleDirection, controller name, action name and parameter names.
Name | Type | Description |
---|---|---|
mediaType | System.Net.Http.Headers.MediaTypeHeaderValue | The media type. |
sampleDirection | HoReD.Areas.HelpPage.SampleDirection | The SampleDirection. |
controllerName | System.String | Name of the controller. |
actionName | System.String | Name of the action. |
parameterNames | System.Collections.Generic.IEnumerable{System.String} | The parameter names. |
Gets the name of the action.
Gets the name of the controller.
Gets the media type.
Gets the parameter names.
Gets the SampleDirection.
HoReD.Areas.HelpPage
This represents an image sample on the help page. There's a display template named ImageSample associated with this class.
Initializes a new instance of the ImageSample class.
Name | Type | Description |
---|---|---|
src | System.String | The URL of an image. |
HoReD.Areas.HelpPage
This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class.
HoReD.Controllers
Manages the logining process of users
Checks whether entered user data is valid
Name | Type | Description |
---|---|---|
model | HoReD.Models.LoginUserBindingModel |
Resets password after validation link, email address and new password
Name | Type | Description |
---|---|---|
model | HoReD.Models.ResetPasswordBindingModel | Email, new password and link for resetting from email |
http://localhost:*****/ResetPassword
Sends email with uniquely generated link that have expiration time to provide ability reset password
Name | Type | Description |
---|---|---|
model | HoReD.Models.LoginUserBindingModel | Email address where send link to |
http://localhost:*****/SendEmailForResettingPassword
HoReD.Controllers
Controller that represents information about patient medical card
Method that get user id and return his medical card
Array of records
Name | Type | Description |
---|---|---|
userId | System.Int32 | ID of needed user |
pageNumber | System.Int32 | Index of page |
elementOnPageCount | System.Int32 | Total amount of records on one page |
columnNumber | System.Int32 | Amount of column on page |
Returns Total amount of needed pages with {elementOnPageCount} to display all medical card data
Total page amount
Name | Type | Description |
---|---|---|
userId | System.Int32 | ID of needed user |
elementOnPageCount | System.Int32 | Amount of records displayed on one page |
HoReD.Controllers
Verify user data
If data correct - 200 status code which contain access token, else returns 401 status code
Name | Type | Description |
---|---|---|
loginInfo | HoReD.Models.LoginUserBindingModel | Gets user email and password |
HoReD.Areas.HelpPage.ModelDescriptions
Describes a type model.
HoReD.Areas.HelpPage.ModelDescriptions
Generates model descriptions for given types.
HoReD.Areas.HelpPage.ModelDescriptions
Use this attribute to change the name of the ModelDescription generated for a type.
HoReD.Areas.HelpPage
This class will create an object of a given type and populate it with sample data.
Generates an object for a given type. The type needs to be public, have a public default constructor and settable public properties/fields. Currently it supports the following types: Simple types: Int32, String, Enum, DateTime, Uri, etc. Complex types: POCO types. Nullables: Nullable`1. Arrays: arrays of simple types or complex types. Key value pairs: KeyValuePair`2 Tuples: Tuple`1, Tuple`2, etc Dictionaries: IDictionary`2 or anything deriving from IDictionary`2. Collections: IList`1, IEnumerable`1, ICollection`1, IList, IEnumerable, ICollection or anything deriving from ICollection`1 or IList. Queryables: IQueryable, IQueryable`1.
An object of the given type.
Name | Type | Description |
---|---|---|
type | System.Type | The type. |
HoReD.Controllers
Controller that represents information about patient medical card
Adds description and treatment for visit
Integer: 1 - if record added
Name | Type | Description |
---|---|---|
model | HoReD.Models.MedicalRecordBindingModel | Id patient, starttime of visit, description and treatment |
Adds allergies for patient
Integer: 1 - if allergy added
Name | Type | Description |
---|---|---|
model | HoReD.Models.MedicalRecordBindingModel | Id patient, starttime of visit and idallergy |
Adds disease for patient
Integer: 1 - if disease added
Name | Type | Description |
---|---|---|
model | HoReD.Models.MedicalRecordBindingModel | Id patient, starttime of visit and iddisease |
Closes allergy for patient
Integer: 1 - if allergy closed
Name | Type | Description |
---|---|---|
model | HoReD.Models.MedicalRecordBindingModel | Id patient, starttime of visit and iddallergy |
Closes disease for patient
Integer: 1 - if disease closed
Name | Type | Description |
---|---|---|
model | HoReD.Models.MedicalRecordBindingModel | Id patient, starttime of visit and iddisease |
Get description, treatment, doctor and date for active allergy
Name | Type | Description |
---|---|---|
idPatient | System.Int32 | ID of needed user |
idAllergy | System.Int32 | ID of needed allergy |
Returns diseases categories
List of diseases categories id, name
This method has no parameters.
Get description, treatment, doctor and date for the opening and closing allergy visits
Name | Type | Description |
---|---|---|
idPatient | System.Int32 | ID of needed user |
Get description, treatment, doctor and date for diagnose
Name | Type | Description |
---|---|---|
idPatient | System.Int32 | ID of needed user |
Get description, treatment, doctor and date for diagnose
Name | Type | Description |
---|---|---|
idPatient | System.Int32 | ID of needed user |
idDisease | System.Int32 | ID of needed subdisease |
Returns diseases diseases, that current subcategory has
List of diseases id, code, name
Name | Type | Description |
---|---|---|
id | System.Int32 | ID of needed subcategory |
Returns active allergies, that current user has
List of user's allergies names, id and visit
Name | Type | Description |
---|---|---|
id | System.Int32 | ID of needed user |
Returns active diseases, that current user has
List of user's diseases names, id
Name | Type | Description |
---|---|---|
id | System.Int32 | ID of needed user |
Method that get user id and return his medical card
Patient Data
Name | Type | Description |
---|---|---|
id | System.Int32 | ID of needed user |
Returns all subdiseases, that current user don't has
List of user's nonactive subdiseases
Name | Type | Description |
---|---|---|
idPatient | System.Int32 | ID of needed user |
idDisease | System.Int32 | ID of needed subdisease |
Returns active allergies, that current user don't has
List of user's allergies names, id
Name | Type | Description |
---|---|---|
id | System.Int32 | ID of needed user |
Returns diseases subcategories, that current category has
List of diseases subcategories, id, firstcode, lastcode, name
Name | Type | Description |
---|---|---|
id | System.Int32 | ID of needed category |
HoReD.Controllers
Adds information to database during registration and manages users' activation
Activates user, that visited own activation link
Integer: 0 - if user already activated, 1 - if activation succeeded, -1 - if such user doesn't exist in database
Name | Type | Description |
---|---|---|
IdUser | System.String | ID of the needed user |
Adds to system information about new user
Status code
Name | Type | Description |
---|---|---|
model | HoReD.Models.RegistrationBindingModel | Information about user |
HoReD.Controllers
Adds new rule into database, or update existing based on ID
Name | Type | Description |
---|---|---|
model | HoReD.Models.RuleBindingModel | Rule |
Assigns doctor with ID {IdDoctor} to rule with ID {IdRule}
Name | Type | Description |
---|---|---|
model | HoReD.Models.RulesetBindingModel | Stores IDs of doctor and rule |
Deletes rule with current ID
Name | Type | Description |
---|---|---|
IdRule | System.Int32 | ID of rule, that should be deleted |
Dismisses doctor with ID {IdDoctor} from rule with ID {IdRule}
Name | Type | Description |
---|---|---|
model | HoReD.Models.RulesetBindingModel | Stores IDs of doctor and rule |
Returns all doctors that has or has not rule with ID {IdRule} based on {hasRule}
Name | Type | Description |
---|---|---|
IdRule | System.Int32 | ID of needed rule |
hasRule | System.Boolean | Defines to return doctors that has or has not |
HoReD.Controllers
Controller manages salary management
Constructor for SalaryController
This constructor has no parameters.
Add some coeff defined by the end-user by assigned doctorId and startDate
Status code: 0 - something went wrong, 1 - successful
Name | Type | Description |
---|---|---|
model | HoReD.Models.SalaryCoeffBindingModel | Binding model that contains doctorId, coeff and startDate |
http://localhost:*****/api/Salary/Coefficient/add
Add some rate defined by the end-user by assigned professionId and startDate
Status code: 0 - something went wrong, 1 - successful
Name | Type | Description |
---|---|---|
model | HoReD.Models.SalaryRateBindingModel | Binding model that contains professionId, rate and startDate |
http://localhost:*****/api/Salary/Rate/add
Delete some rate by assigned doctorId and startDate
Status code: 0 - something went wrong, 1 - successful
Name | Type | Description |
---|---|---|
doctorId | System.Int32 | Doctor id |
startDate | System.String | The start date of rate |
http://localhost:*****/api/Salary/Rate/delet/{doctorId}/{startDate}
Delete some rate by assigned professionId and startDate
Status code: 0 - something went wrong, 1 - successful
Name | Type | Description |
---|---|---|
professionId | System.Int32 | Profession id |
startDate | System.String | The start date of rate |
http://localhost:*****/api/Salary/Rate/delete/{professionId}/{startDate}
Edit some coeff defined by the end-user by assigned doctorId and startDate
Status code: 0 - something went wrong, 1 - successful
Name | Type | Description |
---|---|---|
model | HoReD.Models.SalaryCoeffBindingModel | Binding model that contains doctorId, rate and startDate |
http://localhost:*****/api/Salary/Coefficient/edit
Edit some rate defined by the end-user by assigned professionId and startDate
Status code: 0 - something went wrong, 1 - successful
Name | Type | Description |
---|---|---|
model | HoReD.Models.SalaryRateBindingModel | Binding model that contains professionId, rate and startDate |
http://localhost:*****/api/Salary/Rate/edit
Gets all coefficients for some doctor by its id
List of instances of the class SalaryRate (Rate, StartDate, State)
Name | Type | Description |
---|---|---|
doctorId | System.Int32 | Doctor id |
http://localhost:*****/api/Salary/Rate/get/{doctorId}
Gets all rates for some profession by its id
List of instances of the class SalaryRate (Rate, StartDate, State)
Name | Type | Description |
---|---|---|
professionId | System.Int32 | Profession id |
http://localhost:*****/api/Salary/Rate/get/{professionId}
HoReD.Areas.HelpPage
Indicates whether the sample is used for request or response
HoReD.Controllers
Controller manages schedules
Inserts new schedule record into database
Status code
Name | Type | Description |
---|---|---|
model | HoReD.Models.ScheduleBindingModel | Stores data about schedule(start time, end time and IDs of doctor and patient |
HoReD.App_Start
Initialize the container and register it as Web API Dependency Resolver.
This method has no parameters.
HoReD.Areas.HelpPage
This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
HoReD.Controllers
Manages general User data
Change of user role(from doctor to admin etc)
Update role for one user
Name | Type | Description |
---|---|---|
currentUser | System.Int32 | current User Id for logging info |
userId | System.Int32 | UserId |
role | System.Int32 | Role |
idProffesion | System.Int32 | idProffesion(unnecessary param) |
Edits record in database with general info
Name | Type | Description |
---|---|---|
model | HoReD.Models.UserInfoBindingModel |
Get filtered info about users first and lastname,isAdmin,profession
List of filtered info about users-first and lastname,isAdmin,profession
Name | Type | Description |
---|---|---|
numberPage | System.Int32 | Number of page |
countInPage | System.Int32 | Users count in page |
isAdmin | System.Boolean | isAdmin |
isDoctor | System.Boolean | isDoctor |
firstOrlastname | System.String | firstOrlastname(unnecessary param) |
Gets info about role-doctor,user or admin
List of users-first and lastname,isAdmin,profession
Name | Type | Description |
---|---|---|
numberPage | System.Int32 | Number of page |
countInPage | System.Int32 | Users count in page |
Available role for user
List idRole,rolename
Name | Type | Description |
---|---|---|
idUser | System.Int32 | idUser |
Gets all general info about user
UserInfo
Name | Type | Description |
---|---|---|
UserInfoId | System.Int32 | ID of needed user |
Current role of user
List firsname,lastname,rolename
Name | Type | Description |
---|---|---|
idUser | System.Int32 | idUser |
List first and lastname of users for filtering
List first and lastnameof users
Name | Type | Description |
---|---|---|
text | System.String | text for searching |
Count of pages for different quantity of users on the page
Count of pages(for pagination)
Name | Type | Description |
---|---|---|
countInPage | System.Int32 | Users count in page |
Count of pages for different quantity of users on the page
Count of pages(for pagination)
Name | Type | Description |
---|---|---|
countInPage | System.Int32 | User's count in page |
isAdmin | System.Boolean | isAdmin |
isDoctor | System.Boolean | isDoctor |
firstOrlastname | System.String | firstOrlastname(unnecessary param) |
HoReD.Areas.HelpPage
A custom IDocumentationProvider that reads the API documentation from an XML documentation file.
Initializes a new instance of the XmlDocumentationProvider class.
Name | Type | Description |
---|---|---|
documentPath | System.String | The physical path to XML document. |