Project

General

Profile

Tâche #22161

Scénario #21589: Epic 4: Service "contrôleur" pour les modèles de serveur: gestion des sous modèles de serveur

Mise à jour d'un servermodel

Added by Lionel Morin over 2 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/13/2017
Due date:
% Done:

100%

Estimated time:
6.00 h
Spent time:
Remaining (hours):
0.0

Associated revisions

Revision c158929d (diff)
Added by Lionel Morin over 2 years ago

Server model management

Adding methods to complete server model management:
  • create
  • update
  • delete

Needs refactoring to ease testing and readability.

Ref #22159 #22160 #22161 #22162 #22163

History

#1 Updated by Lionel Morin over 2 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Lionel Morin over 2 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 6.0 to 0.0

#3 Updated by Scrum Master over 2 years ago

  • Status changed from En cours to Résolu

#4 Updated by Fabrice Barconnière over 2 years ago

  • Status changed from Résolu to Fermé
  • curl -v -X 'POST' -d '{"kwargs":{"servermodelid":6,"servermodelname":"toto"}}' http://localhost:30005/api/v1
    /servermodel.update

    {
      "kwargs": {
        "success": true
      }
    
  • curl -v -X 'POST' -'{}' http://localhost:30005/api/v1/servermodel.list
    {
      "kwargs": {
        "models": [
          {
            "ServerModelId": 6,
            "ServerModelName": "toto",
            "ServerModelParentId": 1,
            "ServerModelSource": {
              "SourceName": "EOLE",
              "SourceURL": "https://pcll.ac-dijon.fr/eole/" 
            },
            "ServerModelVersion": {
              "ReleaseName": "2.6.2",
              "VersionDistribution": "EOLE",
              "VersionName": "2.6" 
            }
          },
    

Also available in: Atom PDF