Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding WebAPI to Composite-C1

Tags:

c1-cms

I am really impressed with CompositeC1 and the ability to add data types on the fly, reference other data types with a foreign key relationship, etc. The built in functions are also really handy.

Ideally, I could create a separate Web API project that would be able to use all of the functions that are generated on the fly in CompositeC1 and expose them out as REST services.

Should I do this as a separate project referencing the dll's in CompositeC1's bin directory? Those dll's are regenerated each time a custom data type is altered... would that cause an issue?

like image 316
user529794 Avatar asked Jun 19 '13 20:06

user529794


1 Answers

I just wrote a post tonight that I think answer the question.

http://www.s-innovations.dk/Blog/2013/06/25/Mobile-Services-for-Composite-C1--Idea-Creation

I make an API by tapping into the C1 System and get my data from there. No need to worry about dlls being generated and such.

But you can create your own API in a seperate dll also. You can see from my post the basic steps of getting an API up and running.

You could get a problem if you make a WebAPI that exposes something that a user deletes in the console, then your dll breaks? The idea with my project is to make it dynamic expose types configured from within the console. So if someone deletes a type, then it also get removed from my API.

like image 189
Poul K. Sørensen Avatar answered Oct 11 '22 06:10

Poul K. Sørensen