Giter Club home page Giter Club logo

Comments (5)

felixletkemann avatar felixletkemann commented on July 23, 2024

Since accessing the sinatra routes over CoAP, the workaround is the following:

  post '/blub/hallo' do
    puts "\n\n\n\n"
    puts params.inspect
    puts "\n\n\n\n"
    'Test Antwort'
  end

  get '/.well-known/core' do
    content_type 'application/link-format'
    '</blub/hallo>;sh="/t";n="Hallo",
    </blub/zweitertest>;sh="/l";ct=41;n="HalloTest"'
  end

from david.

nning avatar nning commented on July 23, 2024

Automatically generating .well-known/core is currently only supported in Rails. I will keep this issue open as feature request.

from david.

nning avatar nning commented on July 23, 2024

Would you like to add this feature?

from david.

felixletkemann avatar felixletkemann commented on July 23, 2024

Maybe I can add this feature as soon as I get a little deeper into coap and into the internal logic of the david gem.
At the moment, I would prefer just adding a few lines of code to the documentation that describe how to use david with sinatra.
bildschirmfoto 2017-07-28 um 11 31 57
bildschirmfoto 2017-07-28 um 11 32 52

from david.

mcr avatar mcr commented on July 23, 2024

I'm looking at this now from a different point of view: making sure that rspec requests can get from /.well-known/core. I already changed how to link list was created in my pull request. I've submitted issue #10 about this.

from david.

Related Issues (12)

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.