Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

how to create an entity for pytentd #90

Open
yupeng0921 opened this issue Aug 27, 2014 · 3 comments
Open

how to create an entity for pytentd #90

yupeng0921 opened this issue Aug 27, 2014 · 3 comments

Comments

@yupeng0921
Copy link

Hi, I'm not sure whether here is the right place to ask such question, but I can't find a suitable place to ask such question. I'm running pytentd in a linux machine:

$ tentd -d
 * Running on http://127.0.0.1:5000/
 * Restarting with reloader

I think the next step I should do is create an entity, and then GET/POST to some urls like:
http://127.0.0.1:5000/entityname/profiles

But I don't find a way to create the entity. After review the source code, I found the entity is store in mongodb, by default, it will use the 'tentd' database and 'entity' collection. I can insert some data to the 'entity' collection outside the pytentd, but I don't find how to create an 'entity' document through pytentd, anyway, the document schema of 'entity' is defined by pytentd, so I think pytend should provide a method to create an 'entity', but I don't find such a way. Could anyone can tell me how to create an 'entity' or I misunderstand anything?

@borntyping
Copy link
Member

I'm not sure if that was ever completed - I'll take a brief look. Development on Pytentd stopped a while ago due to the instability of the protocol documentation, so there are a lot of incomplete components.

@borntyping
Copy link
Member

Pytentd doesn't have a way to create entities (I don't think the docs define an endpoint either). Sorry.

@ravenscroftj
Copy link
Member

This is a perfectly valid issue but there are no active developers on the project currently. I'll reopen this ticket in case someone wants to have a crack at solving the problem and merge back in.

@ravenscroftj ravenscroftj reopened this Aug 27, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants