[DEV] API

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Post Reply
Senky
Extension Customisations
Extension Customisations
Posts: 2167
Joined: Thu Apr 30, 2009 8:49 pm
Name: Jakub
Contact:

[DEV] API

Post by Senky » Mon Mar 25, 2019 3:01 pm

It's time for a proper API!

That's why I started to develop a phpBB API extension. For now it will be session-based, meaning it will use current user session as authentication mechanism, just like phpBB core does. As for now I plan to add support for all frontend entities (forums, topics, posts, members, ...), maybe later I will also add support for UCP, MCP and ACP.

What is the motivation? It breaks my heart to see all that styles that really change only few lines of CSS. Styling is bound to strict rules - exact files, only so much template variables, etc. That prevents us from creating really excellent styles.

With this extension installed, style authors can use frontend frameworks to paint whatever pages they want. Just start your application in page header, request data using newly exposed API and display them in any way you want! Questions about search engines receiving empty pages? PHP can render initial template.

Technically, phpBB API extension will expose a GraphQL server. With one request you can obtain all your data at once.

User avatar
Meis2M
Translator
Posts: 888
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] API

Post by Meis2M » Fri May 10, 2019 11:40 pm

Hello senky
when we can use this api for creating themes? i need to know how i can use it for that?

and with this api can we create a mobile application?
phpBB persian international support
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

Senky
Extension Customisations
Extension Customisations
Posts: 2167
Joined: Thu Apr 30, 2009 8:49 pm
Name: Jakub
Contact:

Re: [DEV] API

Post by Senky » Sun May 12, 2019 11:32 am

It is just in a very early stage, so many endpoints need to be added for it to be at least somehow usable. Not in a near future.

Meis2M wrote:
Fri May 10, 2019 11:40 pm
and with this api can we create a mobile application?
Yes, this will allow you to create a true mobile app that interacts with phpBB.

User avatar
dingus33
Registered User
Posts: 127
Joined: Fri Sep 29, 2017 11:11 am

Re: [DEV] API

Post by dingus33 » Sun Jun 02, 2019 4:59 am

very, very exciting

marcoDaniele
Registered User
Posts: 1
Joined: Sat Aug 10, 2019 7:57 pm

Re: [DEV] API

Post by marcoDaniele » Sat Aug 10, 2019 10:48 pm

Hello Senky, thank you for your work!
I really want to try out yor API, but I am not familiar with graphql-php.
Could you please provide some basic instructions?
What am I supposed to do after composer install?
Thank you

User avatar
Meis2M
Translator
Posts: 888
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] API

Post by Meis2M » Tue Oct 22, 2019 1:07 pm

any news?
phpBB persian international support
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

User avatar
Meis2M
Translator
Posts: 888
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] API

Post by Meis2M » Sat Dec 14, 2019 9:29 am

Senky wrote:
Mon Mar 25, 2019 3:01 pm
It's time for a proper API!
Hi senky...
what news?
phpBB persian international support
Ultimate SEO Friendly URL - Extension
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM

Post Reply

Return to “Extensions in Development”