laatzen/LaaProductionWeb
2024-03-22 11:43:43 +01:00
..
LaaProduction.Cordonel Cordonel EOL EP's changed 2024-03-22 11:43:43 +01:00
LaaProduction.Http WEB: GNS passwords 2024-02-20 14:56:42 +01:00
LaaProduction.Personalization Cordonel EOL API 2024-03-06 12:48:08 +01:00
LaaProduction.Search Cordonel EOL API 2024-03-06 12:48:08 +01:00
LaaProduction.Services Cordonel EOL API 2024-03-06 12:48:08 +01:00
LaaProduction.SharedModels gtb: pwd change, register 2024-02-20 12:17:07 +01:00
LaaProduction.SQL Cordonel EOL API 2024-03-06 12:48:08 +01:00
LaaProductionWeb Cordonel EOL EP's changed 2024-03-22 11:43:43 +01:00
LaaProductionWeb.sln Cordonel EOL API 2024-03-06 12:48:08 +01:00
README.md Update README.md 2024-03-06 13:58:44 +00:00

LaaProductionWeb

1. Wildcard search - find API explanation and usage hier otherwise you can use it as web UI hier.

  • The wildcard search UI works with the implemented API explained above, also requires WEB_API_Explorer user role. Once you have access to the web page the usage is as simple as posible. You can select or not a fields that you whant to see in response to the search. By default are all listed fields returned.
    ... then type your search string, the search is processed against serial numbers, pcb id, eregister or genesis meter addresses. So you can type a hole number or part of it. Depending on the input you can becomm one or more results. For instance below was typed last part of customer specific serial number. ...

2. Cordonel EOL API

Note: Each of the following endpoints returns the actual state of the EOL progress model. The errors from the API are also written to the http response content in the form from IDictionary<string, string>.

  • DELETE: /api/Cordonels/EOLProgress/{pcbid} - saves the current progress in backup table and resets the values of the existing one except the PcbId and AddHost.
  • GET: /api/Cordonels/EOLProgress/{pcbid} - gets existing progress model by its PcbId or creates a new one if not exists.
  • POST: /api/Cordonels/EOLProgress/{pcbid}/{status} - sets the completition status of the current progress by its PcbId, there are no more changes accepted afterwards, the only possible way is to delete the progress for the PcbId.
  • PUT: /api/Cordonels/EOLProgress - changes progress steps in case they are not already changed.
  • Test the API hier - with swagger
    // The Status type is a one of the following strings: null, FAIL, NA, OK - other values are ignored!
    // Client can interpret the Status as string or enum, but the API accepts only strings.
    public class EOLProgressModel
    {
        public int Id { get; set; }

        public int PcbId { get; set; }

        public int? RequirementId { get; set; }

        public Status RequirementChecked { get; set; }

        public Status PasswordFileInstalled { get; set; }

        public Status ProductionStatusChecked { get; set; }

        public Status ParameterizationDone { get; set; }

        public Status RebootDone { get; set; }

        public Status StoreConfigurationDone { get; set; }

        public Status ExportDone { get; set; }

        public long? RaioCheckId { get; set; }

        public DateTime? SentinelDate { get; set; }

        public Status Completed { get; set; }

        public DateTime? CompleteDate { get; set; }

        public string CompleteHost { get; set; }

        public DateTime? AddDate { get; set; }

        public string AddHost { get; set; }
    }