Dweb - web publishing, RESTful web apps, versioned data and

That’s ok if it worked the first time. Not sure how this will go. If it happens use the name option with publish-new and make sure it’s a different name.

That will force a new history and avoid the GE exists problem.

Good luck!

1 Like

its only a template i found on line but holly hell this is amazing :slight_smile:

dweb open a7ddb192773ab609ea223008a31f572ef4493c6bbc71b996c2d0ef9d86ed335faf2f284527c051c3214b5d2b89388180

11 Likes

Did the moderators ever get a chance to move these to a new thread, that you know of?

I’d really like to continue the discussion with you, but under an on-topic banner.

They haven’t responded. Why don’t you start a new topic anyway and copy your question to it.

Why don’t you start a new topic anyway and copy your question to it

Done. Here.

dweb 0.4.0

I’ve published an update to dweb which includes the following:

  • RESTful APIs to store and get PublicArchive, PrivateArchive, Chunk
  • dweb publish will error right away if you accidentally try to publish-new when you mean publish-update (and vice versa). Thanks to @aatonnomicc for highlighting the need for this.
  • dweb uses PrivateArchive by default when publishing a website but can display websites published using either PublicArchive or PrivateArchive. This is because using PrivateArchive is cheaper and more efficient, but still leaves the data accessible if it is stored for public access.
  • several GET APIs now accept a datamap where appropriate (in addition to data address, archive address, History address etc)

To install or update:
cargo install dweb-cli # Add --locked if that doesn't compile

To view the RESTful APIs:
dweb serve
Then, in another terminal:
dweb openapi-docs

I’m looking for feedback and requests from web devs on this topic: Web client devs - best way to do low level Autonomi REST APIs

Next I’ll be implementing Pointer, Scratchpad and then Vault REST APIs, so if you are interested in using those please let me know any requests on that topic.

6 Likes

dweb 0.4.1

This update includes a lot of tidying and incorporates some feedback from others around REST APIs (@loziniak - I’ve added some support for headers though not gone all the way).

But the big new features are REST APIs to create, update and fetch:

  • Pointer
  • Scratchpad
  • all the REST APIs that incur a cost now include the cost in ANT and ARB-ETH in the response
  • all REST APIs that store data have an optional parameter to say how many times the operation should be tried before returning failure

These APIs are also more flexible than the Autonomi APIs which require the caller to manage multiple owner secrets in order to create more than one object (of all types).

This is achieved by allowing you to use a single owner to create all types, so different types with the same owner are allowed. You can also specify a name for each object, so you can have as many objects of one type as you like, not just one per owner.

I’ve not done much testing of these but have checked I can create Pointers and Scratchpads, with or without names, can update them and get them of course.

To install/update and play with these REST APIs right now, see previous post.

7 Likes