Git Product home page Git Product logo

Comments (2)

juileetikekar avatar juileetikekar commented on July 30, 2024

Hi @vChavezB ,

Could you please use Asp.Net core APIs from the latest binaries, as mentioned in the GurHub issue https://github.com/admin-shell-io/aasx-server/issues/130.

The new corresponding API (with Asp.Net ) to your request (i.e., Updating SubmodelElement "Property") is : "http://localhost:5001/submodels/{Base64Url Encoded Submodel Identifier}/submodel/submodel-elements/RotationSpeed"

You will also find the swagger documentation of these API on: http://<Host_Name>:5001/swagger/index.html

from server.

vChavezB avatar vChavezB commented on July 30, 2024

Thanks for the info. Just as a reference here is how you can update the property from the motor example

PUT request endpoint: http://localhost:5001/submodels/aHR0cDovL2k0MC5jdXN0b21lci5jb20vaW5zdGFuY2UvMS8xL0FDNjlCMUNCNDRGMDc5MzU/submodel/submodel-elements/RotationSpeed

Payload

{
  "value": "1423",
  "valueId": null,
  "semanticId": {
    "keys": [
      {
        "type": "ConceptDescription",
        "local": true,
        "value": "http://customer.com/cd//1/1/18EBD56F6B43D895",
        "index": 0,
        "idType": "IRI"
      }
    ]
  },
  "constraints": [],
  "hasDataSpecification": [],
  "idShort": "RotationSpeed",
  "category": "VARIABLE",
  "modelType": {
    "name": "Property"
  },
  "valueType": {
    "dataObjectType": {
      "name": "integer"
    }
  },
  "kind": "Instance",
  "descriptions": null
}

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.