Project

General

Profile

Tâche #22160

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

Création 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:
12.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

  • Remaining (hours) changed from 12.0 to 0.0

#3 Updated by Lionel Morin over 2 years ago

  • % Done changed from 0 to 100

#4 Updated by Lionel Morin over 2 years ago

  • Assigned To set to Lionel Morin
  • Remaining (hours) changed from 0.0 to 12.0

#5 Updated by Lionel Morin over 2 years ago

  • Remaining (hours) changed from 12.0 to 0.0

#6 Updated by Scrum Master over 2 years ago

  • Status changed from En cours to Résolu

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

  • Status changed from Résolu to Fermé
  • curl -v -X 'POST' - '{"kwargs":{"servermodelparentid":1,"servermodelname":"MonServeurModele","sourceid":1}}
    ' http://localhost:30005/api/v1/servermodel.create

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

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

  • 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