Does Anspress Support Jason API?

5.76K viewsGeneral
1

Hi,

 

I would Like to know and understand how can I use Jason API with Anspress. Is tha possible?

 

Thank You!

0

Any update on this anyone please ? Anyone got it to work ?

commented on answer

Hello Caim,
Its scheduled for upcoming release.

I see. Thank you ! Never worked with WordPress before.

In our opinion what would the best way be to integrate questions and users from node ?
Initially saw options :
1. use the wp-rest endpoints to create the user and post but couldn’t figure out how to create custom meta for the user and apparently can’t create the posts (questions) yet in Anspress as you mentioned.

2. use a node wrapper for wp-cli ? Could probably get the user creation going. Not sure about the posts ( questions )

3. Insert directly into the tables : wp_users, wp_usersmeta and wp_posts keeping in mind all the fields that are created when creating a question manually.

Probably a combination of these. Was thinking to use the wp-cli to create the user , get it’s id use the wp-cli to add custom meta that i need. use node-mysql to insert the question in wp-post with the user id created previously.

For these to work though of course would need the WordPress instance and express app hosted on the same domain.

0

No, its not supported yet.

1

I have the same question. Trying to create questions the same way I’m creating regular posts with wp-json V2 but it doesn’t sems to work…

 

Thanks